From b7b365dd369f51a5ade20338241ea19fa1828812 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Thu, 19 Feb 2026 18:27:43 +0100 Subject: [PATCH] Fix some errors --- janishutz-helpers.tex | 12 ++++++++---- src/style/counters.sty | 5 +++-- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/janishutz-helpers.tex b/janishutz-helpers.tex index f488a38..8c40f78 100644 --- a/janishutz-helpers.tex +++ b/janishutz-helpers.tex @@ -651,6 +651,7 @@ \newcommand{\printLabel}[1]{% \ifcsdef{#1numbering}{% Extra config present + % TODO: Increment \ifthenelse{\equal{\printNumberingConfigForDescriptor{#1}}{default}}{ \printCounter{#1\subsectionnumbering}% }{ @@ -680,11 +681,14 @@ \newcommand{\printTranslationOptionEN}[1]{\csname #1NamingEN\endcsname} \newcommand{\printTranslationOptionDE}[1]{\csname #1NamingDE\endcsname} -\newcommand{\inline}[2][__NONAME__]{% - \ifthenelse{\equal{__NONAME__}{#1}}{% - \anonymousInlineDescriptorTemplate{#2}{\printLabel{#2}}% +\newcommand{\inline}[2][NONAME]{% + \ifthenelse{\equal{NONAME}{#1}}{% + % \anonymousInlineDescriptorTemplate{#2}{\printLabel{#2}}% + \anonymousInlineDescriptorTemplate{#2}{Test} + \printLabel{#2} }{% - \inlineDescriptorTemplate{#2}{\printLabel{#2}}{#1}% + % \inlineDescriptorTemplate{#2}{\printLabel{#2}}{#1}% + #2 } } diff --git a/src/style/counters.sty b/src/style/counters.sty index e03f222..585c894 100644 --- a/src/style/counters.sty +++ b/src/style/counters.sty @@ -4,6 +4,7 @@ \newcommand{\printLabel}[1]{% \ifcsdef{#1numbering}{% Extra config present + % TODO: Increment \ifthenelse{\equal{\printNumberingConfigForDescriptor{#1}}{default}}{ \printCounter{#1\subsectionnumbering}% }{ @@ -33,8 +34,8 @@ \newcommand{\printTranslationOptionEN}[1]{\csname #1NamingEN\endcsname} \newcommand{\printTranslationOptionDE}[1]{\csname #1NamingDE\endcsname} -\newcommand{\inline}[2][__NONAME__]{% - \ifthenelse{\equal{__NONAME__}{#1}}{% +\newcommand{\inline}[2][NONAME]{% + \ifthenelse{\equal{NONAME}{#1}}{% \anonymousInlineDescriptorTemplate{#2}{\printLabel{#2}}% }{% \inlineDescriptorTemplate{#2}{\printLabel{#2}}{#1}%