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: Strange behavior in a table.
Date: Fri, 29 Aug 2014 19:48:35 +0200	[thread overview]
Message-ID: <E9F57252-9B6E-4667-B0AD-210656B4CAAC@gmail.com> (raw)
In-Reply-To: <CACyK-ersjf54s=Kp5Kw3L=iK85djM7Tf6uu9s17MX1yBrNUskg@mail.gmail.com>


Am 29.08.2014 um 19:34 schrieb Fabrice Couvreur <fabrice1.couvreur@gmail.com>:

> Everything is in the title, thank you.

What do you expect, the cells in the first column are too small for the text you’re trying to put in.


There are also two things you should change:

  (1) As you use the same setup for each table create a template for them at the begin of the document
      and load ot at the begin of each table with “setups=<name of the template>”.

  (2) Remove the braces around the text in the cells because you don’t need them, font etc. changes
      are local to cell where you set them and won’t affect other cells.


Below is a example with a simplified version of your table template:

\startsetups[table:initialize]
  \setupTABLE[height=0.6cm,width=0.1\textwidth]
  \setupTABLE[column][first][width=0.4\textwidth]
  \setupTABLE[start][align={middle,lohi}]
\stopsetups

\showframe[text][text]

\starttext

\bTABLE[setups=table:initialize]
	\bTR
    	\bTH Hauteur en dm \eTH
		\bTD 0 \eTD
		\bTD 0,5 \eTD
		\bTD 1 \eTD
		\bTD 1,5 \eTD
		\bTD 2 \eTD
		\bTD 2,5 \eTD
	\eTR
	\bTR
		\bTH Volume d'eau en L \eTH
		\bTD \eTD
		\bTD \eTD
		\bTD \eTD
		\bTD \eTD
		\bTD \eTD
		\bTD \eTD
	\eTR
\eTABLE

\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:[~2014-08-29 17:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-29 17:34 Fabrice Couvreur
2014-08-29 17:48 ` Wolfgang Schuster [this message]
2014-08-29 21:52   ` Fabrice

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=E9F57252-9B6E-4667-B0AD-210656B4CAAC@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).