Add more numbering options, update docs for that
This commit is contained in:
parent
61966ce867
commit
08369be70d
@ -23,6 +23,9 @@
|
||||
% Configure definition, lemma, theorem, etc numbering behaviour. 1 = Individual, 2 = Combined (apart from Definition), 3 = Combined
|
||||
\setcounter{numberingConfig}{1}
|
||||
|
||||
% Configure if for definitions, lemmas, etc, numbering should be (0) = <section>.<number> or (1) = <section>.<subsection>.<number> or (2) = <section>.<subsection>.<subsubsection>.<number>
|
||||
\setcounter{numberSubsections}{0}
|
||||
|
||||
% Set the default language.
|
||||
\setLang{en}
|
||||
|
||||
|
BIN
docs/docs.pdf
BIN
docs/docs.pdf
Binary file not shown.
@ -9,6 +9,7 @@
|
||||
\end{itemize}
|
||||
|
||||
\subsection{Per-File config}
|
||||
\label{sec:perFileConf}
|
||||
\begin{itemize}
|
||||
\item \verb|\renewcommand{\authorTitle}|\{\textit{string}\} Change the author (in the title) for this document only
|
||||
\item \verb|\renewcommand{\authorHeaders}|\{\textit{string}\} Change the author (in the header) for this document only
|
||||
@ -17,6 +18,7 @@
|
||||
\item \verb|\renewcommand{\city}|\{\textit{string}\} Change the city (for letters) for this document only
|
||||
\item \verb|\renewcommand{\countrycode}|\{\textit{string}\} Change the country-code (for letters) for this document only
|
||||
\item \verb|\setcounter{numberingConfig}|\{\textit{number}\} Change the numbering of definitions, lemmas, etc for this document. 1 = Separately, 2 = Combined (except for definition), 3 = Combined, 4 = Off
|
||||
\item \verb|\setcounter{numberSubsections}|\{\textit{number}\} Change the format of the numbering of definition, lemma, etc. 0 = $<$section$>$.$<$number$>$,\\1 = $<$section$>$.$<$subsection$>$.$<$number$>$,\\ 2 = $<$section$>$.$<$subsection$>$.$<$subsubsection$>$.$<$number$>$
|
||||
\item \verb|\setcounter{descriptorShadeStrength}|\{\textit{number}\} Change the colour saturation of the inline descriptors
|
||||
\item \verb|\setcounter{shadeStrength}|\{\textit{number}\} Change the colour saturation of the \verb|\shade| command
|
||||
\item \verb|\setLang|\{\textit{language}\} Change the language. Will automatically load babel in German. Can only be used once and only at the start of the document or in the preamble, as repeated usage leads to undefined behaviour
|
||||
@ -141,10 +143,9 @@ Put \verb|\usetcolorboxes| right after \verb|\startDocument| (right after \verb|
|
||||
\newpage
|
||||
\fhlc{Aquamarine}{Counter-enabled}
|
||||
|
||||
These ones also have a setting, namely, you can change the counter behaviour:\\
|
||||
\verb|\setcounter{numberingConfig}|\{\textit{number}\}: Change the numbering of definitions, lemmas, etc for this document. 1 = Separately, 2 = Combined (except for definition), 3 = Combined, 4 = Off
|
||||
These ones also have two settings, namely, you can change the counter behaviour and the inclusion of subsections in the numbering. See \ref{sec:perFileConf}.
|
||||
|
||||
Here, it is shown with the default setting, $1$, meaning they are numbered separately. See \ref{sec:counters} for a guide on how to change the current number.
|
||||
See \ref{sec:counters} for a guide on how to change the current number.
|
||||
|
||||
\begin{definition}[]{Title here}
|
||||
\begin{minted}{latex}
|
||||
|
@ -71,6 +71,7 @@
|
||||
|
||||
% Create config counters / variables. See the config file for changing them
|
||||
\newcounter{numberingConfig}
|
||||
\newcounter{numberSubsections}
|
||||
\newcounter{descriptorShadeStrength}
|
||||
\newcounter{shadeStrength}
|
||||
|
||||
|
@ -14,7 +14,9 @@
|
||||
\newcounter{examples}
|
||||
\newcounter{all}
|
||||
|
||||
\newcommand{\usenumberArabic}[1]{\ifnum\value{numberingConfig}<4{\arabic{section}.\ifnum\value{numberingConfig}<3{\ifnum\value{numberingConfig}<2{\arabic{#1}\stepcounter{#1}}\else{
|
||||
\newcommand{\useSubsection}{\ifnum\value{numberSubsections}>0{\arabic{subsection}.}\else{}\fi}
|
||||
\newcommand{\useSubsubsection}{\ifnum\value{numberSubsections}>1{\arabic{subsubsection}.}\else{}\fi}
|
||||
\newcommand{\usenumberArabic}[1]{\ifnum\value{numberingConfig}<4{\arabic{section}.\useSubsection\useSubsubsection\ifnum\value{numberingConfig}<3{\ifnum\value{numberingConfig}<2{\arabic{#1}\stepcounter{#1}}\else{
|
||||
\ifx#1definitions
|
||||
\arabic{#1}\stepcounter{#1}
|
||||
\else
|
||||
|
Loading…
x
Reference in New Issue
Block a user