[Counters] start adding refs

This commit is contained in:
2025-10-18 09:08:47 +02:00
parent 0af534727c
commit 3b3144af9c

View File

@@ -23,36 +23,49 @@
% ┌ ┐
% │ Numbering of sections │
% └ ┘
\newcommand{\subsectionRendering}{
\newcommand{\subsectionRendering}[1]{
\ifnum\value{numberSubsections}=1
\ifthenelse{\equal{#1}{dot}}{%
\arabic{section}.\arabic{subsection}%
}{%
\arabic{section}-\arabic{subsection}%
}%
\else
\ifnum\value{numberSubsections}=2
\ifthenelse{\equal{#1}{dot}}{%
\arabic{section}.\arabic{subsection}.\arabic{subsubsection}%
}{%
\arabic{section}.\arabic{subsection}.\arabic{subsubsection}%
}%
\else
\arabic{section}%
\fi
\fi}
\newcommand{\usenumberArabic}[1]{%
% \generateLabel{#1}{\subsectionRendering{dash}}
\ifnum\value{numberingConfig}=1
\subsectionRendering.\arabic{#1}\stepcounter{#1}%
\subsectionRendering{dot}.\arabic{#1}\stepcounter{#1}%
\else
\ifnum\value{numberingConfig}=2
\ifthenelse{\equal{#1}{definitions}}{%
\subsectionRendering.\arabic{definitions}\stepcounter{definitions}%
\subsectionRendering{dot}.\arabic{definitions}\stepcounter{definitions}%
}{%
\subsectionRendering.\arabic{all}\stepcounter{all}%
\subsectionRendering{dot}.\arabic{all}\stepcounter{all}%
}%
\else
\ifnum\value{numberingConfig}=3
\subsectionRendering.\arabic{all}\stepcounter{all}%
\subsectionRendering{dot}.\arabic{all}\stepcounter{all}%
\else
\relax%
\fi
\fi
\fi}
\newcommand{\generateLabel}[2]{\label{#1:#2}}
%
% \newcommand{\labelIt}[1]{\label{#1:}}
% ────────────────────────────────────────────────────────────────────
\newcounter{numberingConfigStore}