* rotate a TABLE
@ 2007-01-13 10:25 Gerhard Kugler
2007-01-13 11:02 ` Henning Hraban Ramm
0 siblings, 1 reply; 6+ messages in thread
From: Gerhard Kugler @ 2007-01-13 10:25 UTC (permalink / raw)
Hi,
I want to rotate a TABLE (to landscape) within a normal (portrait)
text. The TABLE covers one page. Which commands or options in commands
do I have?
Gerhard
--
Gerhard Kugler
Psychotherapeut
http://www.psychotherapie-kugler.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: rotate a TABLE
2007-01-13 10:25 rotate a TABLE Gerhard Kugler
@ 2007-01-13 11:02 ` Henning Hraban Ramm
2007-01-14 9:14 ` Gerhard Kugler
0 siblings, 1 reply; 6+ messages in thread
From: Henning Hraban Ramm @ 2007-01-13 11:02 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 384 bytes --]
Am 2007-01-13 um 11:25 schrieb Gerhard Kugler:
> I want to rotate a TABLE (to landscape) within a normal (portrait)
> text. The TABLE covers one page. Which commands or options in commands
> do I have?
What's wrong with \rotate{your table} ?
Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)
[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 3574 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: rotate a TABLE
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 13:09 ` Peter Rolf
0 siblings, 2 replies; 6+ messages in thread
From: Gerhard Kugler @ 2007-01-14 9:14 UTC (permalink / raw)
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]
\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
--
Gerhard Kugler
Psychotherapeut
http://www.psychotherapie-kugler.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: rotate a TABLE
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
1 sibling, 1 reply; 6+ messages in thread
From: Mojca Miklavec @ 2007-01-14 13:08 UTC (permalink / raw)
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
\rotate[rotation=270]{%
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]
> \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
> .....
this \bTR hopefully doesn't end here?
> \bTR
> \bTD[m=5] \eTD
> \eTR
> \eTABLEbody
> \eTABLE
> }
> \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
background=color,backgroundcolor=...)
can help you?
Mojca
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: rotate a TABLE
2007-01-14 9:14 ` Gerhard Kugler
2007-01-14 13:08 ` Mojca Miklavec
@ 2007-01-14 13:09 ` Peter Rolf
1 sibling, 0 replies; 6+ messages in thread
From: Peter Rolf @ 2007-01-14 13:09 UTC (permalink / raw)
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
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: rotate a TABLE
2007-01-14 13:08 ` Mojca Miklavec
@ 2007-01-14 18:17 ` Hans Hagen
0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2007-01-14 18:17 UTC (permalink / raw)
Mojca Miklavec wrote:
> 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
> \rotate[rotation=270]{%
> and similar to the rest of lines which don't end with a command
>
\placetable[here,270]{some caption}{the table}
\placetable[page,270,none] ....
is also possible
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-01-14 18:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-13 10:25 rotate a TABLE 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 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).