Long table centered on every page
Hello how to center a table over several pages? Suppose the following code: ---- \def\TAB{% \bTABLE[split=repeat] \bTABLEhead \bTR \bTH head1 \eTH \eTR \eTABLEhead % \bTABLEbody \dorecurse{40}{% \bTR \bTD body \eTD \eTR } \eTABLEbody \eTABLE } \starttext Table 1: \midaligned{\TAB} \page Table 2: \startalignment[middle] %\dontleavehmode% \TAB \stopalignment \stoptext ---- Table 1 is centered in the page, however both parts of the table are placed next to each other (unwanted). If I use \startalignment instead \midaligned (table 2), the table is not centered on the page (also unwanted), even if I uncomment the \dontleavehmode. So - how to center a long table on every page it is printed on? TIA. Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
Am 20.09.2012 um 09:26 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
Hello
how to center a table over several pages?
Suppose the following code:
---- \def\TAB{% \bTABLE[split=repeat] \bTABLEhead \bTR \bTH head1 \eTH \eTR \eTABLEhead % \bTABLEbody \dorecurse{40}{% \bTR \bTD body \eTD \eTR } \eTABLEbody \eTABLE }
\starttext Table 1:
\midaligned{\TAB}
\page Table 2:
\startalignment[middle] %\dontleavehmode% \TAB \stopalignment \stoptext ----
Table 1 is centered in the page, however both parts of the table are placed next to each other (unwanted).
If I use \startalignment instead \midaligned (table 2), the table is not centered on the page (also unwanted), even if I uncomment the \dontleavehmode.
So - how to center a long table on every page it is printed on?
Use \placetable[force]{}{…} and omit the caption with the “none” keyword when you don’t want it. WOlfgang
Hello,
On Thu, 20 Sep 2012 15:51:23 +0200, Wolfgang Schuster
Use \placetable[force]{}{…} and omit the caption with the “none” keyword when you don’t want it.
WOlfgang
did you mean this? ---- \def\TAB{% \bTABLE[split=repeat] \bTABLEhead \bTR \bTH head1 \eTH \eTR \eTABLEhead % \bTABLEbody \dorecurse{40}{% \bTR \bTD body \eTD \eTR } \eTABLEbody \eTABLE } \starttext \placetable[force,none]{}{\TAB} \stoptext ---- - But this long table is not split to more pages! - See the attachment... Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
Am 20.09.2012 um 16:26 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
Hello,
On Thu, 20 Sep 2012 15:51:23 +0200, Wolfgang Schuster
wrote: Use \placetable[force]{}{…} and omit the caption with the “none” keyword when you don’t want it.
WOlfgang
did you mean this?
---- \def\TAB{% \bTABLE[split=repeat] \bTABLEhead \bTR \bTH head1 \eTH \eTR \eTABLEhead % \bTABLEbody \dorecurse{40}{% \bTR \bTD body \eTD \eTR } \eTABLEbody \eTABLE }
\starttext \placetable[force,none]{}{\TAB} \stoptext ----
- But this long table is not split to more pages! - See the attachment…
You need also the “split” keyword for the float. \starttext \startplacetable[location={force,split,none}] \bTABLE[split=repeat] \bTABLEhead \bTR \bTH head1 \eTH \eTR \eTABLEhead % \bTABLEbody \dorecurse{40}{% \bTR \bTD body \eTD \eTR } \eTABLEbody \eTABLE \stopplacetable \stoptext Wolfgang
You need also the “split” keyword for the float.
\starttext
\startplacetable[location={force,split,none}] \bTABLE[split=repeat] \bTABLEhead \bTR \bTH head1 \eTH \eTR \eTABLEhead % \bTABLEbody \dorecurse{40}{% \bTR \bTD body \eTD \eTR } \eTABLEbody \eTABLE \stopplacetable
\stoptext
Wolfgang
... That's it. Thank you, Wolfgang! Best regards, Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
participants (2)
-
Procházka Lukáš Ing. - Pontex s. r. o.
-
Wolfgang Schuster