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: placing an xtable
Date: Tue, 18 Jun 2013 22:53:32 +0200	[thread overview]
Message-ID: <D47DDC31-D033-42E7-B495-9E1081C9B5EB@gmail.com> (raw)
In-Reply-To: <51C0C285.7080500@web.de>


Am 18.06.2013 um 22:26 schrieb Pablo Rodríguez <oinos@web.de>:

> Dear list,
> 
> I'd like to place a table centered (both horizontally and vertically) on
> an empty page.
> 
> Is there no option from the xtable itself to achieve that?
> 
> I have tried \startxtable[location=lohi], but this doesn't seem to
> affect to the placement of the table itself.
> 
> Many thanks for your help,


You can use a page float to place table:

\starttext

\input ward

\startplacetable[location={page,none}]
  \startxtable
    \startxrow
      \startxcell Table content!\stopxcell
    \stopxrow
  \stopxtable
\stopplacetable

\stoptext

or when you don’t mind a page break before the table a frame can be used:

\defineframedtext
  [XFRAMED]
  [width=max,
   height=max,
   align={middle,lohi},
   offset=overlay,
   frame=off,
   before=\page, % before=\page\noheaderandfooterlines,
   after=\page]

\starttext

\input ward

\startXFRAMED
  \startxtable
    \startxrow
      \startxcell Table content!\stopxcell
    \stopxrow
  \stopxtable
\stopXFRAMED

\input ward

\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
___________________________________________________________________________________


  reply	other threads:[~2013-06-18 20:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-18 20:26 Pablo Rodríguez
2013-06-18 20:53 ` Wolfgang Schuster [this message]
2013-06-18 21:20   ` Pablo Rodríguez

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=D47DDC31-D033-42E7-B495-9E1081C9B5EB@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).