[NTG-context] rotate a TABLE

Mojca Miklavec mojca.miklavec.lists at gmail.com
Sun Jan 14 14:08:59 CET 2007

On 1/14/07, Gerhard Kugler wrote:
> On Sat, Jan 13, 2007 at 12:02:43PM +0100, Henning Hraban Ramm wrote:
> >
> > What's wrong with \rotate{your table} ?
> Thanks Henning.
> But now I still have a problem. The TABLE covers a whole page. This
> page should habe a colored background (grey). I get the background,
> but shifted. It begins (vertically) a line before the table and ends a
> line before the end of the table.
> \startbackground
> \rotate[rotation=270]{

It helps if you place a '%' at the end, so
and similar to the rest of lines which don't end with a command

> \setupTABLE[width=\textheight, height=\textwidth]
> \setupTABLE[r][each][height=0.13\textwidth]
> \setupTABLE[r][1,2][align=lohi, height=0.06\textwidth]
> \setupTABLE[c][1,2,3,4][width=0.15\textheight]
> \setupTABLE[c][5][width=0.4\textheight]
> \bTABLEhead
> \bTR
>    \bTH[nc=5] \midaligned{Übung: Einschätzung der eigenen Erfahrung: Prüfen, was wirkungsvoll ist} \eTH
> \eTR
> \eTABLEhead
> \switchtobodyfont[small]
> \bTABLEbody
> \bTR
> .....

this \bTR hopefully doesn't end here?

> \bTR
>    \bTD[m=5] \eTD
> \eTR
> \eTABLEbody
> }
> \stopbackground

It might look like a bug (it depends, if you have "whitespace", then
the table will be shifted one line down, I have no idea how the
background should look like in such cases), but perhaps something like
    \setupTABLE[c][each][background=screen] (or
can help you?


More information about the ntg-context mailing list