Hello all, how do I tell ConTeXt that I want the frame content to be top, bottom or middle aligned? I found no way to specify *vertical* alignment except by nesting frames and specifying the location= of the inner frame as desired. Am I missing something obvious? -- Giuseppe "Oblomov" Bilotta
Are you maybe looking for p. 254 of cont-eni.pdf? Thomas On Jul 28, 2007, at 1:46 AM, Giuseppe Bilotta wrote:
Hello all,
how do I tell ConTeXt that I want the frame content to be top, bottom or middle aligned? I found no way to specify *vertical* alignment except by nesting frames and specifying the location= of the inner frame as desired. Am I missing something obvious?
-- Giuseppe "Oblomov" Bilotta
Hi Giuseppe,
the location= of the inner frame as desired. Am I missing something obvious?
I don't think so, this was an example from Hans: -------------------------------------------------- \starttext \ruledhbox {A \framed[width=2cm,align=middle,location=hanging]{location\\equals\\hanging} \framed[width=2cm,align=middle,location=depth] {location\\equals\\depth} \framed[width=2cm,align=middle,location=height] {location\\equals\\height} B} \vskip2cm \ruledhbox {A \framed[width=2cm,align=middle,location=low] {location\\equals\\low} \framed[width=2cm,align=middle,location=line] {location\\equals\\line} \framed[width=2cm,align=middle,location=high] {location\\equals\\high} B} \vskip2cm \ruledhbox {A \framed[width=2cm,align=middle,location=top] {location\\equals\\top} \framed[width=2cm,align=middle,location=bottom] {location\\equals\\bottom} \framed[width=2cm,align=middle,location=lohi] {location\\equals\\lohi} \framed[width=2cm,align=middle,location=middle] {location\\equals\\middle} B} \stoptext -------------------------------------------------- Patrick PS: welcome back!
Saturday, July 28, 2007 Patrick Gundlach wrote:
Hi Giuseppe,
the location= of the inner frame as desired. Am I missing something obvious?
I don't think so, this was an example from Hans:
\framed[width=2cm,align=middle,location=hanging]{location\\equals\\hanging} \framed[width=2cm,align=middle,location=depth] {location\\equals\\depth} \framed[width=2cm,align=middle,location=height] {location\\equals\\height} B}
[snip] Yeah, this is what I was thinking too. But as Thomas pointed out, top and bottom can be used to tune the internal vertical alignment.
PS: welcome back!
Thanks :) -- Giuseppe "Oblomov" Bilotta
participants (3)
-
Giuseppe Bilotta
-
Patrick Gundlach
-
Thomas A. Schmitz