Re: [NTG-context] rotate a TABLE

2007-01-14 Thread Gerhard Kugler
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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] rotate a TABLE

2007-01-14 Thread Mojca Miklavec
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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] rotate a TABLE

2007-01-14 Thread Peter Rolf
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
 

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] rotate a TABLE

2007-01-14 Thread Hans Hagen
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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] rotate a TABLE

2007-01-13 Thread Gerhard Kugler
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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] rotate a TABLE

2007-01-13 Thread Henning Hraban Ramm

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)



smime.p7s
Description: S/MIME cryptographic signature
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context