ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: unwanted space in front of table
Date: Tue, 09 Mar 2010 17:49:36 +0100	[thread overview]
Message-ID: <4B967C20.7070703@googlemail.com> (raw)
In-Reply-To: <4B9678FD.1020503@elvenkind.com>

Am 09.03.10 17:36, schrieb Taco Hoekwater:
> In general, it is advisable not to use any \setup.... commands in
> horizontal mode (unless there is absolutely no way around it).
Right but for natural tables it's not so easy, maybe something like this 
will help.

\def\dobTABLE[#1]%
   {\pushTBL
    % box not here
    \bgroup
    \TBLhead\emptytoks
    \TBLnext\emptytoks
    \TBLbody\emptytoks
    \TBLfoot\emptytoks
    \ifhmode\kern\zeropoint\fi  % blocks \removeunwantedspaces: check 
this on icare handelingsschema
    \resetcharacteralign % new
    \getparameters
      [\@@tbl\@@tbl]
      [\c!align={\v!right,\v!broad,\v!high},#1]%
    \doprocesslocalsetups{\csname\@@tbl\@@tbl\c!setups\endcsname}%
    \hsize\tbltbltextwidth
    ...

You can make your setups in the preamble with

\startsetups setups:table

   \setupTABLE[...]

\stopsetups

and use them in your document with

\bTABLE[setups=setups:table]
...
\eTABLE

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:[~2010-03-09 16:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-09 16:23 zs
2010-03-09 16:34 ` Wolfgang Schuster
2010-03-09 16:36   ` Taco Hoekwater
2010-03-09 16:49     ` Wolfgang Schuster [this message]
2010-03-09 17:10       ` zs
2010-03-09 16:23 zs

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=4B967C20.7070703@googlemail.com \
    --to=schuster.wolfgang@googlemail.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).