On Wed, 30 Oct 2013, Wolfgang Schuster wrote:


Am 30.10.2013 um 17:43 schrieb MANUEL GONZALEZ SUAREZ 
<gonzalezsman...@uniovi.es>:

Hello everyone.
I like to compose tables using the method "Natural Tables" recommended 
"Contextgarden" but do not know how I have toconfigure to display only horizontal lines 
(not vertical). I send a minimal example:


\starttext
\starttable[|c|c|]
\HL
\NC Letters \NC Numbers \SR % or \NC\AR
\HL
\NC A \NC 1 \AR
\NC B \NC 2 \AR
\NC C \NC 3 \AR
\HL
\stoptable
\stoptext

How I could "translate" to a "natural table " this code?

\startsetups[table:rules]

        \setupTABLE [start]  [frame=off,align=middle]
        \setupTABLE [header] [topframe=on,bottomframe=on]

        \setupTABLE [row] [first] [topframe=on]
        \setupTABLE [row] [last]  [bottomframe=on]

\stopsetups

\starttext

\bTABLE[setups=table:rules]
        \bTABLEhead
                \bTR
                        \bTD Letters \eTD
                        \bTD Numbers \eTD
                \eTR
        \eTABLEhead
        \bTABLEbody
                \bTR
                        \bTD A \eTD
                        \bTD 1 \eTD
                \eTR
                \bTR
                        \bTD B \eTD
                        \bTD 2 \eTD
                \eTR
                \bTR
                        \bTD C \eTD
                        \bTD 2 \eTD
                \eTR
        \eTABLEbody
\eTABLE

\stoptext

or

\startsetups[table:rules]
        \setupTABLE [start]  [frame=off,align=middle]
        \setupTABLE [row] [first] [topframe=on, bottomframe=on]
        \setupTABLE [row] [last]  [bottomframe=on]
\stopsetups

\starttext

\startTABLE[setups=table:rules]
\NC Letters \NC Numbers \NC \NR
\NC A \NC 1 \NC \NR
\NC B \NC 2 \NC \NR
\NC C \NC 3 \NC \NR
\stopTABLE
\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
___________________________________________________________________________________

Reply via email to