ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Centering tabulate env. using \setuptabulate
Date: Wed, 28 May 2014 15:53:47 +0200	[thread overview]
Message-ID: <1B472A98-47A4-44DA-906D-C710FE8A7F54@gmail.com> (raw)
In-Reply-To: <686B2798-7572-4BF0-9D3E-76E4C081BE67@zydenbos.net>


Am 28.05.2014 um 10:46 schrieb Robert Zydenbos <context@zydenbos.net>:

> On May 27, 2014, at 15:37 , Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
> 
>>> Is there also an equivalent of \placetable for use with Natural Tables?
>> 
>> You can use \placetable for all table environments.
> 
> Thank you!
> 
> Now another one:
> 
> (a) I want to create a table using 'p' cells that does not use the full width of the paper
> (b) it is a long table, crossing a page end
> (c) the whole table should be centered
> 
> I tried the source below and obviously made a mistake somewhere.
> 
> Any suggestions?
> 
> Robert
> 
> Test source:
> 
> \starttext
> 
> \input knuth
> 
> \setuptabulate[split=yes]
> 
> \midaligned { %%% <-- THIS DOES NOT WORK -- it does not center the entire table
> \starttabulate [|p(.5\textwidth)|p(.2\textwidth)|]
> \dorecurse{4}{
> \NC 
> Nu laat ik je iets zien in een tabel, die met tabulate gemaakt is. \NC Het is overigens maar een experiment, maar we zullen zien wat er gebeurt. {\bf And I want all this to be centered.} \NC \NR
> \NR
> \NC Als dit werkt, dan gaan we heel fanatiek hiermee verder. \NC Dan gaan we allerlei prachtige zaken in ConTeXt zetten, met XeTeX. \NC \NR
> \NR
> } % end of \dorecurse
> \stoptabulate
> } % end of \midaligned
> 
> \stoptext


Use \placetable with the keywords “none” to disabled the counter/caption and “split” to enable page breaks.

\starttext

\input knuth

\startplacetable[location={none,split}]
	\starttabulate [|p(.5\textwidth)|p(.2\textwidth)|]
	\dorecurse{4}{
		\NC 
		Nu laat ik je iets zien in een tabel, die met tabulate gemaakt is. \NC Het is overigens maar een experiment, maar we zullen zien wat er gebeurt. {\bf And I want all this to be centered.} \NC \NR
		\NR
		\NC Als dit werkt, dan gaan we heel fanatiek hiermee verder. \NC Dan gaan we allerlei prachtige zaken in ConTeXt zetten, met XeTeX. \NC \NR
		\NR}
	\stoptabulate
\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
___________________________________________________________________________________


      parent reply	other threads:[~2014-05-28 13:53 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-13  3:28 Devendra Ghate
2014-05-13  5:03 ` Mikael P. Sundqvist
2014-05-13  7:22   ` Procházka Lukáš Ing. - Pontex s. r. o.
2014-05-13  7:30     ` Mikael P. Sundqvist
2014-05-13  8:36       ` Otared Kavian
2014-05-13  8:49         ` Mikael P. Sundqvist
2014-05-13  9:00           ` Mikael P. Sundqvist
2014-05-13 10:23       ` Wolfgang Schuster
2014-05-23  2:17         ` Robert Zydenbos
2014-05-23  3:05           ` Wolfgang Schuster
2014-05-27  8:57             ` Robert Zydenbos
2014-05-27 13:37               ` Wolfgang Schuster
2014-05-28  8:46                 ` Robert Zydenbos
2014-05-28 11:51                   ` Hans Hagen
2014-05-28 18:25                     ` Robert Zydenbos
2014-05-28 20:10                       ` Hans Hagen
2014-05-28 20:33                         ` Robert Zydenbos
2014-05-28 13:53                   ` Wolfgang Schuster [this message]

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=1B472A98-47A4-44DA-906D-C710FE8A7F54@gmail.com \
    --to=schuster.wolfgang@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).