summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/se2thesis/se2thesis.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-01-28 03:02:00 +0000
committerNorbert Preining <norbert@preining.info>2023-01-28 03:02:00 +0000
commit261f52e7813eade06f278eda62023fda3d266980 (patch)
tree0d56bc08c2c97b37eda3497b1ed29eff56d02a1e /macros/latex/contrib/se2thesis/se2thesis.dtx
parent924dfac8358e4caeec54b5bce18848ee52f36eac (diff)
CTAN sync 202301280301
Diffstat (limited to 'macros/latex/contrib/se2thesis/se2thesis.dtx')
-rw-r--r--macros/latex/contrib/se2thesis/se2thesis.dtx52
1 files changed, 46 insertions, 6 deletions
diff --git a/macros/latex/contrib/se2thesis/se2thesis.dtx b/macros/latex/contrib/se2thesis/se2thesis.dtx
index 12e77ce2f7..525d551869 100644
--- a/macros/latex/contrib/se2thesis/se2thesis.dtx
+++ b/macros/latex/contrib/se2thesis/se2thesis.dtx
@@ -721,7 +721,7 @@
%
% Identify the class and give the overall version number.
% \begin{macrocode}
-\ProvidesExplClass {se2thesis} {2023-01-10} {2.0.0}
+\ProvidesExplClass {se2thesis} {2023-01-27} {2.1.0}
{A thesis class for the Chair of Software Engineering II}
% \end{macrocode}
%
@@ -1565,6 +1565,42 @@
% \end{macrocode}
% \end{macro}
%
+% \subsection{Styling of the sectioning commans}
+%
+% We change the formatting of the chapter, section, and sub-section headings.
+% \begin{macrocode}
+\addtokomafont{chapterprefix}{\raggedleft\bfseries}
+\addtokomafont{chapter}{\mdseries}
+\addtokomafont{section}{\large\mdseries}
+\addtokomafont{subsection}{\normalsize\mdseries}
+\renewcommand*{\chapterformat}{%
+ \mbox{%
+ \scalebox{1.3}{\chapappifchapterprefix{\nobreakspace}}%
+ \scalebox{3.5}{\color{UPSE2-Gray}\thechapter\autodot}\enskip%
+ }%
+}
+\renewcommand*{\chapterlineswithprefixformat}[3]{%
+ \Ifstr{#1}{chapter}
+ {#2\textls*[75]{\MakeUppercase{#3}}}% change definition for chapter
+ {#2#3}% original definition
+}%
+\renewcommand*{\sectionlinesformat}[4]{%
+ #3\textls*[75]{\MakeUppercase{#4}}%
+}
+% \end{macrocode}
+%
+% Change the loop of a \cmd{\paragraph} to be italic and end with a full stop.
+% \begin{macrocode}
+\setkomafont{paragraph}{\normalsize\normalfont\itshape}
+\AddtoDoHook{heading/endgroup/paragraph}{\headingdot}
+\newcommand*{\headingdot}[1]{.}
+% \end{macrocode}
+%
+% Change the width of a dictum
+% \begin{macrocode}
+\renewcommand*{\dictumwidth}{0.42\linewidth}
+% \end{macrocode}
+%
% \subsection{Provide an environment for abstracts}
%
% We want to allow abstracts in German and English, which is also a requirement
@@ -1631,13 +1667,17 @@
% \subsection{Document structuring macros}
%
% Ensure that these macros are defined.
+% These are the exact definitions from \KOMAScript.
+% \begin{macrocode}
+\newif\if@mainmatter\@mainmattertrue
+% \end{macrocode}
% \begin{macro}{\frontmatter}
% Starts the frontmatter.
% Most notably, set the page numbers to roman.
% \begin{macrocode}
\providecommand*{\frontmatter}
{
- \if@twoside\cleardoublepage\else\clearpage\fi
+ \if@twoside\cleardoubleoddpage\else\clearpage\fi
\@mainmatterfalse
\pagenumbering { roman }
}
@@ -1649,13 +1689,13 @@
% \begin{macrocode}
\providecommand*{\mainmatter}
{
- \if@twoside\cleardoublepage\else\clearpage\fi
+ \if@twoside\cleardoubleoddpage\else\clearpage\fi
\@mainmattertrue
\pagenumbering { arabic }
}
\providecommand*{\backmatter}
{
- \if@twoside\cleardoublepage\else\clearpage\fi
+ \if@twoside\cleardoubleoddpage\else\clearpage\fi
\@mainmatterfalse
}
% \end{macrocode}
@@ -1795,7 +1835,7 @@
% We provide the following English translations.
%
% \begin{macrocode}
-\ProvideDictionaryFor{English}{se2translations}[2023/01/10]
+\ProvideDictionaryFor{English}{se2translations}[2023/01/27]
\ProvideDictTranslation{abstract}{abstract}
\ProvideDictTranslation{Abstract}{Abstract}
\ProvideDictTranslation{acknowledgement}{acknowledgement}
@@ -1846,7 +1886,7 @@
% We provide the following German translations.
%
% \begin{macrocode}
-\ProvideDictionaryFor{German}{se2translations}[2023/01/10]
+\ProvideDictionaryFor{German}{se2translations}[2023/01/27]
\ProvideDictTranslation{abstract}{Zusammenfassung}
\ProvideDictTranslation{Abstract}{Zusammenfassung}
\ProvideDictTranslation{acknowledgement}{Danksagung}