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.wolfgang@gmail.com> wrote:

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
___________________________________________________________________________________