How to remove space in section title at KOMA-ScriptFix indent for section titlelatex beamer appendix numberingCreate new section commands (with correct TOC entries) in KOMA-ScriptHow to make a rule under each section title with KOMA-script?LaTeX beamer: pagenumbering appendixKOMA-Script have parskip=full- but no spacing between section title and contentKOMA script replace name of section with the given text/symbolHow do I center the part title at KOMA-script?How do I prevent from a symbol at part title to be in a new lineHow to center headings at KOMA-Script

Some numbers are more equivalent than others

Are lightweight LN wallets vulnerable to transaction withholding?

How can "mimic phobia" be cured or prevented?

Is Asuka Langley-Soryu disgusted by Shinji?

Extending the spectral theorem for bounded self adjoint operators to bounded normal operators

Translation of Scottish 16th century church stained glass

Can we have a perfect cadence in a minor key?

What's the difference between 違法 and 不法?

Is a model fitted to data or is data fitted to a model?

THT: What is a squared annular “ring”?

Varistor? Purpose and principle

Will adding a BY-SA image to a blog post make the entire post BY-SA?

Should I install hardwood flooring or cabinets first?

Why is it that I can sometimes guess the next note?

Folder comparison

Drawing ramified coverings with tikz

Can the Supreme Court overturn an impeachment?

Engineer refusing to file/disclose patents

Filling the middle of a torus in Tikz

Do Legal Documents Require Signing In Standard Pen Colors?

Can a Necromancer Reuse the corpses left behind from slain Undead?

Why does Async/Await work properly when the loop is inside the async function and not the other way around?

How do we rationalize a person's sins being solely their own when we have traditions that blame entire nations for certain acts?

Why do IPv6 unique local addresses have to have a /48 prefix?



How to remove space in section title at KOMA-Script


Fix indent for section titlelatex beamer appendix numberingCreate new section commands (with correct TOC entries) in KOMA-ScriptHow to make a rule under each section title with KOMA-script?LaTeX beamer: pagenumbering appendixKOMA-Script have parskip=full- but no spacing between section title and contentKOMA script replace name of section with the given text/symbolHow do I center the part title at KOMA-script?How do I prevent from a symbol at part title to be in a new lineHow to center headings at KOMA-Script













3















Here is MWE:



documentclassscrartcl
usepackageadforn


renewcommandsectionlinesformat[4]%
ifstr#1section%
adforn30 #3. #4 adforn58

hskip#2#3#4%
makeatother

begindocument

sectionABC

enddocument


The output is this:
enter image description here



I want it will be: 1. ABC and not 1 . ABC (no space between the "1" and the ".").

It is possible? and if it's possible, how can I do it?



Thank you!










share|improve this question
























  • sorry, I am not able to compile your MWE (Font OrnementsADF not found). Just a guess: try to terminate every line that might be fragile with a %: ifstr#1section% adforn30 #3. #4 adforn58% %

    – AndiW
    Mar 18 at 19:44
















3















Here is MWE:



documentclassscrartcl
usepackageadforn


renewcommandsectionlinesformat[4]%
ifstr#1section%
adforn30 #3. #4 adforn58

hskip#2#3#4%
makeatother

begindocument

sectionABC

enddocument


The output is this:
enter image description here



I want it will be: 1. ABC and not 1 . ABC (no space between the "1" and the ".").

It is possible? and if it's possible, how can I do it?



Thank you!










share|improve this question
























  • sorry, I am not able to compile your MWE (Font OrnementsADF not found). Just a guess: try to terminate every line that might be fragile with a %: ifstr#1section% adforn30 #3. #4 adforn58% %

    – AndiW
    Mar 18 at 19:44














3












3








3








Here is MWE:



documentclassscrartcl
usepackageadforn


renewcommandsectionlinesformat[4]%
ifstr#1section%
adforn30 #3. #4 adforn58

hskip#2#3#4%
makeatother

begindocument

sectionABC

enddocument


The output is this:
enter image description here



I want it will be: 1. ABC and not 1 . ABC (no space between the "1" and the ".").

It is possible? and if it's possible, how can I do it?



Thank you!










share|improve this question
















Here is MWE:



documentclassscrartcl
usepackageadforn


renewcommandsectionlinesformat[4]%
ifstr#1section%
adforn30 #3. #4 adforn58

hskip#2#3#4%
makeatother

begindocument

sectionABC

enddocument


The output is this:
enter image description here



I want it will be: 1. ABC and not 1 . ABC (no space between the "1" and the ".").

It is possible? and if it's possible, how can I do it?



Thank you!







sectioning numbering koma-script sections-paragraphs






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 18 at 20:35









Schweinebacke

22.1k4577




22.1k4577










asked Mar 18 at 19:37









heblyxheblyx

945919




945919












  • sorry, I am not able to compile your MWE (Font OrnementsADF not found). Just a guess: try to terminate every line that might be fragile with a %: ifstr#1section% adforn30 #3. #4 adforn58% %

    – AndiW
    Mar 18 at 19:44


















  • sorry, I am not able to compile your MWE (Font OrnementsADF not found). Just a guess: try to terminate every line that might be fragile with a %: ifstr#1section% adforn30 #3. #4 adforn58% %

    – AndiW
    Mar 18 at 19:44

















sorry, I am not able to compile your MWE (Font OrnementsADF not found). Just a guess: try to terminate every line that might be fragile with a %: ifstr#1section% adforn30 #3. #4 adforn58% %

– AndiW
Mar 18 at 19:44






sorry, I am not able to compile your MWE (Font OrnementsADF not found). Just a guess: try to terminate every line that might be fragile with a %: ifstr#1section% adforn30 #3. #4 adforn58% %

– AndiW
Mar 18 at 19:44











2 Answers
2






active

oldest

votes


















3














The macro sectionformat contains an enskip at the end. You can redefine it without that:



documentclassscrartcl
usepackageadforn

defsectionformatthesectionautodot% enskip
renewcommandsectionlinesformat[4]%
ifstr#1section%
adforn30 #3. #4 adforn58

hskip#2#3#4%
makeatother

begindocument

sectionABC

enddocument



enter image description here







share|improve this answer

























  • Thank you!! What is the csname command?

    – heblyx
    Mar 18 at 19:44






  • 1





    @heblyx It allows you to use a control sequence (a.k.a. macro) by its name. One expansion of csname thesectionendcsname gives thesection. If you simply use thesection it will work as well. The csname thingy is just for dynamically creating these formatting commands.

    – Phelype Oleinik
    Mar 18 at 19:46












  • @PhelypeOleinik - Using the csname ... endcsname machinery would seem to be overkill here. Maybe replace csname thesectionendcsname autodot with thesection.autodot? :-)

    – Mico
    Mar 18 at 20:04












  • @Mico Indeed, unnecessary complication. Done :)

    – Phelype Oleinik
    Mar 18 at 20:09






  • 2





    Note: This could result in two ., if autodot results in adding a .. And IMHO the KOMA-Script guide recommends to add number format parts like the end dot to sectionformat instead of sectionlinesformat. See my answer about how to do this.

    – Schweinebacke
    Mar 18 at 20:32


















4














You should reduce group braces to a minimum and add the . either to the sectionformat:



documentclassscrartcl
usepackageadforn

renewcommand*sectionformatthesection.enskip% replaced autodot by .
renewcommandsectionlinesformat[4]%
ifstr#1section%
adforn30 #3#4 adforn58%
hskip#2#3#4%
makeatother

begindocument

sectionABC

enddocument


or select numbers=withdot to add the dot to all section levels:



documentclass[numbers=enddot]scrartcl
usepackageadforn

renewcommandsectionlinesformat[4]%
ifstr#1section%
adforn30 #3#4 adforn58%
hskip#2#3#4%


begindocument

sectionABC

enddocument


Both examples result in:



O 1. ABC o



Note: You should not combine a autodot in sectionformat with a hard coded . (neither in autodot nor on sectionlinesformat where it is misplaced by specification), because this could result in two dots.



Please have a look to the KOMA-Script manual for the default of sectionformat and the meaning of numbers=withdot, sectionformat and autodot.



BTW: The makeatother in your example is also not necessary and should be removed (so I did).



Off-Topic: You should also avoid possible spurious white spaces by newlines after } or improve this answer


























  • Your solution is good, but I'm not sure it's good for me. Because I'm Hebrew user - the dot is always at wrong side... at Hebrew it shuold be ".1" and not "1."

    – heblyx
    Mar 18 at 20:42












  • It is possible?

    – heblyx
    Mar 18 at 21:23






  • 1





    @heblyx Cannot reproduce this. See my hebrew example.

    – Schweinebacke
    Mar 19 at 11:42












  • I will replace it. Thank you!!

    – heblyx
    Mar 19 at 14:58






























  • Your solution is good, but I'm not sure it's good for me. Because I'm Hebrew user - the dot is always at wrong side... at Hebrew it shuold be ".1" and not "1."

    – heblyx
    Mar 18 at 20:42












  • It is possible?

    – heblyx
    Mar 18 at 21:23






  • 1





    @heblyx Cannot reproduce this. See my hebrew example.

    – Schweinebacke
    Mar 19 at 11:42












  • I will replace it. Thank you!!

    – heblyx
    Mar 19 at 14:58









share or and by real spaces in the middle of the code.


As a comment claims that this does not work with hebrew:



documentclass[numbers=enddot]scrartcl
usepackagepolyglossia
setmainlanguagehebrew
newfontfamilyhebrewfont[Script=Hebrew]David CLM
newfontfamilyhebrewfonttt[Script=Hebrew]Miriam Mono CLM
newfontfamilyhebrewfontsf[Script=Hebrew]Simple CLM
usepackageadforn

renewcommandsectionlinesformat[4]%
ifstr#1section%
adforn30 #3#4 adforn58%
hskip#2#3#4%


begindocument

sectionגדה

enddocument


and



documentclassscrartcl
usepackagepolyglossia
setmainlanguagehebrew
newfontfamilyhebrewfont[Script=Hebrew]David CLM
newfontfamilyhebrewfonttt[Script=Hebrew]Miriam Mono CLM
newfontfamilyhebrewfontsf[Script=Hebrew]Simple CLM
usepackageadforn

renewcommand*sectionformatthesection.enskip% replaced autodot by .
renewcommandsectionlinesformat[4]%
ifstr#1section%
adforn30 #3#4 adforn58%
hskip#2#3#4%


begindocument

sectionגדה

enddocument


both result in:



o הדג .1 O



which seem to be correct for using RL.






share or { and by real spaces in the middle of the code.


As a comment claims that this does not work with hebrew:



documentclass[numbers=enddot]scrartcl
usepackagepolyglossia
setmainlanguagehebrew
newfontfamilyhebrewfont[Script=Hebrew]David CLM
newfontfamilyhebrewfonttt[Script=Hebrew]Miriam Mono CLM
newfontfamilyhebrewfontsf[Script=Hebrew]Simple CLM
usepackageadforn

renewcommandsectionlinesformat[4]%
ifstr#1section%
adforn30 #3#4 adforn58%
hskip#2#3#4%


begindocument

sectionגדה

enddocument


and



documentclassscrartcl
usepackagepolyglossia
setmainlanguagehebrew
newfontfamilyhebrewfont[Script=Hebrew]David CLM
newfontfamilyhebrewfonttt[Script=Hebrew]Miriam Mono CLM
newfontfamilyhebrewfontsf[Script=Hebrew]Simple CLM
usepackageadforn

renewcommand*sectionformatthesection.enskip% replaced autodot by .
renewcommandsectionlinesformat[4]%
ifstr#1section%
adforn30 #3#4 adforn58%
hskip#2#3#4%


begindocument

sectionגדה

enddocument


both result in:



o הדג .1 O



which seem to be correct for using RL.







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 19 at 11:58

























answered Mar 18 at 20:23









SchweinebackeSchweinebacke

22.1k4577




22.1k4577












  • Your solution is good, but I'm not sure it's good for me. Because I'm Hebrew user - the dot is always at wrong side... at Hebrew it shuold be ".1" and not "1."

    – heblyx
    Mar 18 at 20:42












  • It is possible?

    – heblyx
    Mar 18 at 21:23






  • 1





    @heblyx Cannot reproduce this. See my hebrew example.

    – Schweinebacke
    Mar 19 at 11:42












  • I will replace it. Thank you!!

    – heblyx
    Mar 19 at 14:58

















  • Your solution is good, but I'm not sure it's good for me. Because I'm Hebrew user - the dot is always at wrong side... at Hebrew it shuold be ".1" and not "1."

    – heblyx
    Mar 18 at 20:42












  • It is possible?

    – heblyx
    Mar 18 at 21:23






  • 1





    @heblyx Cannot reproduce this. See my hebrew example.

    – Schweinebacke
    Mar 19 at 11:42












  • I will replace it. Thank you!!

    – heblyx
    Mar 19 at 14:58
















Your solution is good, but I'm not sure it's good for me. Because I'm Hebrew user - the dot is always at wrong side... at Hebrew it shuold be ".1" and not "1."

– heblyx
Mar 18 at 20:42






Your solution is good, but I'm not sure it's good for me. Because I'm Hebrew user - the dot is always at wrong side... at Hebrew it shuold be ".1" and not "1."

– heblyx
Mar 18 at 20:42














It is possible?

– heblyx
Mar 18 at 21:23





It is possible?

– heblyx
Mar 18 at 21:23




1




1





@heblyx Cannot reproduce this. See my hebrew example.

– Schweinebacke
Mar 19 at 11:42






@heblyx Cannot reproduce this. See my hebrew example.

– Schweinebacke
Mar 19 at 11:42














I will replace it. Thank you!!

– heblyx
Mar 19 at 14:58





I will replace it. Thank you!!

– heblyx
Mar 19 at 14:58

















draft saved

draft discarded
















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f480147%2fhow-to-remove-space-in-section-title-at-koma-script%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Færeyskur hestur Heimild | Tengill | Tilvísanir | LeiðsagnarvalRossið - síða um færeyska hrossið á færeyskuGott ár hjá færeyska hestinum

He _____ here since 1970 . Answer needed [closed]What does “since he was so high” mean?Meaning of “catch birds for”?How do I ensure “since” takes the meaning I want?“Who cares here” meaningWhat does “right round toward” mean?the time tense (had now been detected)What does the phrase “ring around the roses” mean here?Correct usage of “visited upon”Meaning of “foiled rail sabotage bid”It was the third time I had gone to Rome or It is the third time I had been to Rome

Slayer Innehåll Historia | Stil, komposition och lyrik | Bandets betydelse och framgångar | Sidoprojekt och samarbeten | Kontroverser | Medlemmar | Utmärkelser och nomineringar | Turnéer och festivaler | Diskografi | Referenser | Externa länkar | Navigeringsmenywww.slayer.net”Metal Massacre vol. 1””Metal Massacre vol. 3””Metal Massacre Volume III””Show No Mercy””Haunting the Chapel””Live Undead””Hell Awaits””Reign in Blood””Reign in Blood””Gold & Platinum – Reign in Blood””Golden Gods Awards Winners”originalet”Kerrang! Hall Of Fame””Slayer Looks Back On 37-Year Career In New Video Series: Part Two””South of Heaven””Gold & Platinum – South of Heaven””Seasons in the Abyss””Gold & Platinum - Seasons in the Abyss””Divine Intervention””Divine Intervention - Release group by Slayer””Gold & Platinum - Divine Intervention””Live Intrusion””Undisputed Attitude””Abolish Government/Superficial Love””Release “Slatanic Slaughter: A Tribute to Slayer” by Various Artists””Diabolus in Musica””Soundtrack to the Apocalypse””God Hates Us All””Systematic - Relationships””War at the Warfield””Gold & Platinum - War at the Warfield””Soundtrack to the Apocalypse””Gold & Platinum - Still Reigning””Metallica, Slayer, Iron Mauden Among Winners At Metal Hammer Awards””Eternal Pyre””Eternal Pyre - Slayer release group””Eternal Pyre””Metal Storm Awards 2006””Kerrang! Hall Of Fame””Slayer Wins 'Best Metal' Grammy Award””Slayer Guitarist Jeff Hanneman Dies””Bullet-For My Valentine booed at Metal Hammer Golden Gods Awards””Unholy Aliance””The End Of Slayer?””Slayer: We Could Thrash Out Two More Albums If We're Fast Enough...””'The Unholy Alliance: Chapter III' UK Dates Added”originalet”Megadeth And Slayer To Co-Headline 'Canadian Carnage' Trek”originalet”World Painted Blood””Release “World Painted Blood” by Slayer””Metallica Heading To Cinemas””Slayer, Megadeth To Join Forces For 'European Carnage' Tour - Dec. 18, 2010”originalet”Slayer's Hanneman Contracts Acute Infection; Band To Bring In Guest Guitarist””Cannibal Corpse's Pat O'Brien Will Step In As Slayer's Guest Guitarist”originalet”Slayer’s Jeff Hanneman Dead at 49””Dave Lombardo Says He Made Only $67,000 In 2011 While Touring With Slayer””Slayer: We Do Not Agree With Dave Lombardo's Substance Or Timeline Of Events””Slayer Welcomes Drummer Paul Bostaph Back To The Fold””Slayer Hope to Unveil Never-Before-Heard Jeff Hanneman Material on Next Album””Slayer Debut New Song 'Implode' During Surprise Golden Gods Appearance””Release group Repentless by Slayer””Repentless - Slayer - Credits””Slayer””Metal Storm Awards 2015””Slayer - to release comic book "Repentless #1"””Slayer To Release 'Repentless' 6.66" Vinyl Box Set””BREAKING NEWS: Slayer Announce Farewell Tour””Slayer Recruit Lamb of God, Anthrax, Behemoth + Testament for Final Tour””Slayer lägger ner efter 37 år””Slayer Announces Second North American Leg Of 'Final' Tour””Final World Tour””Slayer Announces Final European Tour With Lamb of God, Anthrax And Obituary””Slayer To Tour Europe With Lamb of God, Anthrax And Obituary””Slayer To Play 'Last French Show Ever' At Next Year's Hellfst””Slayer's Final World Tour Will Extend Into 2019””Death Angel's Rob Cavestany On Slayer's 'Farewell' Tour: 'Some Of Us Could See This Coming'””Testament Has No Plans To Retire Anytime Soon, Says Chuck Billy””Anthrax's Scott Ian On Slayer's 'Farewell' Tour Plans: 'I Was Surprised And I Wasn't Surprised'””Slayer””Slayer's Morbid Schlock””Review/Rock; For Slayer, the Mania Is the Message””Slayer - Biography””Slayer - Reign In Blood”originalet”Dave Lombardo””An exclusive oral history of Slayer”originalet”Exclusive! Interview With Slayer Guitarist Jeff Hanneman”originalet”Thinking Out Loud: Slayer's Kerry King on hair metal, Satan and being polite””Slayer Lyrics””Slayer - Biography””Most influential artists for extreme metal music””Slayer - Reign in Blood””Slayer guitarist Jeff Hanneman dies aged 49””Slatanic Slaughter: A Tribute to Slayer””Gateway to Hell: A Tribute to Slayer””Covered In Blood””Slayer: The Origins of Thrash in San Francisco, CA.””Why They Rule - #6 Slayer”originalet”Guitar World's 100 Greatest Heavy Metal Guitarists Of All Time”originalet”The fans have spoken: Slayer comes out on top in readers' polls”originalet”Tribute to Jeff Hanneman (1964-2013)””Lamb Of God Frontman: We Sound Like A Slayer Rip-Off””BEHEMOTH Frontman Pays Tribute To SLAYER's JEFF HANNEMAN””Slayer, Hatebreed Doing Double Duty On This Year's Ozzfest””System of a Down””Lacuna Coil’s Andrea Ferro Talks Influences, Skateboarding, Band Origins + More””Slayer - Reign in Blood””Into The Lungs of Hell””Slayer rules - en utställning om fans””Slayer and Their Fans Slashed Through a No-Holds-Barred Night at Gas Monkey””Home””Slayer””Gold & Platinum - The Big 4 Live from Sofia, Bulgaria””Exclusive! Interview With Slayer Guitarist Kerry King””2008-02-23: Wiltern, Los Angeles, CA, USA””Slayer's Kerry King To Perform With Megadeth Tonight! - Oct. 21, 2010”originalet”Dave Lombardo - Biography”Slayer Case DismissedArkiveradUltimate Classic Rock: Slayer guitarist Jeff Hanneman dead at 49.”Slayer: "We could never do any thing like Some Kind Of Monster..."””Cannibal Corpse'S Pat O'Brien Will Step In As Slayer'S Guest Guitarist | The Official Slayer Site”originalet”Slayer Wins 'Best Metal' Grammy Award””Slayer Guitarist Jeff Hanneman Dies””Kerrang! Awards 2006 Blog: Kerrang! Hall Of Fame””Kerrang! Awards 2013: Kerrang! Legend”originalet”Metallica, Slayer, Iron Maien Among Winners At Metal Hammer Awards””Metal Hammer Golden Gods Awards””Bullet For My Valentine Booed At Metal Hammer Golden Gods Awards””Metal Storm Awards 2006””Metal Storm Awards 2015””Slayer's Concert History””Slayer - Relationships””Slayer - Releases”Slayers officiella webbplatsSlayer på MusicBrainzOfficiell webbplatsSlayerSlayerr1373445760000 0001 1540 47353068615-5086262726cb13906545x(data)6033143kn20030215029