I would like to append suitable ordinal suffixes for inline fractions similar to capabilities provided by the engord
package from the oberdiek
bundle.
Let me clarify. I want to use a macro \engordfrac{2}{3}
for inline text fractions to automatically obtain 2/3rd in the output. Similarly, \engordfrac{4}{5}
should produce 4/5th in the output.
I am including a MWE to illustrate example of the engord package, and the desired output in 2nd paragraph below.
\documentclass{article}
\usepackage{nicefrac}
\usepackage{engord}
\begin{document}
This is the \engordnumber{1} ever time the runner finished
\engordnumber{2} in the race. This was her \engordnumber{14}
ever race. % just an example demonstration of engord package capabilities
\bigskip
Oh no! I paid \nicefrac{2}{3}rd of the price you paid for
only \nicefrac{1}{4}th of the quantity. % need to replace nicefrac with a suitable macro
\end{document}
How can I achieve this? If plain old TeX is difficult, luatex
works for me if it helps. It does not necessarily have to be based on xfrac
or nicefrac
as long the desired result is achieved. I only suggested it in the title because these look typographically better.
PS: I am unsure of what is the correct (typographically accepted) way to typeset 2/3rd, 1/4th and other inline fractions.
2/3rd
terms, shouldn't it really be2/3rds
, to correspond to the way one would say it out loud: "I paid two thirds of the price...".