Align table (framed) top
Hi, This is probably simple, but I cannot combine the right keys to get it to work. What is the correct way to get the last line, "The last foo", to automatically be placed below the second table? I still want the first line of the table to align vertically with the text Bar. /Mikael \starttext Foofoo Bar\bTABLE[width=2cm,location=top] \bTR \bTD This is a long sentence \eTD \eTR \eTABLE The last foo \stoptext
On Tuesday, January 4, 2022 4:24:22 PM IST Mikael Sundqvist via ntg-context wrote:
What is the correct way to get the last line, "The last foo", to automatically be placed below the second table?
There is only one table in your example.
I still want the first line of the table to align vertically with the text Bar.
If you don't need a table, the following achieves the same: \starttext Foofoo Bar \framed[width=2cm,align=normal,location=top]{this is a long sentence}\par The last foo \stoptext Best, kauśika
Oh, thanks!
I can simply wrap my table in a framed environment, then. If it is
still possible to solve without the surrounding framed I'm interested
to hear how.
/Mikael
On Tue, Jan 4, 2022 at 12:12 PM kauśika
On Tuesday, January 4, 2022 4:24:22 PM IST Mikael Sundqvist via ntg-context wrote:
What is the correct way to get the last line, "The last foo", to automatically be placed below the second table?
There is only one table in your example.
I still want the first line of the table to align vertically with the text Bar.
If you don't need a table, the following achieves the same:
\starttext Foofoo
Bar \framed[width=2cm,align=normal,location=top]{this is a long sentence}\par The last foo \stoptext
Best, kauśika
Mikael Sundqvist via ntg-context schrieb am 04.01.2022 um 13:21:
Oh, thanks!
I can simply wrap my table in a framed environment, then. If it is still possible to solve without the surrounding framed I'm interested to hear how.
You have to put the table in a box to change the vertical position. \starttext a\tbox{\bTABLE \bTR \bTD xxx\par yyy \eTD \eTR \eTABLE}b \stoptext Wolfgang
Oh, I should have thought of that. Thanks (again) Wolfgang!
/Mikael
On Tue, Jan 4, 2022 at 5:22 PM Wolfgang Schuster
Mikael Sundqvist via ntg-context schrieb am 04.01.2022 um 13:21:
Oh, thanks!
I can simply wrap my table in a framed environment, then. If it is still possible to solve without the surrounding framed I'm interested to hear how.
You have to put the table in a box to change the vertical position.
\starttext
a\tbox{\bTABLE \bTR \bTD xxx\par yyy \eTD \eTR \eTABLE}b
\stoptext
Wolfgang
participants (3)
-
kauśika
-
Mikael Sundqvist
-
Wolfgang Schuster