* Long table centered on every page
@ 2012-09-20 7:26 Procházka Lukáš Ing. - Pontex s. r. o.
2012-09-20 13:51 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2012-09-20 7:26 UTC (permalink / raw)
To: ConTeXt
[-- Attachment #1: Type: text/plain, Size: 1094 bytes --]
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
[-- Attachment #2: t-LongTab.mkiv --]
[-- Type: application/octet-stream, Size: 425 bytes --]
\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
[-- Attachment #3: t-LongTab.pdf --]
[-- Type: application/pdf, Size: 10905 bytes --]
[-- Attachment #4: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Long table centered on every page
2012-09-20 7:26 Long table centered on every page Procházka Lukáš Ing. - Pontex s. r. o.
@ 2012-09-20 13:51 ` Wolfgang Schuster
2012-09-20 14:26 ` Procházka Lukáš Ing. - Pontex s. r. o.
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2012-09-20 13:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 20.09.2012 um 09:26 schrieb Procházka Lukáš Ing. - Pontex s. r. o. <LPr@pontex.cz>:
> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Long table centered on every page
2012-09-20 13:51 ` Wolfgang Schuster
@ 2012-09-20 14:26 ` Procházka Lukáš Ing. - Pontex s. r. o.
2012-09-20 14:31 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2012-09-20 14:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 894 bytes --]
Hello,
On Thu, 20 Sep 2012 15:51:23 +0200, Wolfgang Schuster <wolfgang.schuster@gmail.com> 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...
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
[-- Attachment #2: t-LongTab.mkiv --]
[-- Type: application/octet-stream, Size: 479 bytes --]
\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}
%\page
%Table 1:
%\midaligned{\TAB}
%\page
%Table 2:
%\startalignment[middle]
%\dontleavehmode%
% \TAB
%\stopalignment
\stoptext
[-- Attachment #3: t-LongTab.pdf --]
[-- Type: application/pdf, Size: 8199 bytes --]
[-- Attachment #4: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Long table centered on every page
2012-09-20 14:26 ` Procházka Lukáš Ing. - Pontex s. r. o.
@ 2012-09-20 14:31 ` Wolfgang Schuster
2012-09-20 15:06 ` Procházka Lukáš Ing. - Pontex s. r. o.
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2012-09-20 14:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 20.09.2012 um 16:26 schrieb Procházka Lukáš Ing. - Pontex s. r. o. <LPr@pontex.cz>:
> Hello,
>
> On Thu, 20 Sep 2012 15:51:23 +0200, Wolfgang Schuster <wolfgang.schuster@gmail.com> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Long table centered on every page
2012-09-20 14:31 ` Wolfgang Schuster
@ 2012-09-20 15:06 ` Procházka Lukáš Ing. - Pontex s. r. o.
0 siblings, 0 replies; 5+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2012-09-20 15:06 UTC (permalink / raw)
To: mailing list for ConTeXt users
> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-09-20 15:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-20 7:26 Long table centered on every page Procházka Lukáš Ing. - Pontex s. r. o.
2012-09-20 13:51 ` Wolfgang Schuster
2012-09-20 14:26 ` Procházka Lukáš Ing. - Pontex s. r. o.
2012-09-20 14:31 ` Wolfgang Schuster
2012-09-20 15:06 ` Procházka Lukáš Ing. - Pontex s. r. o.
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).