ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Strange behavior in a table.
@ 2014-08-29 17:34 Fabrice Couvreur
  2014-08-29 17:48 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Couvreur @ 2014-08-29 17:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1204 bytes --]

Everything is in the title, thank you.

\starttext
\`A l'aide du graphique, compléter les tableaux de correspondance suivants.
\blank[small]
{\setupTABLE[row][even][height=0.6cm]
\setupTABLE[row][odd][height=0.6cm]
\setupTABLE[1][1,2][width=3.2cm]
\setupTABLE[column][2,3,4,5,6,7][width=0.14\textwidth]
\bTABLE[align={middle,lohi}]
\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
\blank[small]
\bTABLE[align={middle,lohi}]
\bTR
    \bTH {Volume d'eau en L} \eTH
    \bTD {1} \eTD
    \bTD {2} \eTD
    \bTD {3} \eTD
    \bTD {4} \eTD
    \bTD {5} \eTD
    \bTD {10} \eTD
\eTR
\bTR
    \bTH {Hauteur en dm} \eTH
    \bTD {} \eTD
    \bTD {}  \eTD
    \bTD {}  \eTD
    \bTD {}  \eTD
    \bTD {}  \eTD
    \bTD {} \eTD
\eTR
\eTABLE}

Les graduations obtenues n'étant pas assez fines, Pascal demande à son
gendre de préciser ses calculs. La suite de l'histoire ...plus tard.
\stoptext

[-- Attachment #1.2: Type: text/html, Size: 1454 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Strange behavior in a table.
  2014-08-29 17:34 Strange behavior in a table Fabrice Couvreur
@ 2014-08-29 17:48 ` Wolfgang Schuster
  2014-08-29 21:52   ` Fabrice
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2014-08-29 17:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Strange behavior in a table.
  2014-08-29 17:48 ` Wolfgang Schuster
@ 2014-08-29 21:52   ` Fabrice
  0 siblings, 0 replies; 3+ messages in thread
From: Fabrice @ 2014-08-29 21:52 UTC (permalink / raw)
  To: ntg-context

Sorry for the mistake. To the eye, I thought the distance chosen was 
sufficient, and I did not think to change it.
In any case, your help is wonderful, thank you.
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-29 21:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-29 17:34 Strange behavior in a table Fabrice Couvreur
2014-08-29 17:48 ` Wolfgang Schuster
2014-08-29 21:52   ` Fabrice

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).