Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Christoph
Posts: 29 Joined: Tue Mar 22, 2022 5:22 pm
Post
by Christoph » Thu Mar 31, 2022 10:12 am
After setting up my chapter and section headings:
1.:
https://latex.org/forum/viewtopic.php?f=48&t=34799
2.:
https://latex.org/forum/viewtopic.php?f=48&t=34802
I still had a problem with the indention of the subparagraph:
Code: Select all
\documentclass[
% paper=a4,
fontsize=12pt,%
]{scrreprt}
\usepackage{lipsum}
\addtokomafont{paragraph}{\mdseries\underline}
\addtokomafont{subparagraph}{\mdseries}
\RedeclareSectionCommands[%
afterindent=false,%
runin=false,% Überschrift wird frei stehend gesetzt
afterskip=1.5ex plus .2ex% subsubsection default %vertikaler Abstand nach der Überschrift
% indent=0pt% is not working probably because it´s already the default value at the paragraph SectionCommand
]{paragraph,subparagraph}
\begin{document}
\lipsum[2]
\paragraph{Paragraph}
\lipsum[1]
\subparagraph{Subparagraph}
\lipsum[8]
\end{document}
Last edited by
Christoph on Thu Mar 31, 2022 10:32 am, edited 1 time in total.
Christoph
Posts: 29 Joined: Tue Mar 22, 2022 5:22 pm
Post
by Christoph » Thu Mar 31, 2022 10:19 am
Code: Select all
\RedeclareSectionCommands[%
indent=0pt%
]{subparagraph}
After some trial error I´ve found out the solution to put the "indent=0pt" in a new command.
Christoph
Posts: 29 Joined: Tue Mar 22, 2022 5:22 pm
Post
by Christoph » Thu Mar 31, 2022 10:27 am
CODE BEFORE ADDING "%"s
Code: Select all
\renewcommand{\sectionlinesformat}[4]{%
\Ifstr{#1}{section}{%
\parbox[t]{\linewidth}{%
\raggedsection\@hangfrom{\hskip #2#3}{#4}\par%
\vspace*{-1\ht\strutbox}\rule{\linewidth}{0.8pt}%
}%
}{
\Ifstr{#1}{subsection}{%
\parbox[t]{\linewidth}{%
\raggedsection\@hangfrom{\hskip #2#3}{#4}\par%
\vspace*{-1\ht\strutbox}\rule{\linewidth}{.8pt}%
}%
}{
\Ifstr{#1}{subsubsection}{%
\parbox[t]{\linewidth}{%
\raggedsection\@hangfrom{\hskip #2#3}{#4}\par%
\vspace*{-1\ht\strutbox}\rule{\linewidth}{.8pt}%
}%
}{
\@hangfrom{\hskip #2#3}{#4}}%
}}}
CODE AFTER ADDING "%"s
Code: Select all
\renewcommand{\sectionlinesformat}[4]{%
\Ifstr{#1}{section}{%
\parbox[t]{\linewidth}{%
\raggedsection\@hangfrom{\hskip #2#3}{#4}\par%
\vspace*{-1\ht\strutbox}\rule{\linewidth}{0.8pt}%
}%
}{%
\Ifstr{#1}{subsection}{%
\parbox[t]{\linewidth}{%
\raggedsection\@hangfrom{\hskip #2#3}{#4}\par%
\vspace*{-1\ht\strutbox}\rule{\linewidth}{.8pt}%
}%
}{%
\Ifstr{#1}{subsubsection}{%
\parbox[t]{\linewidth}{%
\raggedsection\@hangfrom{\hskip #2#3}{#4}\par%
\vspace*{-1\ht\strutbox}\rule{\linewidth}{.8pt}%
}%
}{%
\@hangfrom{\hskip #2#3}{#4}}%
}}}
MjK
Posts: 89 Joined: Fri Jan 28, 2022 6:09 pm
Post
by MjK » Thu Mar 31, 2022 11:30 am
Christoph wrote: Code: Select all
\RedeclareSectionCommands[%
indent=0pt%
]{subparagraph}
After some trial error I´ve found out the solution to put the "indent=0pt" in a new command.
A new command is not needed but a comma between all options.