Define two new env from app env.

One with another without a title.
This commit is contained in:
Jeff Lance 2019-01-13 10:21:50 +01:00
parent 031f6a31a5
commit 4e784ab09e

View File

@ -257,18 +257,50 @@
} }
% application % application
\NewDocumentEnvironment{application}{ o }{ % \NewDocumentEnvironment{application}{ o }{
\IfNoValueTF {#1} { % \IfNoValueTF {#1} {
% % if no subtitle
% \begin{@app}
% \noindent
% }{
% % if subtitle
% \begin{@app}[#1]
% \noindent
% }
% }{
% \end{@app}
% }
\NewDocumentEnvironment{application}{ s o }{
\IfBooleanTF {#1} {
% if starred: without logo and title
\IfNoValueTF {#2} {
% if no subtitle % if no subtitle
\begin{@app} \begin{@app2}
\noindent \noindent
}{ }{
% if subtitle % if subtitle
\begin{@app}[#1] \begin{@app2}[#2]
\noindent \noindent
} }
}{ }{
\end{@app} % if not starred: with logo
\IfNoValueTF {#2} {
% if no subtitle
\begin{@app1}
\noindent
}{
% if subtitle
\begin{@app1}[#2]
\noindent
}
}
}{
\IfBooleanTF {#1} {
\end{@app2}
}{
\end{@app1}
}
} }
% methode % methode