Re: [NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Martin Althoff
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
___


Re: [NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Wolfgang Schuster

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
___


Re: [NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Martin Althoff
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  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
___


Re: [NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Willi Egger
Martin, did you try to add [align=lohi]?

Willi

> On 12 Jun 2019, at 13:11, Martin Althoff  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
> ___

___
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
___


[NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Martin Althoff
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
Description: Adobe PDF document
___
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
___