Get working
This commit is contained in:
@@ -1,24 +1,23 @@
|
||||
% ── Label generator ─────────────────────────────────────────────────
|
||||
\newcommand{\printNumberingConfigForDescriptor}[1]{\csname #1numbering\endcsname}
|
||||
\newcommand{\printCounter}[1]{\csname the#1\endcsname}
|
||||
\newcommand{\printCounter}[1]{\refstepcounter{#1}\csname the#1\endcsname}
|
||||
|
||||
\newcommand{\printLabel}[1]{%
|
||||
\ifcsdef{#1numbering}{% Extra config present
|
||||
% TODO: Increment
|
||||
\ifthenelse{\equal{\printNumberingConfigForDescriptor{#1}}{default}}{
|
||||
\ifthenelse{\equal{\printNumberingConfigForDescriptor{#1}}{default}}{%
|
||||
\printCounter{#1\subsectionnumbering}%
|
||||
}{
|
||||
\ifthenelse{\equal{\printNumberingConfigForDescriptor{#1}}{separate}}{
|
||||
}{%
|
||||
\ifthenelse{\equal{\printNumberingConfigForDescriptor{#1}}{separate}}{%
|
||||
\printCounter{#1\subsectionnumbering}%
|
||||
}{
|
||||
\ifthenelse{\equal{\printNumberingConfigForDescriptor{#1}}{combined}}{
|
||||
}{%
|
||||
\ifthenelse{\equal{\printNumberingConfigForDescriptor{#1}}{combined}}{%
|
||||
\printCounter{combined\subsectionnumbering}%
|
||||
}{}
|
||||
}
|
||||
}
|
||||
}{}%
|
||||
}%
|
||||
}%
|
||||
}{%
|
||||
\labelPrintBackendRoutine{#1}%
|
||||
}
|
||||
}%
|
||||
}
|
||||
\newcommand{\labelPrintBackendRoutine}[1]{
|
||||
\ifthenelse{\equal{\numberingpreset}{combined}}{
|
||||
@@ -31,9 +30,6 @@
|
||||
}
|
||||
|
||||
% Inline environments (inline)
|
||||
\newcommand{\printTranslationOptionEN}[1]{\csname #1NamingEN\endcsname}
|
||||
\newcommand{\printTranslationOptionDE}[1]{\csname #1NamingDE\endcsname}
|
||||
|
||||
\newcommand{\inline}[2][NONAME]{%
|
||||
\ifthenelse{\equal{NONAME}{#1}}{%
|
||||
\anonymousInlineDescriptorTemplate{#2}{\printLabel{#2}}%
|
||||
@@ -42,8 +38,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
\newcommand{\short}[2][__NONAME__]{%
|
||||
\ifthenelse{\equal{__NONAME__}{#1}}{%
|
||||
\newcommand{\short}[2][NONAME]{%
|
||||
\ifthenelse{\equal{NONAME}{#1}}{%
|
||||
\anonymousShortDescriptorTemplate{#2}{\printLabel{#2}}%
|
||||
}{%
|
||||
\shortDescriptorTemplate{#2}{\printLabel{#2}}{#1}%
|
||||
|
||||
Reference in New Issue
Block a user