Hubertus wrote:
> Hi all again,
> I try to do something like 1/2 with an upper 1 and a lower 2. The code below
> still doesn't quite work. 
> 
> \def\nfrac#1#2{\leavevmode\kern.1em%
>   \raise.5ex\hbox{\scriptsize #1}%
>   \kern-.1em/\kern-.15em%
>   \lower.25ex\hbox{\scriptsize #2}}
> 

Such a macro is already present. The command's name is \vulgarfraction,
and even is configurable (3 is the default rendering);-)

Best, taco

% example taken from core-mis.tex

\starttext
  \starttabulate
  \HL
  \NC \bf method \NC \bf visualization \NC\NR
  \HL
  \NC 0 \NC \chardef\vulgarfractionmethod0\vulgarfraction{1}{2} \NC\NR
  \NC 1 \NC \chardef\vulgarfractionmethod1\vulgarfraction{1}{2} \NC\NR
  \NC 2 \NC \chardef\vulgarfractionmethod2\vulgarfraction{1}{2} \NC\NR
  \NC 3 \NC \chardef\vulgarfractionmethod3\vulgarfraction{1}{2} \NC\NR
  \HL
  \stoptabulate
\stoptext




_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to