h h extern wrote:
Patrick Gundlach wrote:
Hello *,
inspired by Gerben's question, I did some experimenting with \framed.
I'd like to get A[text]B, where text is some long thing in a framed box like \framed[width=5cm] {\input tufte \par}.
There are three different ways of aligning the three objects:
(A and B on the same baseline as the first row)
A We thrive in information- B ------------------------------- thick worlds because of our marvelous and everyday ca-
(A and B on the same baseline as the last row)
from the chaff and seperate A the sheeps from the goats. B --------------------------------
I was unable to get any of these alignments.
the other way is to use the following extensions (i made the dislocator installable so that you can hook in your own code if needed)
\unprotect
\def\stoplocalframed ...
Everything works perfectly until the depth is greater then strut depth (still no real depth measurements): \starttext a \framed[location=bottom] {location=bottom \ruledhbox {A \framed[width=2cm,align=middle,location=bottom] {location\\equals\\bottom} \framed[width=2cm,align=middle,location=top] {location\\equals\\top} \framed[width=2cm,align=middle,location=lohi] {location\\equals\\lohi} B} } b \stoptext vit