Fixed ordinal numbers

Solves issue #34. I agree that it's nicer to have that *directly* in the
text, but I provide the commands nevertheless for demo purposes. Fixed a
bug that arose from using `unicode-math` here.
pull/35/head
Bastian Rieck 2021-11-03 21:36:22 +01:00
parent 0d10368066
commit 2f92deb0ec
2 changed files with 18 additions and 0 deletions

Binary file not shown.

View File

@ -86,6 +86,24 @@
\makeindex
\makeglossaries
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Ordinals
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
\@ifundefined{st}{%
\newcommand{\st}{\textsuperscript{\textup{st}}\xspace}
}{}
\@ifundefined{rd}{%
\newcommand{\rd}{\textsuperscript{\textup{rd}}\xspace}
}{}
\@ifundefined{nd}{%
\newcommand{\nd}{\textsuperscript{\textup{nd}}\xspace}
}{}
\makeatother
\renewcommand{\th}{\textsuperscript{\textup{th}}\xspace}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Incipit
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%