Thanks.

I redid the examples with the autostrut parameter set to respectively yes and 
no. In the former case I see all have an hbox and in the latter case all have a 
vbox. So it seems not the align, but the strut being the one determining the 
box variant.

Hans van der Meer




On 16 May 2016, at 16:03, Wolfgang Schuster 
<schuster.wolfg...@gmail.com<mailto:schuster.wolfg...@gmail.com>> wrote:

Meer, Hans van der<mailto:h.vanderm...@uva.nl>
16. Mai 2016 um 15:50
Sifting through my TeX-mailbox, I came along this post of Wolfgang Schuster and 
decided to try all variations given to the align parameter on \framed.
Curious in which cases the \hbox and in which the \vbox is chosen, not 
unimportant of course.
I did this by typesetting \hbox{abc}\hbox{xyz} inside a framed. For \hbox want 
expects abcxyz as output and for \vbox abc and below it xyz. As can be seen in 
the first two examples.
To my surprise none of the \framed[align=..] options exhibits \vbox character!

Thus my question: has the behaviour of \framed[align=..] changed in the mean 
time? Three years is of course an eternity when seen in the perspective of the 
speed with which ConTeXt is evolving 😃. Or is there another reason why the 
\vbox effect is not shown in any of the examples?
\framed adds a \strut at the begin and end of the content.

\starttext

\vbox{\hbox{First}\hbox{Second}}

\vbox{\strut\hbox{First}\hbox{Second}}

\framed[align=flushleft]{\hbox{First}\hbox{Second}}

\framed[align=flushleft,strut=no,autostrut=no]{\hbox{First}\hbox{Second}}

\stoptext

Wolfgang
___________________________________________________________________________________

___________________________________________________________________________________
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