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

\IfArgIsEmpty --> \Ifstr

parent c53ef658
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@
\vfill
\usebeamerfont{title}\inserttitle
\vfill
\IfArgIsEmpty{\insertsubtitle}{\vfill}{%
\Ifstr{\insertsubtitle}{}{\vfill}{%
\usebeamerfont{subtitle}\insertsubtitle\\[3.5ex]
}
\usebeamerfont{author}\insertauthor\\[2ex]
......@@ -52,12 +52,12 @@
}%
\\[1.3ex]%
\begin{tabular}{@{}l@{~}l@{}}%
\multicolumn{2}{@{}l@{}}{\IfArgIsEmpty{\PTB@contactName}%
\multicolumn{2}{@{}l@{}}{\Ifstr{\PTB@contactName}{}%
{Max Mustermann}{\PTB@contactName}} \\
\translate{phone}: &
\IfArgIsEmpty{\PTB@contactPhone}{0531 592-\#\#\#\#}{\PTB@contactPhone} \\
\translate{phone}: &
\Ifstr{\PTB@contactPhone}{}{0531 592-\#\#\#\#}{\PTB@contactPhone} \\
\translate{email}: &
\IfArgIsEmpty{\PTB@contactEMail}{Max.Mustermann@ptb.de}%
\Ifstr{\PTB@contactEMail}{}{Max.Mustermann@ptb.de}%
{\PTB@contactEMail} \\
\end{tabular} \\
\href{https://www.ptb.de}{www.ptb.de} \\[1.8ex]
......@@ -115,7 +115,7 @@
Braunschweig und Berlin \\
\mdseries\translate{NMI}
\end{varwidth}
\IfArgIsEmpty{PTB@orgLogo}{}{%
\Ifstr{\PTB@orgLogo}{}{}{%
\hfill\includegraphics[height=130\unitlength]{\PTB@orgLogo}%
}
\end{minipage}
......
......@@ -24,14 +24,6 @@
\define@key{PTB}{phone}{\gdef\PTB@contactPhone{#1}}
\define@key{PTB}{location}{\gdef\PTB@location{#1}}
% From `scrbase.sty'(modified)
\newcommand{\IfArgIsEmpty}[1]{%
\expandafter\if\expandafter\relax\expandafter\detokenize\expandafter{#1}\relax%
\expandafter\@firstoftwo
\else
\expandafter\@secondoftwo
\fi
}
% From `scrbase.sty'
\newcommand\Ifstr[2]{%
\begingroup\protected@edef\reserved@a{#1}\protected@edef\reserved@b{#2}%
......
......@@ -9,17 +9,16 @@
\newcommand*\PTB@tempb{}
\newcommand*\PTB@tempc{}
% Default language should be `ngerman'
\def\PTB@tempa{english}
\def\PTB@tempb{english,ngerman}
% The default language should be `ngerman', `english' should also be present.
\def\PTB@tempa{english}\def\PTB@tempb{english,ngerman}
\@for\CurrentOption:=\@classoptionslist\do{%
\ifx\CurrentOption\PTB@tempa
\def\PTB@tempb{ngerman}% Only add `english' if not already present
\def\PTB@tempb{ngerman}% Only add `english' if not already present.
\fi
}%
\edef\@classoptionslist{\PTB@tempb,\@classoptionslist}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{beamer}}
\ProcessOptions*\relax
\ProcessOptions\relax
\RequirePackage{iftex}%
\iftutex% LuaTeX or XeTeX
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment