Difference between revisions of "Tabulate"

From Wiki
Jump to navigation Jump to search
m (changed pre to texcode)
(pretty printing + sample)
Line 1: Line 1:
 
< [[Tables Overview]]
 
< [[Tables Overview]]
  
Rather simple tabulating. You ''need'' the bars in the formatting field of <tt>\starttabulate</tt>! If you want vertical lines, you need another table module (see [[Tables]]).
+
Rather simple tabulating. You ''need'' the bars in the formatting field of <cmd>starttabulate</cmd>! If you want vertical lines, you need another table mode (see [[Tables]]).
  
 
This is especially suited if you want to have paragraphs in on (or more) of the tabulate columns.
 
This is especially suited if you want to have paragraphs in on (or more) of the tabulate columns.
Line 24: Line 24:
 
* NC is new column (or new cell)
 
* NC is new column (or new cell)
 
* NR is new row
 
* NR is new row
 +
 +
The sample looks like this:
 +
 +
<context>
 +
\starttabulate[|l|l|]
 +
\HL
 +
\NC format \NC meaning \NC\NR
 +
\HL
 +
\NC c \NC centered \NC\NR
 +
\NC l \NC left aligned \NC\NR
 +
\NC r \NC right aligned \NC\NR
 +
\NC w(1cm) \NC one line, fixed width \NC\NR
 +
\NC p(2cm) \NC paragraph, lines broken to fixed width \NC\NR
 +
% You can leave out the \NC before \NR
 +
\HL
 +
\stoptabulate
 +
</context>

Revision as of 15:13, 12 September 2004

< Tables Overview

Rather simple tabulating. You need the bars in the formatting field of \starttabulate! If you want vertical lines, you need another table mode (see Tables).

This is especially suited if you want to have paragraphs in on (or more) of the tabulate columns.

The sample describes the formatting characters:

\starttabulate[|l|l|]
\HL
\NC format	\NC meaning	\NC\NR
\HL
\NC c		\NC centered	\NC\NR
\NC l		\NC left aligned	\NC\NR
\NC r		\NC right aligned	\NC\NR
\NC w(1cm)	\NC one line, fixed width	\NC\NR
\NC p(2cm)	\NC paragraph, lines broken to fixed width	\NC\NR
% You can leave out the \NC before \NR
\HL
\stoptabulate
  • HL is horizontal line
  • NC is new column (or new cell)
  • NR is new row

The sample looks like this: