ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \vfrac (math mode)
@ 2018-05-21 23:03 Alan Braslau
  2018-05-22 16:29 ` MF
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Braslau @ 2018-05-21 23:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: \vfrac (math mode)
  2018-05-21 23:03 \vfrac (math mode) Alan Braslau
@ 2018-05-22 16:29 ` MF
  2018-05-22 18:19   ` Alan Braslau
  0 siblings, 1 reply; 5+ messages in thread
From: MF @ 2018-05-22 16:29 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: \vfrac (math mode)
  2018-05-22 16:29 ` MF
@ 2018-05-22 18:19   ` Alan Braslau
  2018-05-22 18:30     ` Aditya Mahajan
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Braslau @ 2018-05-22 18:19 UTC (permalink / raw)
  To: MF; +Cc: mailing list for ConTeXt users

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 <massifr@fastwebnet.it> wrote:

> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: \vfrac (math mode)
  2018-05-22 18:19   ` Alan Braslau
@ 2018-05-22 18:30     ` Aditya Mahajan
  2018-05-22 19:16       ` Alan Braslau
  0 siblings, 1 reply; 5+ messages in thread
From: Aditya Mahajan @ 2018-05-22 18:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 22 May 2018, Alan Braslau wrote:

> \Unskewed is undefined/unrecognized.

It is \Uskewed (not\Unskewed).

Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: \vfrac (math mode)
  2018-05-22 18:30     ` Aditya Mahajan
@ 2018-05-22 19:16       ` Alan Braslau
  0 siblings, 0 replies; 5+ messages in thread
From: Alan Braslau @ 2018-05-22 19:16 UTC (permalink / raw)
  To: Aditya Mahajan; +Cc: mailing list for ConTeXt users

On Tue, 22 May 2018 14:30:16 -0400 (EDT)
Aditya Mahajan <adityam@umich.edu> wrote:

> 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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-05-22 19:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-21 23:03 \vfrac (math mode) Alan Braslau
2018-05-22 16:29 ` MF
2018-05-22 18:19   ` Alan Braslau
2018-05-22 18:30     ` Aditya Mahajan
2018-05-22 19:16       ` Alan Braslau

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).