# Re: [NTG-context] Bug in latest beta: behavior of \text in StepCharts

On Thu, 16 Apr 2015 09:04:46 +0200
Otared Kavian <ota...@gmail.com> wrote:

> It seems that with the latest beta there is a bug in the way how the
> command \text is handled in step charts (plesae see the attached
> PDF). This bug is absent from mkii, and absent from previous versions
> of mkiv (up to a weak ago, I believe).
>
> This is a minimal example which shows that the font used in each cell
> of \text changes randomly (there are four instances of \text, and
> each time a different font is used…):
>
> %%%% begin random-text-size.tex
> \usemodule[steps]
>
> \starttext
> \input knuth.tex
>
> \placefigure[none][-]{}{
> \startSTEPtable
>         \cell {$(f\circ u)(x_{*} + o(1)) =$} \text{definition of
> $f\circ u$} \cell {$f\left(u\left(x_{*} + o(1)\right)\right) =$}
> \text {$u$ is continuous} \cell {$f\left(u(x_{*}) + o(1)\right) =$}
> \text {$f$ is continuous} \cell {$f\left(u(x_{*})\right) + o(1) =$}
> \text {definition of $f\circ u$} \cell {$(f\circ u)(x_{*}) + o(1)$.}
> \stopSTEPtable}
>
> \stoptext
> %%%% begin random-text-size.tex

This bug arises from low-level changes in the handling text from
MetaPost. I have reported this to Hans (in the context of graphs),
although I have not understood how to fix it.

The result is kind of fun: like something that many people produced at
the time of the introduction of the Apple MacIntosh!

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________