Skip to content
Snippets Groups Projects
Commit beca80d1 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

"IfLanguageName" ist robuster

parent 974ec287
Branches
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
\setcounter{errorcontextlines}{100} \listfiles \setcounter{errorcontextlines}{100} \listfiles
\NeedsTeXFormat{LaTeX2e}[1999/12/01] \NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{ptb-confirm}[2018/11/05 v0.2f Bestaetigung (RN)] \ProvidesClass{ptb-confirm}[2018/11/09 v0.2g Bestaetigung (RN)]
\RequirePackage{eso-pic,graphicx,xcolor,tabularx,trimspaces,amsmath} \RequirePackage{eso-pic,graphicx,xcolor,tabularx,trimspaces,amsmath}
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
\vl@Zipcode\ \vl@Town \vl@Zipcode\ \vl@Town
\ifx\vl@Land\@empty\else ~\smallskip \\ \textls[75]{\MakeUppercase{\vl@Land}} \fi \ifx\vl@Land\@empty\else ~\smallskip \\ \textls[75]{\MakeUppercase{\vl@Land}} \fi
} }
\iflanguage{ngerman}{% \IfLanguageName{ngerman}{%
%\sisetup{locale=DE} %\sisetup{locale=DE}
\subject{Antragsbestätigung~\usekomavar{myref}}% \subject{Antragsbestätigung~\usekomavar{myref}}%
\input{ptb-confirm-de.lco}% \input{ptb-confirm-de.lco}%
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
\setcounter{errorcontextlines}{100} \listfiles \setcounter{errorcontextlines}{100} \listfiles
\NeedsTeXFormat{LaTeX2e}[1999/12/01] \NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{ptbletter}[2018/06/14 v0.3c PTB-Brief-Klasse (RN)] \ProvidesClass{ptbletter}[2018/11/09 v0.3d PTB-Brief-Klasse (RN)]
\let\ptb@tempdima=\@ovxx \let\ptb@tempdima=\@ovxx
\let\ptb@tempdimb=\@ovyy \let\ptb@tempdimb=\@ovyy
...@@ -212,10 +212,10 @@ ...@@ -212,10 +212,10 @@
\parbox{\useplength{firstfootwidth}}{% \parbox{\useplength{firstfootwidth}}{%
\sffamily\tiny \sffamily\tiny
\begin{tabular}{@{}l@{}} \begin{tabular}{@{}l@{}}
\iflanguage{ngerman}{Hausadresse, Lieferanschrift:}{Domicile:} \\ \IfLanguageName{ngerman}{Hausadresse, Lieferanschrift:}{Domicile:} \\
\ifptb@BLN Abbestr. 2--12 \else Bundesallee 100 \fi \\ \ifptb@BLN Abbestr. 2--12 \else Bundesallee 100 \fi \\
\ifptb@BLN 10587 Berlin \else 38116 Braunschweig\fi \\ \ifptb@BLN 10587 Berlin \else 38116 Braunschweig\fi \\
\iflanguage{ngerman}{DEUTSCHLAND}{GERMANY} \\ \IfLanguageName{ngerman}{DEUTSCHLAND}{GERMANY} \\
\end{tabular}% \end{tabular}%
\hfill \hfill
\begin{tabular}{@{}l@{~}l@{}} \begin{tabular}{@{}l@{~}l@{}}
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
\ifptb@BLN PTB Braunschweig \else PTB Berlin-Charlottenburg \fi \\ \ifptb@BLN PTB Braunschweig \else PTB Berlin-Charlottenburg \fi \\
\ifptb@BLN Bundesallee 100 \else Abbestr. 2--12 \fi \\ \ifptb@BLN Bundesallee 100 \else Abbestr. 2--12 \fi \\
\ifptb@BLN 38116 Braunschweig \else 10587 Berlin \fi \\ \ifptb@BLN 38116 Braunschweig \else 10587 Berlin \fi \\
\iflanguage{ngerman}{DEUTSCHLAND}{GERMANY} \IfLanguageName{ngerman}{DEUTSCHLAND}{GERMANY}
\end{tabular}% \end{tabular}%
\hfill \mbox{} \hfill \mbox{}
}% }%
...@@ -325,7 +325,7 @@ ...@@ -325,7 +325,7 @@
\setlist{leftmargin=*,nosep,topsep=.5em,itemsep=.25em} \setlist{leftmargin=*,nosep,topsep=.5em,itemsep=.25em}
\setlist[1]{labelindent=1em} \setlist[1]{labelindent=1em}
\iflanguage{ngerman}{% \IfLanguageName{ngerman}{%
\newcommand*\MFG{Mit freundlichen Gr\"u\ss en} \newcommand*\MFG{Mit freundlichen Gr\"u\ss en}
\newcommand*\MFg{Mit freundlichem Gru\ss} \newcommand*\MFg{Mit freundlichem Gru\ss}
\newcommand*\MHG{Mit herzlichen Gr\"u\ss en} \newcommand*\MHG{Mit herzlichen Gr\"u\ss en}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment