On Jun 12, 2006, at 23:31, Hans Hagen wrote: > Hans van der Meer wrote: >> I did want to typeset material within framedtext with some white >> before and after each line. >> Appropriate for this seems to me: \null\quad material \quad\null\crlf >> etc.; the preceding \null preventing disappearence of the first >> \quad. >> >> The strange thing is that the \null in the first line induces an >> extra >> vertical whitespace between the top of the frame and the first line >> inside the frame. >> >> An impression of the result: >> >> ----------------------- >> |� �� �� �� �� �� �� �|� with \null >> in first line >> |� �� �first line� � �| >> |� �� �second line � �| >> ----------------------- >> >> ----------------------- >> |� �� �first line� � �|� without \null in first line >> |� �� �second line � �| >> ----------------------- >> >> It seems counterintuitive to withhold the \null in the first line in >> order to have the framing correct. >> A minimal example on which I encountered this follows: >> >> \setupbodyfont[cmr] > interesting, cmr
Yes, my default font setup sometimes seems to play havoc with me. It turns automagically into lm. As for the above problem, my brains were a bit rusty I think. Just a leavevmode did the trick: \startframedtext[middle][width=fit] \leavevmode % <= the solution \null\quad\type{with leavevmode: no more extra vertical space}\quad \null\crlf \null\quad\type{normal vertical space}\quad\null \stopframedtext Hans van der Meer _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context