Re: [NTG-context] Question about natural tables

2016-10-09 Thread Fabrice Couvreur
Hi Wolfgang,
Thanks
Fabrice

2016-10-09 21:58 GMT+02:00 Wolfgang Schuster :

> Fabrice Couvreur 
> 9. Oktober 2016 um 10:42
>
> Hello,
> I do not succeed in having two sub-columns of the same width in the third
> column.
>
> Your table has four columns but you set only the width for the first
> three, adding a width setting for the fourth column helps.
>
> \startsetups[table:initialize]
>   \setupTABLE[start][align={middle,lohi},offset=0.8ex,
> style=\smallbodyfont]
>   \setupTABLE[column][1][width=0.10\textwidth]
>   \setupTABLE[column][2][width=0.40\textwidth]
>   \setupTABLE[column][3][width=0.25\textwidth]
>   \setupTABLE[column][4][width=0.25\textwidth]
>   \setupTABLE[1][1,2,3][frame=off]
> \stopsetups
>
> 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
> 
> ___
>
___
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
___

Re: [NTG-context] Question about natural tables

2016-10-09 Thread Wolfgang Schuster

Fabrice Couvreur 
9. Oktober 2016 um 10:42

Hello,
I do not succeed in having two sub-columns of the same width in the 
third column.
Your table has four columns but you set only the width for the first 
three, adding a width setting for the fourth column helps.


\startsetups[table:initialize]
  \setupTABLE[start][align={middle,lohi},offset=0.8ex,style=\smallbodyfont]
  \setupTABLE[column][1][width=0.10\textwidth]
  \setupTABLE[column][2][width=0.40\textwidth]
  \setupTABLE[column][3][width=0.25\textwidth]
  \setupTABLE[column][4][width=0.25\textwidth]
  \setupTABLE[1][1,2,3][frame=off]
\stopsetups

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
___

[NTG-context] Question about natural tables

2016-10-09 Thread Fabrice Couvreur
Hello,
I do not succeed in having two sub-columns of the same width in the third
column.
Thank you.
Fabrice

\useMPlibrary[dum]
\startsetups[table:initialize]

  \setupTABLE[start][align={middle,lohi},offset=0.8ex]
  \setupTABLE[column][2][width=0.5\textwidth]
  \setupTABLE[column][3][width=0.4\textwidth]
  \setupTABLE[column][first][width=1.5cm]
  \setupTABLE[1][1,2,3][frame=off]

\stopsetups

\starttext

\startlinecorrection[blank]
\startmidaligned
\bTABLE[setups=table:initialize]

\bTR
  \bTD\eTD
  \bTD Algébriquement \eTD
  \bTD [nc=2] Graphiquement  \eTD
\eTR
\bTR
 \bTD \eTD
 \bTD[nr=2] L'équation \math{ax^2+bx+c=0} \eTD
 \bTD[nc=2] La parabole d'équation \math{y=ax^2+bx+c} \eTD
\eTR
\bTR
 \bTD \eTD
 \bTD Cas où \math{a\geqslant 0}  \eTD
 \bTD Cas où \math{a\leqslant 0}  \eTD
\eTR
\bTR
 \bTD\math{\Delta >0} \eTD
 \bTD  admet deux solutions distinctes :
\startformula
 x_1=\frac{-b-\sqrt{\Delta}}{2a}\quad \rm{et} \quad
x_2=\frac{-b+\sqrt{\Delta}}{2a}
\stopformula
\eTD
\bTD[nc=2] coupe deux fois l'axe des abscisses
\dontleavehmode\startcombination[2*1]{\externalfigure[dummy][scale=900]}{}{\externalfigure[dummy][scale=900]}{}
\stopcombination \eTD
\eTR
\bTR
 \bTD\math{\Delta=0} \eTD
 \bTD  admet une unique solution :
\startformula
   x_0=-\frac{b}{2a}
\stopformula
\eTD
\bTD[nc=2] coupe l'axe des abscisses en un seul point
\dontleavehmode\startcombination[2*1]{\externalfigure[dummy][scale=900]}{}{\externalfigure[dummy][scale=900]}{}
\stopcombination \eTD
\eTR
\bTR
 \bTD\math{\Delta<0} \eTD
 \bTD  n'admet pas de solution
\eTD
\bTD [nc=2] ne coupe pas l'axe des abscisses
\dontleavehmode\startcombination[2*1]{\externalfigure[dummy][scale=900]}{}{\externalfigure[dummy][scale=900]}{}
\stopcombination\eTD
\eTR
\eTABLE

\stopmidaligned
\stoplinecorrection

\stoptext
___
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
___