[Labels] Improve flexibility
Update helpers / build_helpers (push) Successful in 25s

This commit is contained in:
2026-03-19 08:33:43 +01:00
parent 81c1562d13
commit b6c16ef9d0
3 changed files with 311 additions and 301 deletions
+7 -2
View File
@@ -9,12 +9,17 @@
% ┌ ┐
% │ Rendering │
% └ ┘
% This is used to render the optional name argument in the descriptors
% Updating this function only has an effect if you are using the
% unmodified templates below or have updated them, but still use this function
\newcommand{\descriptorNameDisplay}[1]{\textit{(#1)}}
% Specify how the inline and short descriptors (e.g. Lemma, etc) are rendered.
% - #1 is the name of the descriptor
% - #2 is the number (correctly rendered according to settings and preceded with space if not disabled)
% - #3 is the name passed (non-empty asserted)
\newcommand{\shortDescriptorTemplate}[3]{\bg{#1color}{\shortNamingTranslate{#1} #2} \textit{(#3)}}
\newcommand{\inlineDescriptorTemplate}[3]{\bg{#1color}{\namingTranslate{#1} #2} \textit{(#3)}}
\newcommand{\shortDescriptorTemplate}[3]{\bg{#1color}{\shortNamingTranslate{#1} #2} \descriptorNameDisplay{#3}}
\newcommand{\inlineDescriptorTemplate}[3]{\bg{#1color}{\namingTranslate{#1} #2} \descriptorNameDisplay{#3}}
% These are used if no name is provided and argument #4 from above is the missing argument
\newcommand{\anonymousShortDescriptorTemplate}[2]{\bg{#1color}{\shortNamingTranslate{#1} #2}\ }