![](https://secure.gravatar.com/avatar/6e50a7aa57f5569d881f204f124d96ef.jpg?s=120&d=mm&r=g)
Is there a version of the vulgarfraction that works in math mode? MWE: \starttext $\vfrac{2_1}{m}$ \stoptext Alan
![](https://secure.gravatar.com/avatar/114f07f31e228d83eece631b0937df73.jpg?s=120&d=mm&r=g)
Hi Alan, try this: \def\vFrac#1#2{#1 \Uskewed / #2} \starttext $\frac{2_1}{m}$ ${2_1 \Uskewed / m}$ $\vFrac{2_1}{m}$ \stoptext See "5.7 Skewed fractions", in the manual still.pdf. Hope it helps, greetings, Massi
Is there a version of the vulgarfraction that works in math mode?
MWE:
\starttext $\vfrac{2_1}{m}$ \stoptext
Alan
![](https://secure.gravatar.com/avatar/6e50a7aa57f5569d881f204f124d96ef.jpg?s=120&d=mm&r=g)
Hi Massi,
\Unskewed is undefined/unrecognized.
Enabling Opentype math (somehow) or perhaps an experimental version of
luatex is needed?
Alan
On Tue, 22 May 2018 18:29:30 +0200
MF
Hi Alan, try this:
\def\vFrac#1#2{#1 \Uskewed / #2}
\starttext $\frac{2_1}{m}$
${2_1 \Uskewed / m}$
$\vFrac{2_1}{m}$ \stoptext
See "5.7 Skewed fractions", in the manual still.pdf.
Hope it helps, greetings, Massi
Is there a version of the vulgarfraction that works in math mode?
MWE:
\starttext $\vfrac{2_1}{m}$ \stoptext
Alan
___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/6e50a7aa57f5569d881f204f124d96ef.jpg?s=120&d=mm&r=g)
On Tue, 22 May 2018 14:30:16 -0400 (EDT)
Aditya Mahajan
On Tue, 22 May 2018, Alan Braslau wrote:
\Unskewed is undefined/unrecognized.
It is \Uskewed (not\Unskewed).
Aditya
My typo! Also, requires extra braces: \def\vfrac#1#2{{{#1} \Uskewed / {#2}}} I have to say, however, that the result (scriptsizing the numerator and denominator), when used for symmetry operations, is not as nice as \def\vfrac#1#2{#1\!/\!#2} $\vfrac{4_1}{m}$ Nevertheless, the default definition: \let\vfrac\vulgarfraction that is, \vulgarfraction, needs to be *fixed* to work within math mode (as well as outside of math mode). Alan
participants (3)
-
Aditya Mahajan
-
Alan Braslau
-
MF