2012-10-15 Otared Kavian:

> On 14 oct. 2012, at 15:52, Wolfgang Schuster <wolfgang.schus...@gmail.com> 
> wrote:
> > […]
> > I don’t know if the bug was also in the stable but it’s in the beta version 
> > I use. You can use the following example to check for the bug:
> > 
> > \starttext
> > \placeontopofeachother{A}{B}
> > \stoptext

Here is a fix (not thoroughly tested, though):

pack-com.mkiv:

- 
\def\pack_topofeachother_one{\bgroup\setbox0\box\nextbox\dowithnextboxcs\pack_topofeach_two
 \hbox}
+ 
\def\pack_topofeachother_one{\bgroup\setbox0\box\nextbox\dowithnextboxcs\pack_topofeachother_two\hbox}

- 
\def\pack_topofeachother_two{\setbox2\box\nextbox\halign{\hss####\hss\cr\box0\cr\box2\cr}\egroup\egroup}
+ 
\def\pack_topofeachother_two{\setbox2\box\nextbox\halign{\hss##\hss\cr\box0\cr\box2\cr}\egroup\egroup}


Test:

\unprotect
\def\pack_topofeachother_one{\bgroup\setbox0\box\nextbox\dowithnextboxcs\pack_topofeachother_two\hbox}
\def\pack_topofeachother_two{\setbox2\box\nextbox\halign{\hss##\hss\cr\box0\cr\box2\cr}\egroup\egroup}
\protect

\starttext
\placeontopofeachother{alpha}{beta}
\stoptext


Marco

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

Reply via email to