How to remove space in section title at KOMA-Script
Here is MWE:
documentclass{scrartcl}
usepackage{adforn}
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}{%
{adforn{30} {#3}. {#4} adforn{58}}
}
{{hskip#2#3}{#4}}%
}makeatother
begin{document}
section{ABC}
end{document}
The output is this:
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
add a comment |
Here is MWE:
documentclass{scrartcl}
usepackage{adforn}
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}{%
{adforn{30} {#3}. {#4} adforn{58}}
}
{{hskip#2#3}{#4}}%
}makeatother
begin{document}
section{ABC}
end{document}
The output is this:
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
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{#1}{section}{% {adforn{30} {#3}. {#4} adforn{58}}% }%
– AndiW
yesterday
add a comment |
Here is MWE:
documentclass{scrartcl}
usepackage{adforn}
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}{%
{adforn{30} {#3}. {#4} adforn{58}}
}
{{hskip#2#3}{#4}}%
}makeatother
begin{document}
section{ABC}
end{document}
The output is this:
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
Here is MWE:
documentclass{scrartcl}
usepackage{adforn}
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}{%
{adforn{30} {#3}. {#4} adforn{58}}
}
{{hskip#2#3}{#4}}%
}makeatother
begin{document}
section{ABC}
end{document}
The output is this:
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
sectioning numbering koma-script sections-paragraphs
edited yesterday
Schweinebacke
22k4577
22k4577
asked yesterday
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{#1}{section}{% {adforn{30} {#3}. {#4} adforn{58}}% }%
– AndiW
yesterday
add a comment |
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{#1}{section}{% {adforn{30} {#3}. {#4} adforn{58}}% }%
– AndiW
yesterday
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{#1}{section}{% {adforn{30} {#3}. {#4} adforn{58}}% }%– AndiW
yesterday
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{#1}{section}{% {adforn{30} {#3}. {#4} adforn{58}}% }%– AndiW
yesterday
add a comment |
2 Answers
2
active
oldest
votes
The macro sectionformat contains an enskip at the end. You can redefine it without that:
documentclass{scrartcl}
usepackage{adforn}
defsectionformat{thesectionautodot}% enskip
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}{%
{adforn{30} {#3}. {#4} adforn{58}}
}
{{hskip#2#3}{#4}}%
}makeatother
begin{document}
section{ABC}
end{document}
Thank you!! What is thecsnamecommand?
– heblyx
yesterday
1
@heblyx It allows you to use a control sequence (a.k.a. macro) by its name. One expansion ofcsname thesectionendcsnamegivesthesection. If you simply usethesectionit will work as well. Thecsnamethingy is just for dynamically creating these formatting commands.
– Phelype Oleinik
yesterday
@PhelypeOleinik - Using thecsname ... endcsnamemachinery would seem to be overkill here. Maybe replacecsname thesectionendcsname autodotwiththesection.autodot? :-)
– Mico
yesterday
@Mico Indeed, unnecessary complication. Done :)
– Phelype Oleinik
yesterday
2
Note: This could result in two., ifautodotresults in adding a.. And IMHO the KOMA-Script guide recommends to add number format parts like the end dot tosectionformatinstead ofsectionlinesformat. See my answer about how to do this.
– Schweinebacke
yesterday
|
show 1 more comment
You should reduce group braces to a minimum and add the . either to the sectionformat:
documentclass{scrartcl}
usepackage{adforn}
renewcommand*{sectionformat}{thesection.enskip}% replaced autodot by .
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}%
{adforn{30} #3#4 adforn{58}}%
{hskip#2#3#4}%
}makeatother
begin{document}
section{ABC}
end{document}
or select numbers=withdot to add the dot to all section levels:
documentclass[numbers=enddot]{scrartcl}
usepackage{adforn}
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}%
{adforn{30} #3#4 adforn{58}}%
{hskip#2#3#4}%
}
begin{document}
section{ABC}
end{document}
Both examples result in:

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}
usepackage{polyglossia}
setmainlanguage{hebrew}
newfontfamilyhebrewfont[Script=Hebrew]{David CLM}
newfontfamilyhebrewfonttt[Script=Hebrew]{Miriam Mono CLM}
newfontfamilyhebrewfontsf[Script=Hebrew]{Simple CLM}
usepackage{adforn}
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}%
{adforn{30} #3#4 adforn{58}}%
{hskip#2#3#4}%
}
begin{document}
section{גדה}
end{document}
and
documentclass{scrartcl}
usepackage{polyglossia}
setmainlanguage{hebrew}
newfontfamilyhebrewfont[Script=Hebrew]{David CLM}
newfontfamilyhebrewfonttt[Script=Hebrew]{Miriam Mono CLM}
newfontfamilyhebrewfontsf[Script=Hebrew]{Simple CLM}
usepackage{adforn}
renewcommand*{sectionformat}{thesection.enskip}% replaced autodot by .
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}%
{adforn{30} #3#4 adforn{58}}%
{hskip#2#3#4}%
}
begin{document}
section{גדה}
end{document}
both result in:

which seem to be correct for using RL.
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
yesterday
It is possible?
– heblyx
yesterday
1
@heblyx Cannot reproduce this. See myhebrewexample.
– Schweinebacke
10 hours ago
I will replace it. Thank you!!
– heblyx
7 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The macro sectionformat contains an enskip at the end. You can redefine it without that:
documentclass{scrartcl}
usepackage{adforn}
defsectionformat{thesectionautodot}% enskip
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}{%
{adforn{30} {#3}. {#4} adforn{58}}
}
{{hskip#2#3}{#4}}%
}makeatother
begin{document}
section{ABC}
end{document}
Thank you!! What is thecsnamecommand?
– heblyx
yesterday
1
@heblyx It allows you to use a control sequence (a.k.a. macro) by its name. One expansion ofcsname thesectionendcsnamegivesthesection. If you simply usethesectionit will work as well. Thecsnamethingy is just for dynamically creating these formatting commands.
– Phelype Oleinik
yesterday
@PhelypeOleinik - Using thecsname ... endcsnamemachinery would seem to be overkill here. Maybe replacecsname thesectionendcsname autodotwiththesection.autodot? :-)
– Mico
yesterday
@Mico Indeed, unnecessary complication. Done :)
– Phelype Oleinik
yesterday
2
Note: This could result in two., ifautodotresults in adding a.. And IMHO the KOMA-Script guide recommends to add number format parts like the end dot tosectionformatinstead ofsectionlinesformat. See my answer about how to do this.
– Schweinebacke
yesterday
|
show 1 more comment
The macro sectionformat contains an enskip at the end. You can redefine it without that:
documentclass{scrartcl}
usepackage{adforn}
defsectionformat{thesectionautodot}% enskip
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}{%
{adforn{30} {#3}. {#4} adforn{58}}
}
{{hskip#2#3}{#4}}%
}makeatother
begin{document}
section{ABC}
end{document}
Thank you!! What is thecsnamecommand?
– heblyx
yesterday
1
@heblyx It allows you to use a control sequence (a.k.a. macro) by its name. One expansion ofcsname thesectionendcsnamegivesthesection. If you simply usethesectionit will work as well. Thecsnamethingy is just for dynamically creating these formatting commands.
– Phelype Oleinik
yesterday
@PhelypeOleinik - Using thecsname ... endcsnamemachinery would seem to be overkill here. Maybe replacecsname thesectionendcsname autodotwiththesection.autodot? :-)
– Mico
yesterday
@Mico Indeed, unnecessary complication. Done :)
– Phelype Oleinik
yesterday
2
Note: This could result in two., ifautodotresults in adding a.. And IMHO the KOMA-Script guide recommends to add number format parts like the end dot tosectionformatinstead ofsectionlinesformat. See my answer about how to do this.
– Schweinebacke
yesterday
|
show 1 more comment
The macro sectionformat contains an enskip at the end. You can redefine it without that:
documentclass{scrartcl}
usepackage{adforn}
defsectionformat{thesectionautodot}% enskip
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}{%
{adforn{30} {#3}. {#4} adforn{58}}
}
{{hskip#2#3}{#4}}%
}makeatother
begin{document}
section{ABC}
end{document}
The macro sectionformat contains an enskip at the end. You can redefine it without that:
documentclass{scrartcl}
usepackage{adforn}
defsectionformat{thesectionautodot}% enskip
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}{%
{adforn{30} {#3}. {#4} adforn{58}}
}
{{hskip#2#3}{#4}}%
}makeatother
begin{document}
section{ABC}
end{document}
edited yesterday
answered yesterday
Phelype OleinikPhelype Oleinik
24.4k54688
24.4k54688
Thank you!! What is thecsnamecommand?
– heblyx
yesterday
1
@heblyx It allows you to use a control sequence (a.k.a. macro) by its name. One expansion ofcsname thesectionendcsnamegivesthesection. If you simply usethesectionit will work as well. Thecsnamethingy is just for dynamically creating these formatting commands.
– Phelype Oleinik
yesterday
@PhelypeOleinik - Using thecsname ... endcsnamemachinery would seem to be overkill here. Maybe replacecsname thesectionendcsname autodotwiththesection.autodot? :-)
– Mico
yesterday
@Mico Indeed, unnecessary complication. Done :)
– Phelype Oleinik
yesterday
2
Note: This could result in two., ifautodotresults in adding a.. And IMHO the KOMA-Script guide recommends to add number format parts like the end dot tosectionformatinstead ofsectionlinesformat. See my answer about how to do this.
– Schweinebacke
yesterday
|
show 1 more comment
Thank you!! What is thecsnamecommand?
– heblyx
yesterday
1
@heblyx It allows you to use a control sequence (a.k.a. macro) by its name. One expansion ofcsname thesectionendcsnamegivesthesection. If you simply usethesectionit will work as well. Thecsnamethingy is just for dynamically creating these formatting commands.
– Phelype Oleinik
yesterday
@PhelypeOleinik - Using thecsname ... endcsnamemachinery would seem to be overkill here. Maybe replacecsname thesectionendcsname autodotwiththesection.autodot? :-)
– Mico
yesterday
@Mico Indeed, unnecessary complication. Done :)
– Phelype Oleinik
yesterday
2
Note: This could result in two., ifautodotresults in adding a.. And IMHO the KOMA-Script guide recommends to add number format parts like the end dot tosectionformatinstead ofsectionlinesformat. See my answer about how to do this.
– Schweinebacke
yesterday
Thank you!! What is the
csname command?– heblyx
yesterday
Thank you!! What is the
csname command?– heblyx
yesterday
1
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
yesterday
@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
yesterday
@PhelypeOleinik - Using the
csname ... endcsname machinery would seem to be overkill here. Maybe replace csname thesectionendcsname autodot with thesection.autodot? :-)– Mico
yesterday
@PhelypeOleinik - Using the
csname ... endcsname machinery would seem to be overkill here. Maybe replace csname thesectionendcsname autodot with thesection.autodot? :-)– Mico
yesterday
@Mico Indeed, unnecessary complication. Done :)
– Phelype Oleinik
yesterday
@Mico Indeed, unnecessary complication. Done :)
– Phelype Oleinik
yesterday
2
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
yesterday
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
yesterday
|
show 1 more comment
You should reduce group braces to a minimum and add the . either to the sectionformat:
documentclass{scrartcl}
usepackage{adforn}
renewcommand*{sectionformat}{thesection.enskip}% replaced autodot by .
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}%
{adforn{30} #3#4 adforn{58}}%
{hskip#2#3#4}%
}makeatother
begin{document}
section{ABC}
end{document}
or select numbers=withdot to add the dot to all section levels:
documentclass[numbers=enddot]{scrartcl}
usepackage{adforn}
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}%
{adforn{30} #3#4 adforn{58}}%
{hskip#2#3#4}%
}
begin{document}
section{ABC}
end{document}
Both examples result in:

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}
usepackage{polyglossia}
setmainlanguage{hebrew}
newfontfamilyhebrewfont[Script=Hebrew]{David CLM}
newfontfamilyhebrewfonttt[Script=Hebrew]{Miriam Mono CLM}
newfontfamilyhebrewfontsf[Script=Hebrew]{Simple CLM}
usepackage{adforn}
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}%
{adforn{30} #3#4 adforn{58}}%
{hskip#2#3#4}%
}
begin{document}
section{גדה}
end{document}
and
documentclass{scrartcl}
usepackage{polyglossia}
setmainlanguage{hebrew}
newfontfamilyhebrewfont[Script=Hebrew]{David CLM}
newfontfamilyhebrewfonttt[Script=Hebrew]{Miriam Mono CLM}
newfontfamilyhebrewfontsf[Script=Hebrew]{Simple CLM}
usepackage{adforn}
renewcommand*{sectionformat}{thesection.enskip}% replaced autodot by .
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}%
{adforn{30} #3#4 adforn{58}}%
{hskip#2#3#4}%
}
begin{document}
section{גדה}
end{document}
both result in:

which seem to be correct for using RL.
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
yesterday
It is possible?
– heblyx
yesterday
1
@heblyx Cannot reproduce this. See myhebrewexample.
– Schweinebacke
10 hours ago
I will replace it. Thank you!!
– heblyx
7 hours ago
add a comment |
You should reduce group braces to a minimum and add the . either to the sectionformat:
documentclass{scrartcl}
usepackage{adforn}
renewcommand*{sectionformat}{thesection.enskip}% replaced autodot by .
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}%
{adforn{30} #3#4 adforn{58}}%
{hskip#2#3#4}%
}makeatother
begin{document}
section{ABC}
end{document}
or select numbers=withdot to add the dot to all section levels:
documentclass[numbers=enddot]{scrartcl}
usepackage{adforn}
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}%
{adforn{30} #3#4 adforn{58}}%
{hskip#2#3#4}%
}
begin{document}
section{ABC}
end{document}
Both examples result in:

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}
usepackage{polyglossia}
setmainlanguage{hebrew}
newfontfamilyhebrewfont[Script=Hebrew]{David CLM}
newfontfamilyhebrewfonttt[Script=Hebrew]{Miriam Mono CLM}
newfontfamilyhebrewfontsf[Script=Hebrew]{Simple CLM}
usepackage{adforn}
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}%
{adforn{30} #3#4 adforn{58}}%
{hskip#2#3#4}%
}
begin{document}
section{גדה}
end{document}
and
documentclass{scrartcl}
usepackage{polyglossia}
setmainlanguage{hebrew}
newfontfamilyhebrewfont[Script=Hebrew]{David CLM}
newfontfamilyhebrewfonttt[Script=Hebrew]{Miriam Mono CLM}
newfontfamilyhebrewfontsf[Script=Hebrew]{Simple CLM}
usepackage{adforn}
renewcommand*{sectionformat}{thesection.enskip}% replaced autodot by .
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}%
{adforn{30} #3#4 adforn{58}}%
{hskip#2#3#4}%
}
begin{document}
section{גדה}
end{document}
both result in:

which seem to be correct for using RL.
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
yesterday
It is possible?
– heblyx
yesterday
1
@heblyx Cannot reproduce this. See myhebrewexample.
– Schweinebacke
10 hours ago
I will replace it. Thank you!!
– heblyx
7 hours ago
add a comment |
You should reduce group braces to a minimum and add the . either to the sectionformat:
documentclass{scrartcl}
usepackage{adforn}
renewcommand*{sectionformat}{thesection.enskip}% replaced autodot by .
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}%
{adforn{30} #3#4 adforn{58}}%
{hskip#2#3#4}%
}makeatother
begin{document}
section{ABC}
end{document}
or select numbers=withdot to add the dot to all section levels:
documentclass[numbers=enddot]{scrartcl}
usepackage{adforn}
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}%
{adforn{30} #3#4 adforn{58}}%
{hskip#2#3#4}%
}
begin{document}
section{ABC}
end{document}
Both examples result in:

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}
usepackage{polyglossia}
setmainlanguage{hebrew}
newfontfamilyhebrewfont[Script=Hebrew]{David CLM}
newfontfamilyhebrewfonttt[Script=Hebrew]{Miriam Mono CLM}
newfontfamilyhebrewfontsf[Script=Hebrew]{Simple CLM}
usepackage{adforn}
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}%
{adforn{30} #3#4 adforn{58}}%
{hskip#2#3#4}%
}
begin{document}
section{גדה}
end{document}
and
documentclass{scrartcl}
usepackage{polyglossia}
setmainlanguage{hebrew}
newfontfamilyhebrewfont[Script=Hebrew]{David CLM}
newfontfamilyhebrewfonttt[Script=Hebrew]{Miriam Mono CLM}
newfontfamilyhebrewfontsf[Script=Hebrew]{Simple CLM}
usepackage{adforn}
renewcommand*{sectionformat}{thesection.enskip}% replaced autodot by .
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}%
{adforn{30} #3#4 adforn{58}}%
{hskip#2#3#4}%
}
begin{document}
section{גדה}
end{document}
both result in:

which seem to be correct for using RL.
You should reduce group braces to a minimum and add the . either to the sectionformat:
documentclass{scrartcl}
usepackage{adforn}
renewcommand*{sectionformat}{thesection.enskip}% replaced autodot by .
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}%
{adforn{30} #3#4 adforn{58}}%
{hskip#2#3#4}%
}makeatother
begin{document}
section{ABC}
end{document}
or select numbers=withdot to add the dot to all section levels:
documentclass[numbers=enddot]{scrartcl}
usepackage{adforn}
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}%
{adforn{30} #3#4 adforn{58}}%
{hskip#2#3#4}%
}
begin{document}
section{ABC}
end{document}
Both examples result in:

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}
usepackage{polyglossia}
setmainlanguage{hebrew}
newfontfamilyhebrewfont[Script=Hebrew]{David CLM}
newfontfamilyhebrewfonttt[Script=Hebrew]{Miriam Mono CLM}
newfontfamilyhebrewfontsf[Script=Hebrew]{Simple CLM}
usepackage{adforn}
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}%
{adforn{30} #3#4 adforn{58}}%
{hskip#2#3#4}%
}
begin{document}
section{גדה}
end{document}
and
documentclass{scrartcl}
usepackage{polyglossia}
setmainlanguage{hebrew}
newfontfamilyhebrewfont[Script=Hebrew]{David CLM}
newfontfamilyhebrewfonttt[Script=Hebrew]{Miriam Mono CLM}
newfontfamilyhebrewfontsf[Script=Hebrew]{Simple CLM}
usepackage{adforn}
renewcommand*{sectionformat}{thesection.enskip}% replaced autodot by .
renewcommand{sectionlinesformat}[4]{%
ifstr{#1}{section}%
{adforn{30} #3#4 adforn{58}}%
{hskip#2#3#4}%
}
begin{document}
section{גדה}
end{document}
both result in:

which seem to be correct for using RL.
edited 10 hours ago
answered yesterday
SchweinebackeSchweinebacke
22k4577
22k4577
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
yesterday
It is possible?
– heblyx
yesterday
1
@heblyx Cannot reproduce this. See myhebrewexample.
– Schweinebacke
10 hours ago
I will replace it. Thank you!!
– heblyx
7 hours ago
add a comment |
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
yesterday
It is possible?
– heblyx
yesterday
1
@heblyx Cannot reproduce this. See myhebrewexample.
– Schweinebacke
10 hours ago
I will replace it. Thank you!!
– heblyx
7 hours ago
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
yesterday
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
yesterday
It is possible?
– heblyx
yesterday
It is possible?
– heblyx
yesterday
1
1
@heblyx Cannot reproduce this. See my
hebrew example.– Schweinebacke
10 hours ago
@heblyx Cannot reproduce this. See my
hebrew example.– Schweinebacke
10 hours ago
I will replace it. Thank you!!
– heblyx
7 hours ago
I will replace it. Thank you!!
– heblyx
7 hours ago
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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

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{#1}{section}{% {adforn{30} {#3}. {#4} adforn{58}}% }%– AndiW
yesterday