* Text inline fractions @ 2016-06-22 12:34 Thomas Fehige 2016-06-22 13:45 ` Wolfgang Schuster 0 siblings, 1 reply; 3+ messages in thread From: Thomas Fehige @ 2016-06-22 12:34 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Text inline fractions 2016-06-22 12:34 Text inline fractions Thomas Fehige @ 2016-06-22 13:45 ` Wolfgang Schuster 2016-06-25 18:33 ` Thomas Fehige 0 siblings, 1 reply; 3+ messages in thread From: Wolfgang Schuster @ 2016-06-22 13:45 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 378 bytes --] > 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 [-- Attachment #1.2: Type: text/html, Size: 1366 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Text inline fractions 2016-06-22 13:45 ` Wolfgang Schuster @ 2016-06-25 18:33 ` Thomas Fehige 0 siblings, 0 replies; 3+ messages in thread From: Thomas Fehige @ 2016-06-25 18:33 UTC (permalink / raw) To: ntg-context 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 > ___________________________________________________________________________________ > ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-06-25 18:33 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2016-06-22 12:34 Text inline fractions Thomas Fehige 2016-06-22 13:45 ` Wolfgang Schuster 2016-06-25 18:33 ` Thomas Fehige
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).