Difference between revisions of "Table"

From Wiki
Jump to navigation Jump to search
(changed pre to texcode and tt to cmd)
(added pretty printing and sample)
Line 7: Line 7:
 
\starttable[|l|l|]
 
\starttable[|l|l|]
 
\HL
 
\HL
\NC Befehl \NC Bedeutung \NC\SR
+
\NC Command \NC Meaning \NC\SR
 
\HL
 
\HL
 
\NC \tex{NC} \NC next column \NC\FR
 
\NC \tex{NC} \NC next column \NC\FR
Line 24: Line 24:
 
</texcode>
 
</texcode>
  
The different "row end" commands make a better spacing. Better use SR, FR, MR, LR instead of NR. You can also use AR instead of SR, FR, MR and LR (AR for automatic row).
+
The different "row end" commands make a better spacing. Better use <cmd>SR</cmd>, <cmd>FR</cmd>, <cmd>MR</cmd>, <cmd>LR</cmd> instead of <cmd>NR</cmd>. You can also use <cmd>AR</cmd> instead of <cmd>SR</cmd>, <cmd>FR</cmd>, <cmd>MR</cmd> and <cmd>LR</cmd> (AR for automatic row).
  
 
If you need information about <cmd>placetable</cmd> look after <cmd>placefloat</cmd> in the manual!
 
If you need information about <cmd>placetable</cmd> look after <cmd>placefloat</cmd> in the manual!
 
If you'd like to leave out the table's caption, you can't simply leave the braces empty but must write <tt>none</tt>!
 
If you'd like to leave out the table's caption, you can't simply leave the braces empty but must write <tt>none</tt>!
  
This mode is based on Michael Wichura's TaBlE package for PlainTeX. The official manual for it is commercial (about 40 USD), see [http://www.pctex.com PCTeX] -- but note that the TaBlE manual only talks about the original syntax, which does not use \NC, \HL cum suis.
+
This mode is based on Michael Wichura's TaBlE package for PlainTeX. The official manual for it is commercial (about 40 USD), see [http://www.pctex.com PCTeX] -- but note that the TaBlE manual only talks about the original syntax, which does not use <cmd>NC</cmd>, <cmd>HL</cmd> cum suis.
  
 
The only ConTeXt docs about it are in [http://www.pragma-ade.com/general/manuals/ms-cb-en.pdf ms-cb-en.pdf].
 
The only ConTeXt docs about it are in [http://www.pragma-ade.com/general/manuals/ms-cb-en.pdf ms-cb-en.pdf].
 +
 +
 +
The sample looks like this:
 +
 +
<context>
 +
\placetable[here][tab:sample]{sample table}
 +
\starttable[|l|l|]
 +
\HL
 +
\NC Command \NC Meaning \NC\SR
 +
\HL
 +
\NC \tex{NC} \NC next column \NC\FR
 +
\NC \tex{HL} \NC horizontal line \NC\MR
 +
\NC \tex{VL} \NC vertical line \NC\MR
 +
\NC \tex{NR} \NC next row \NC\LR
 +
\HL
 +
\NC \tex{SR} \NC single row \NC\FR
 +
\NC \tex{FR} \NC first row \NC\MR
 +
\NC \tex{MR} \NC middle row \NC\MR
 +
\NC \tex{LR} \NC last row \NC\LR
 +
\HL
 +
\NC \tex{AR} \NC automatic row \NC\SR
 +
\HL
 +
\stoptable
 +
</context>

Revision as of 15:17, 12 September 2004

< Tables Overview

This is ConTeXts oldest table module. It uses the same formatting as tabulate. (See Tables Overview for an overview.)

\placetable[here][tab:sample]{sample table}
\starttable[|l|l|]
\HL
\NC Command	\NC Meaning	\NC\SR
\HL
\NC \tex{NC}	\NC next column	\NC\FR
\NC \tex{HL}	\NC horizontal line	\NC\MR
\NC \tex{VL}	\NC vertical line	\NC\MR
\NC \tex{NR}	\NC next row	\NC\LR
\HL
\NC \tex{SR}	\NC single row	\NC\FR
\NC \tex{FR}	\NC first row	\NC\MR
\NC \tex{MR}	\NC middle row	\NC\MR
\NC \tex{LR}	\NC last row \NC\LR
\HL
\NC \tex{AR}	\NC automatic row	\NC\SR
\HL
\stoptable

The different "row end" commands make a better spacing. Better use \SR, \FR, \MR, \LR instead of \NR. You can also use \AR instead of \SR, \FR, \MR and \LR (AR for automatic row).

If you need information about \placetable look after \placefloat in the manual! If you'd like to leave out the table's caption, you can't simply leave the braces empty but must write none!

This mode is based on Michael Wichura's TaBlE package for PlainTeX. The official manual for it is commercial (about 40 USD), see PCTeX -- but note that the TaBlE manual only talks about the original syntax, which does not use \NC, \HL cum suis.

The only ConTeXt docs about it are in ms-cb-en.pdf.


The sample looks like this: