From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Long table centered on every page
Date: Thu, 20 Sep 2012 15:51:23 +0200 [thread overview]
Message-ID: <05F1A0D0-4DEC-4D44-8BB8-BABB717D6DDC@gmail.com> (raw)
In-Reply-To: <op.wkxax6lotpjj8f@lpr>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2012-09-20 13:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-20 7:26 Procházka Lukáš Ing. - Pontex s. r. o.
2012-09-20 13:51 ` Wolfgang Schuster [this message]
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.
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=05F1A0D0-4DEC-4D44-8BB8-BABB717D6DDC@gmail.com \
--to=wolfgang.schuster@gmail.com \
--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).