Add \pose commands

This commit is contained in:
2024-11-12 18:30:25 +01:00
parent de26414dfb
commit 3328d0a3c1
2 changed files with 9 additions and 1 deletions

View File

@@ -9,7 +9,7 @@
% Typography
\usepackage{iftex}
\ifluatex
\usepackage{libertinus-otf}
\usepackage{libertinus-otf}% Also load unicode-math
\else
\usepackage{mathtools}% Math improvements
\usepackage{libertinus}% Libertinus font for text and math

View File

@@ -108,6 +108,14 @@
\renewcommand{\secref}[2][\labelprefix]{Section~\ref{#1:#2}}
\renewcommand{\tabref}[2][\labelprefix]{Table~\ref{#1:tab:#2}}
% Math
\NewDocumentCommand{\poseFrame}{m}{\mathcal{F}_{#1{}}}
\NewDocumentCommand{\pose}{m m m}{{}^{#1\,}{\symbf{#2}}_{#3}}
\NewDocumentCommand{\poseX}{m m m o}{%
{}^{#1\,}{#2}_{#3}%
\IfValueT{#4}{\,({#4})}%
}
% Misc
\newcommand{\noindentskip}{\bigskip\noindent}% Skip a line and remove the indent