* aligning rotated text in a natural table @ 2019-06-12 11:11 Martin Althoff 2019-06-12 12:31 ` Willi Egger 2019-06-12 20:23 ` Wolfgang Schuster 0 siblings, 2 replies; 5+ messages in thread From: Martin Althoff @ 2019-06-12 11:11 UTC (permalink / raw) To: ntg-context [-- Attachment #1: Type: text/plain, Size: 570 bytes --] 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 blah \eTD \eTR \eTABLE \stoptext [-- Attachment #2: rotate-test.pdf --] [-- Type: application/pdf, Size: 8216 bytes --] [-- Attachment #3: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: aligning rotated text in a natural table 2019-06-12 11:11 aligning rotated text in a natural table Martin Althoff @ 2019-06-12 12:31 ` Willi Egger 2019-06-12 14:05 ` Martin Althoff 2019-06-12 20:23 ` Wolfgang Schuster 1 sibling, 1 reply; 5+ messages in thread From: Willi Egger @ 2019-06-12 12:31 UTC (permalink / raw) To: NTG-Context ConTeXt users Martin, did you try to add [align=lohi]? Willi > On 12 Jun 2019, at 13:11, Martin Althoff <martin.althoff@yahoo.com> wrote: > > 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 blah \eTD > \eTR > > \eTABLE > \stoptext > <rotate-test.pdf>___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: aligning rotated text in a natural table 2019-06-12 12:31 ` Willi Egger @ 2019-06-12 14:05 ` Martin Althoff 0 siblings, 0 replies; 5+ messages in thread From: Martin Althoff @ 2019-06-12 14:05 UTC (permalink / raw) To: ntg-context Hi Willi, thanks for the quick reply. I have the [align=lohi] as part of the setupTABLE statement. Now I tried adding it into the particular cell -- again no effect even if I add "middle". \bTD[align=lohi] \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD I suspect the rotate mechanism places the object independent of the align= statement. For that reason some other handling might be needed. I just don't know which :) Martin On Wed, 2019-06-12 at 14:31 +0200, Willi Egger wrote: > Martin, did you try to add [align=lohi]? > > Willi > > > On 12 Jun 2019, at 13:11, Martin Althoff <martin.althoff@yahoo.com> wrote: > > > > 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 blah \eTD > > \eTR > > > > \eTABLE > > \stoptext ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: aligning rotated text in a natural table 2019-06-12 11:11 aligning rotated text in a natural table Martin Althoff 2019-06-12 12:31 ` Willi Egger @ 2019-06-12 20:23 ` Wolfgang Schuster 2019-06-13 3:51 ` Martin Althoff 1 sibling, 1 reply; 5+ messages in thread From: Wolfgang Schuster @ 2019-06-12 20:23 UTC (permalink / raw) To: mailing list for ConTeXt users, Martin Althoff 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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: aligning rotated text in a natural table 2019-06-12 20:23 ` Wolfgang Schuster @ 2019-06-13 3:51 ` Martin Althoff 0 siblings, 0 replies; 5+ messages in thread From: Martin Althoff @ 2019-06-13 3:51 UTC (permalink / raw) To: Wolfgang Schuster, mailing list for ConTeXt users 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 > ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-06-13 3:51 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2019-06-12 11:11 aligning rotated text in a natural table Martin Althoff 2019-06-12 12:31 ` Willi Egger 2019-06-12 14:05 ` Martin Althoff 2019-06-12 20:23 ` Wolfgang Schuster 2019-06-13 3:51 ` Martin Althoff
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).