Thanks for that Wolfgang. It doesn't seem to work though. The text stays at the left. Meantime I have tried two other approaches. Only an approach using a \framed handles longer lines. My problem with the 3. \framed approach is: how do I get the size of the current table cell? In the MWE I used fixed values, in the actual document that would not be good - too many different cells. I am trying a further approach using MetaPost and OverlayBox. Seems possible (line wrapping also an issue), but quite involved... Thanks, Martin New MWS: \setupTABLE[c][1][width=20mm] \setupTABLE[c][2,3][width=30mm] \setupTABLE[r][1][height= 50mm,align={lohi}] \bTABLE \bTR \bTD \dontleavehmode{\rotate{1. a bit more text again, entering the age of long sentences}} \eTD \bTD \hbox to \dimexpr(.5\lineheight+.5\hsize){\hss{\rotate{2. a bit more text again, and see if linebreaking works}}} \eTD \bTD \rotate[rotation=90,location=depth]{\framed[frame=on,align={lohi,middle},width=\dimexpr(\o verlaywidth-05pt),width=48mm,height=29mm]{3. even more huge text, wondering where the rabbit runs)}} \eTD \eTR \eTABLE On Wed, 2019-06-12 at 22:23 +0200, Wolfgang Schuster wrote:
Martin Althoff schrieb am 12.06.2019 um 13:11:
I am trying to align rotated text horizontally and vertically in a table cell. Vertically is no problem, horizontally it fails. Non-rotated text is, of course, fine.
What can I do to fix the problem? Thanks for suggestions.
Martin
using: mtx-context | current version: 2019.05.18 10:42 PDF of my output is attached.
MWE:
\starttext \setupTABLE[c][1][width=7mm] \setupTABLE[c][2][width=30mm] \setupTABLE[r][each][align={lohi,middle},height= 50mm]
\bTABLE \bTR \bTD \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD
\bTD \dontleavehmode\rotate[...]{...} \eTD
Wolfgang