fix: Moved font ordinals to Thesis.tex.
Since most fonts do not support this feature, it should be chosen by the user and not be enforced by the class. See also #14.pull/30/head
parent
79db26f944
commit
f0e8019e2a
|
@ -58,6 +58,11 @@
|
|||
|
||||
\ifxetexorluatex
|
||||
\setmainfont{Minion Pro}
|
||||
% Most fonts don't support ordinals, but if yours does, this may give better results:
|
||||
\renewcommand{\st}{{\addfontfeatures{VerticalPosition=Ordinal}\textup{st}}\xspace}
|
||||
\renewcommand{\rd}{{\addfontfeatures{VerticalPosition=Ordinal}\textup{rd}}\xspace}
|
||||
\renewcommand{\nd}{{\addfontfeatures{VerticalPosition=Ordinal}\textup{nd}}\xspace}
|
||||
\renewcommand{\th}{{\addfontfeatures{VerticalPosition=Ordinal}\textup{th}}\xspace}
|
||||
\else
|
||||
\usepackage[lf]{ebgaramond}
|
||||
\usepackage[oldstyle,scale=0.7]{sourcecodepro}
|
||||
|
|
15
mimosis.cls
15
mimosis.cls
|
@ -199,17 +199,10 @@
|
|||
% Ordinals
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
\ifxetexorluatex
|
||||
\newcommand {\st}{{\addfontfeatures{VerticalPosition=Ordinal}\textup{st}}\xspace}
|
||||
\newcommand {\rd}{{\addfontfeatures{VerticalPosition=Ordinal}\textup{rd}}\xspace}
|
||||
\newcommand {\nd}{{\addfontfeatures{VerticalPosition=Ordinal}\textup{nd}}\xspace}
|
||||
\renewcommand{\th}{{\addfontfeatures{VerticalPosition=Ordinal}\textup{th}}\xspace}
|
||||
\else
|
||||
\newcommand {\st}{\textsuperscript{\textup{st}}\xspace}
|
||||
\newcommand {\rd}{\textsuperscript{\textup{rd}}\xspace}
|
||||
\newcommand {\nd}{\textsuperscript{\textup{nd}}\xspace}
|
||||
\renewcommand{\th}{\textsuperscript{\textup{th}}\xspace}
|
||||
\fi
|
||||
\newcommand {\st}{\textsuperscript{\textup{st}}\xspace}
|
||||
\newcommand {\rd}{\textsuperscript{\textup{rd}}\xspace}
|
||||
\newcommand {\nd}{\textsuperscript{\textup{nd}}\xspace}
|
||||
\renewcommand{\th}{\textsuperscript{\textup{th}}\xspace}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Penalties
|
||||
|
|
Loading…
Reference in New Issue