summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/babel-contrib/german/germanb.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/babel-contrib/german/germanb.dtx')
-rw-r--r--macros/latex/contrib/babel-contrib/german/germanb.dtx46
1 files changed, 28 insertions, 18 deletions
diff --git a/macros/latex/contrib/babel-contrib/german/germanb.dtx b/macros/latex/contrib/babel-contrib/german/germanb.dtx
index 21e0c78802..35a837bf70 100644
--- a/macros/latex/contrib/babel-contrib/german/germanb.dtx
+++ b/macros/latex/contrib/babel-contrib/german/germanb.dtx
@@ -2,7 +2,7 @@
%
% File `germanb.dtx'
%
-% Copyright 1989--2020
+% Copyright 1989--2021
% Johannes L. Braams
% Bernd Raichle
% Walter Schmidt
@@ -25,7 +25,7 @@
%
% The Current Maintainer of this work is Juergen Spitzmueller.
% \fi
-% \CheckSum{513}
+% \CheckSum{522}
%
% \iffalse
% Tell the \LaTeX\ system who we are and write an entry on the
@@ -39,7 +39,7 @@
%<germanb>\ProvidesLanguage{germanb}
%\fi
%\ProvidesFile{germanb.dtx}
- [2020/07/21 v2.12 German support for babel (pre-1996 orthography)]
+ [2021/02/27 v2.13 German support for babel (pre-1996 orthography)]
%\iffalse
%
%<*filedriver>
@@ -358,9 +358,31 @@
%
% \subsection{General settings}
%
-% First, we define some helper macros that help us to identify later on
+%
+% If \file{germanb.ldf} is read via the deprecated \babel\ option
+% \Lopt{germanb}, we make it behave as if \Lopt{german} was specified.
+% \changes{Version 2.6m}{2008/06/01}{Corrected a typo}
+% \begin{macrocode}
+\def\tmpa{germanb}
+\let\SaveCurrentOption\CurrentOption
+\ifx\CurrentOption\tmpa
+ \def\CurrentOption{german}
+\fi
+% \end{macrocode}
+%
+% The macro |\LdfInit| takes care of preventing that this file is
+% loaded more than once with the same option, checking the category
+% code of the \texttt{@} sign, etc.
+% \changes{Version 2.6d}{1996/11/02}{Now use \cs{LdfInit} to perform
+% initial checks}
+% \begin{macrocode}
+\LdfInit\CurrentOption{captions\CurrentOption}
+% \end{macrocode}
+%
+% We define some helper macros that help us to identify later on
% which variety of German we are currently dealing with.
% \changes{Version 2.9a=Version 2.10}{2016/11/03}{Add helper macros to identify the current option.}
+% \changes{Version 2.9d=Version 2.13}{2021/02/27}{Move option helper macros after \cs{LdfInit} to fix plain tex usage.}
% \iffalse
%<*germanb>
% \fi
@@ -371,14 +393,11 @@
\def\bbl@opt@swissgerman{swissgerman}
% \end{macrocode}
%
-% If \file{germanb.ldf} is read via the deprecated \babel\ option
-% \Lopt{germanb}, we make it behave as if \Lopt{german} was specified.
+% Some more work to make germanb behave like german.
% \changes{Version 2.6l}{2008/03/17}{Making germanb behave like german
% needs some more work besides defining \cs{CurrentOption}}
-% \changes{Version 2.6m}{2008/06/01}{Corrected a typo}
% \begin{macrocode}
-\ifx\CurrentOption\bbl@opt@germanb
- \def\CurrentOption{german}
+\ifx\SaveCurrentOption\bbl@opt@germanb
\ifx\l@german\@undefined
\@nopatterns{German (trad. orthography)}
\adddialect\l@german0
@@ -393,15 +412,6 @@
\fi
% \end{macrocode}
%
-% The macro |\LdfInit| takes care of preventing that this file is
-% loaded more than once with the same option, checking the category
-% code of the \texttt{@} sign, etc.
-% \changes{Version 2.6d}{1996/11/02}{Now use \cs{LdfInit} to perform
-% initial checks}
-% \begin{macrocode}
-\LdfInit\CurrentOption{captions\CurrentOption}
-% \end{macrocode}
-%
% If \file{germanb.ldf} is read as an option, i.e. via |\usepackage|
% command, \Lopt{german} could be an `unknown' language, so we
% have to make it known. We check for the existence of