
Is there a clean and easy way in mkiv to create text inline fractions with a slash; something like 1{}^1/_2 to mean one and a half? Thank you -- Thomas

Thomas Fehige mailto:thomas@fehige.de 22. Juni 2016 um 14:34 Is there a clean and easy way in mkiv to create text inline fractions with a slash; something like 1{}^1/_2 to mean one and a half? \definefontfeature[fraction][frac=yes] \definehighlight[textfraction][style={\feature[+][fraction]}]
\starttext \m{1\vfrac{1}{2}} 1\textfraction{1/2} \stoptext Wolfgang

Lovely, thanks Wolfgang! (Wish I knew how to find such things on my own.) Cheers -- Thomas Am 22.06.2016 um 15:45 schrieb Wolfgang Schuster:
Thomas Fehige mailto:thomas@fehige.de 22. Juni 2016 um 14:34 Is there a clean and easy way in mkiv to create text inline fractions with a slash; something like 1{}^1/_2 to mean one and a half? \definefontfeature[fraction][frac=yes] \definehighlight[textfraction][style={\feature[+][fraction]}]
\starttext
\m{1\vfrac{1}{2}}
1\textfraction{1/2}
\stoptext
Wolfgang
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (2)
-
Thomas Fehige
-
Wolfgang Schuster