61 lines
2.7 KiB
TeX
61 lines
2.7 KiB
TeX
\newpage
|
|
\subsubsection{Inline \& Shortened descriptors}
|
|
\label{sec:descriptors}
|
|
See \ref{sec:counters} for a guide on how to change the current number.
|
|
|
|
The signature is \verb|\inlinedefinition|[\textit{description}], where the description is optional (and if you omit it, don't write the square brackets!)
|
|
|
|
Alternatively, you can use \verb|\inline[desc]{definition}|.
|
|
|
|
\paragraph{Inline}
|
|
\begin{tables}{ll}{Command & Output}
|
|
\verb|\inlineexample| & \inlineexample \\
|
|
\verb|\inlinedefinition| & \inlinedefinition \\
|
|
\verb|\inlinetheorem| & \inlinetheorem \\
|
|
\verb|\inlinelemma| & \inlinelemma \\
|
|
\verb|\inlinecorollary| & \inlinecorollary \\
|
|
\verb|\inlineproposition| & \inlineproposition \\
|
|
\verb|\inlinefact| & \inlinefact \\
|
|
\verb|\inlineaxiom| & \inlineaxiom \\
|
|
\verb|\inlineremark| & \inlineremark \\
|
|
\verb|\inlineproof| & \inlineproof \\
|
|
\end{tables}
|
|
|
|
\paragraph{Shortened}
|
|
\begin{tables}{ll}{Command & Output}
|
|
\verb|\shortexample| & \shortexample \\
|
|
\verb|\shortdefinition| & \shortdefinition \\
|
|
\verb|\shorttheorem| & \shorttheorem \\
|
|
\verb|\shortlemma| & \shortlemma \\
|
|
\verb|\shortcorollary| & \shortcorollary \\
|
|
\verb|\shortproposition| & \shortproposition \\
|
|
\verb|\shortfact| & \shortfact \\
|
|
\verb|\shortaxiom| & \shortaxiom \\
|
|
\verb|\shortremark| & \shortremark \\
|
|
\verb|\shortproof| & \shortproof \\
|
|
\end{tables}
|
|
|
|
\newpage
|
|
|
|
\subsubsection{Changing the counters}
|
|
\label{sec:counters}
|
|
|
|
You may set the current number for the elements by setting their corresponding counter to the selected number.
|
|
You can do this using \verb|\setLabelNumber|\{\textit{name of the environment}\}\{\textit{number}\},
|
|
where you replace \textit{name of the environment} with one of the following:
|
|
\texttt{definition}, \texttt{lemma}, \texttt{theorem}, \texttt{corollary}, \texttt{proposition}, \texttt{fact},
|
|
\texttt{formula}, \texttt{axiom}, \texttt{example}, \texttt{remark}
|
|
|
|
This only applies if you have set \texttt{numberingConfig} to $1$ (for all of them) and $2$ (only for \texttt{definitions}).
|
|
To change the combined numbering, use \verb|\setLabelNumber{all}| to your desired number.
|
|
|
|
You may also use \verb|\stepLabelNumber|\{\textit{name of the environment}\} to step the counter by one.
|
|
|
|
|
|
\subsubsection{Referencing counters}
|
|
\label{sec:counter-ref}
|
|
If you wish to reference a counter, you can do so by using the \verb|\labeledInline| and \verb|\labeledShort|,
|
|
which have the following signature
|
|
\mint{latex}|\labeledInline[description]{<descriptor name>}{<your label>}|
|
|
where you can replace \verb|<your label>| with a label like \texttt{def:your-def-name}
|