[NTG-context] Strange behavior in a table.

Wolfgang Schuster schuster.wolfgang at gmail.com
Fri Aug 29 19:48:35 CEST 2014


Am 29.08.2014 um 19:34 schrieb Fabrice Couvreur <fabrice1.couvreur at 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


More information about the ntg-context mailing list