Skip to content

Commit

Permalink
Prevent manual line break in lower title back
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanlukasczyk committed Aug 12, 2024
1 parent b0338f8 commit b27cf57
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to

## [Unreleased]

### Fixed

- Prevent line break in the lower back title if one added a manual line break
using `\\` to the title in order to layout it properly for the front title
page.

## [v4.3.1] – 2024–07–31

### Added
Expand Down
10 changes: 8 additions & 2 deletions se2thesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -1409,12 +1409,18 @@
% \end{macrocode}
%
% \begin{macro}{\@lowertitleback}
% Afterwards, override the definition of \cs{@lowertitleback}.
% Afterwards, override the definition of \cs{@lowertitleback}. To prevent
% line breaks in the title (that might be necessary to layout it properly on
% the front title page), we place a group around \cs{@title} and temporarily
% redefine \cmd{\\} to do nothing.
% \begin{macrocode}
\renewcommand*{\@lowertitleback}{%
\group_begin:
\noindent\textbf{\@author}:\\
\emph{\@title}\\
\group_begin:
\let\\\relax
\emph{\@title}
\group_end:\\
\tl_if_eq:NnT \l_@@_thesis_type_tl { bachelor }
{ \GetTranslation{Bachelor-thesis},~ }
\tl_if_eq:NnT \l_@@_thesis_type_tl { master }
Expand Down

0 comments on commit b27cf57

Please sign in to comment.