Skip to content

Commit 1f041cb

Browse files
Add documentation on language support
1 parent 6e0615f commit 1f041cb

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ and this project adheres to
1111

1212
- Add a hint on the usage of `scrreprt` as the base class if one wants to have
1313
numbered bibliography or appendices.
14+
- Add section in the documentation on the usage of babel, its shorthands for
15+
German and English to re-enable hyphenation of compound words, and the
16+
conflicting package `hyphenat`.
1417

1518
### Fixed
1619

se2thesis.dtx

+42
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,48 @@
545545
% question;
546546
% however, this can also be arbitrary text.
547547
%
548+
% \subsection{Language Support and Hyphenation}\label{sec:doct-se2thesis-lang}
549+
%
550+
% The study regulations of the University of Passau require students to write
551+
% their thesis in either German or English. For both cases it is recommended
552+
% to load a package for the correct hyphenation patters. Usually, one can
553+
% either choose between the \pkg{babel} and \pkg{polyglossia} package. For a
554+
% detailed discussion in the differences and which to choose, please use the
555+
% search engine of your choice.
556+
%
557+
% For this documentation we stick with the \pkg{babel} package, which is often
558+
% considered to be the standard package.
559+
%
560+
% If you write your thesis in German, load \pkg{babel} in your preamble like
561+
% follows
562+
% \begin{verbatim}
563+
% \usepackage[ngerman]{babel}
564+
% \end{verbatim}
565+
% For a thesis in English, you have to also load the German variant plus the
566+
% English one as the default (see \cref{sec:doc-se2thesis-authorship} for an
567+
% explanation)
568+
% \begin{verbatim}
569+
% \usepackage[ngerman,main=UKenglish]{babel}
570+
% \end{verbatim}
571+
%
572+
% Note that by default, \LaTeX{} does not provide hyphenation for compound
573+
% words, which is explained in the \TeX{} Book~\cite[p.~454]{TODO} and a
574+
% StackExchange post\footnote{\href{https://tex.stackexchange.com/a/63234/14622}{https://tex.stackexchange.com/a/63234/14622}}. The \pkg{babel} package
575+
% provides a way (called shorthands) for German, which allows to reenable
576+
% hyphenation for compound words (as they are common on German). These
577+
% shorthands are by default not available for English, but they can easily be
578+
% added by adding
579+
% \begin{verbatim}
580+
% \useshorthands{"}
581+
% \addto\extrasUKenglish{\languageshorthands{ngerman}}
582+
% \end{verbatim}
583+
% after loading \pkg{babel} with the aforementioned \cmd{\usepackage}
584+
% macro\footnote{see https://tex.stackexchange.com/a/298844/14622}.
585+
%
586+
% \emph{Please note:} loading the \pkg{hyphenat} package is strongly discouraged
587+
% by the \pkg{se2thesis} maintainer because it conflicts with the \env{hyp}
588+
% environment provided by \pkg{se2thesis} (see \cref{sec:doc-se2thesis-summaries}).
589+
%
548590
% \end{documentation}
549591
%
550592
% \clearpage

0 commit comments

Comments
 (0)