How to remove space in section title at KOMA-Script The Next CEO of Stack OverflowFix 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

In excess I'm lethal

How does the mv command work with external drives?

Sending manuscript to multiple publishers

Which kind of appliances can one connect to electric sockets located in an airplane's toilet?

Why does the UK parliament need a vote on the political declaration?

How to prevent changing the value of variable?

"In the right combination" vs "with the right combination"?

If the heap is initialized for security, then why is the stack uninitialized?

How to invert MapIndexed on a ragged structure? How to construct a tree from rules?

Why am I allowed to create multiple unique pointers from a single object?

Indicator light circuit

How to safely derail a train during transit?

WOW air has ceased operation, can I get my tickets refunded?

Which tube will fit a -(700 x 25c) wheel?

Plot of histogram similar to output from @risk

What was the first Unix version to run on a microcomputer?

sp_blitzCache results Memory grants

What does convergence in distribution "in the Gromov–Hausdorff" sense mean?

Several mode to write the symbol of a vector

Is it my responsibility to learn a new technology in my own time my employer wants to implement?

What benefits would be gained by using human laborers instead of drones in deep sea mining?

Bold, vivid family

How does the Z80 determine which peripheral sent an interrupt?

What happened in Rome, when the western empire "fell"?



How to remove space in section title at KOMA-Script



The Next CEO of Stack OverflowFix 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

950919




950919












  • 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


























  • 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




















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 { 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

How should I support this large drywall patch? Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How do I cover large gaps in drywall?How do I keep drywall around a patch from crumbling?Can I glue a second layer of drywall?How to patch long strip on drywall?Large drywall patch: how to avoid bulging seams?Drywall Mesh Patch vs. Bulge? To remove or not to remove?How to fix this drywall job?Prep drywall before backsplashWhat's the best way to fix this horrible drywall patch job?Drywall patching using 3M Patch Plus Primer

random experiment with two different functions on unit interval Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)Random variable and probability space notionsRandom Walk with EdgesFinding functions where the increase over a random interval is Poisson distributedNumber of days until dayCan an observed event in fact be of zero probability?Unit random processmodels of coins and uniform distributionHow to get the number of successes given $n$ trials , probability $P$ and a random variable $X$Absorbing Markov chain in a computer. Is “almost every” turned into always convergence in computer executions?Stopped random walk is not uniformly integrable

Lowndes Grove History Architecture References Navigation menu32°48′6″N 79°57′58″W / 32.80167°N 79.96611°W / 32.80167; -79.9661132°48′6″N 79°57′58″W / 32.80167°N 79.96611°W / 32.80167; -79.9661178002500"National Register Information System"Historic houses of South Carolina"Lowndes Grove""+32° 48' 6.00", −79° 57' 58.00""Lowndes Grove, Charleston County (260 St. Margaret St., Charleston)""Lowndes Grove"The Charleston ExpositionIt Happened in South Carolina"Lowndes Grove (House), Saint Margaret Street & Sixth Avenue, Charleston, Charleston County, SC(Photographs)"Plantations of the Carolina Low Countrye