Skip to content

Commit b27cf57

Browse files
Prevent manual line break in lower title back
1 parent b0338f8 commit b27cf57

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Prevent line break in the lower back title if one added a manual line break
13+
using `\\` to the title in order to layout it properly for the front title
14+
page.
15+
1016
## [v4.3.1] – 2024–07–31
1117

1218
### Added

se2thesis.dtx

+8-2
Original file line numberDiff line numberDiff line change
@@ -1409,12 +1409,18 @@
14091409
% \end{macrocode}
14101410
%
14111411
% \begin{macro}{\@lowertitleback}
1412-
% Afterwards, override the definition of \cs{@lowertitleback}.
1412+
% Afterwards, override the definition of \cs{@lowertitleback}. To prevent
1413+
% line breaks in the title (that might be necessary to layout it properly on
1414+
% the front title page), we place a group around \cs{@title} and temporarily
1415+
% redefine \cmd{\\} to do nothing.
14131416
% \begin{macrocode}
14141417
\renewcommand*{\@lowertitleback}{%
14151418
\group_begin:
14161419
\noindent\textbf{\@author}:\\
1417-
\emph{\@title}\\
1420+
\group_begin:
1421+
\let\\\relax
1422+
\emph{\@title}
1423+
\group_end:\\
14181424
\tl_if_eq:NnT \l_@@_thesis_type_tl { bachelor }
14191425
{ \GetTranslation{Bachelor-thesis},~ }
14201426
\tl_if_eq:NnT \l_@@_thesis_type_tl { master }

0 commit comments

Comments
 (0)