ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Peter Rolf <indiego@gmx.net>
Subject: Re: rotate a TABLE
Date: Sun, 14 Jan 2007 14:09:18 +0100	[thread overview]
Message-ID: <45AA2B7E.7060607@gmx.net> (raw)
In-Reply-To: <20070114091453.GA3857@grohe.our-isp.org>

Hi Gerhard,

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]{
> \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]

The shift is caused by the \setupTABLE commands (ends with "]", so the
line break becomes active and adds one space). You can add a comment
symbol at the end of every such line or move the whole setup part out of
the rotate macro. I also used \framed here, as \st(art|op)background
still has some spurious space at the end of the table.

% - - - - - - - - - -
\setupoutput[pdftex]
\setupcolors[state=start]

\starttext

\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]

\rotate[rotation=270]
{\framed[offset=overlay,frame=off,background=color,backgroundcolor=lightgray]\bgroup
%\startbackground
\bTABLE
\bTABLEhead
\bTR
   \bTH[nc=5] \midaligned{Übung: Einschätzung der eigenen Erfahrung:
Prüfen, was wirkungsvoll ist} \eTH
\eTR
\eTABLEhead
\switchtobodyfont[small]
\bTABLEbody
\bTR
   \bTD[m=5] \eTD
\eTR
\eTABLEbody
\eTABLE
%\stopbackground
\egroup % \framed
}

\stoptext


Greetings, Peter

> \bTABLE
> \bTABLEhead
> \bTR
>    \bTH[nc=5] \midaligned{Übung: Einschätzung der eigenen Erfahrung: Prüfen, was wirkungsvoll ist} \eTH
> \eTR
> \eTABLEhead
> \switchtobodyfont[small]
> \bTABLEbody
> \bTR
> .....
> \bTR
>    \bTD[m=5] \eTD
> \eTR
> \eTABLEbody
> \eTABLE
> }
> \stopbackground
> 
> 
> Gerhard
> 

      parent reply	other threads:[~2007-01-14 13:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-13 10:25 Gerhard Kugler
2007-01-13 11:02 ` Henning Hraban Ramm
2007-01-14  9:14   ` Gerhard Kugler
2007-01-14 13:08     ` Mojca Miklavec
2007-01-14 18:17       ` Hans Hagen
2007-01-14 13:09     ` Peter Rolf [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45AA2B7E.7060607@gmx.net \
    --to=indiego@gmx.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).