ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Mikael P. Sundqvist" <mickep@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Centering tabulate env. using \setuptabulate
Date: Tue, 13 May 2014 07:03:58 +0200	[thread overview]
Message-ID: <CAHy-LL8PrKCigjGd6AgEfq_+jE4G+37--d5MRx8yAY9-6hmYpQ@mail.gmail.com> (raw)
In-Reply-To: <20140513032836.GA761@gmail.com>

On Tue, May 13, 2014 at 5:28 AM, Devendra Ghate
<devendra.ghate@gmail.com> wrote:
> I expect follow MWE to produce a centered table. But it does not.
> Am I making any obvious mistake.
>
> ---------------
> \definetabulate[centeredTable][|r|l|]
> \setuptabulate
>    [centeredTable]
>    [align={middle}]
> \starttext
>    \startcenteredTable
>      \HL
>      \NC I want this table \NC aligned in the center.\NR
>      \HL
>    \stopcenteredTable
> \stoptext
> ----------------
>
> This also *doesn't* work.
>
> ---------------
> \setuptabulate
>    [align={middle}]
> \starttext
>    \starttabulate[|r|l|]
>      \HL
>      \NC I want this table \NC aligned in the center.\NR
>      \HL
>    \stoptabulate
> \stoptext
> ----------------
>
>
>
> --
> Devendra Ghate
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


I'd do such things with

\starttext
\input knuth\par
\placetable[force,none]{none}{%
\starttabulate[|r|l|]
\HL
\NC I want this table \NC aligned in the center.\NR
\HL
\stoptabulate
}
\input knuth
\stoptext

(the knuths are there only not to make the page look so empty, and the
force makes it non-floating, and the nones are there to not have any
caption (or even Table title)) but maybe there are better solutions?

/Mikael
___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2014-05-13  5:03 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 [this message]
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

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=CAHy-LL8PrKCigjGd6AgEfq_+jE4G+37--d5MRx8yAY9-6hmYpQ@mail.gmail.com \
    --to=mickep@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).