Difference between revisions of "Command/starttabulate"
< Command
Jump to navigation
Jump to search
(Created page with "Documentation for \starttabulate ... \stoptabulate") |
|||
Line 50: | Line 50: | ||
|} | |} | ||
− | The n multiplies the amount of space as setup in {{cmd|setuptabulate}}. Default is 0.5em. | + | The <n> multiplies the amount of space as setup in {{cmd|setuptabulate}}. Default is 0.5em. |
Line 120: | Line 120: | ||
| \HL || horizontal line || draw a horizontal | | \HL || horizontal line || draw a horizontal | ||
|}</cd:description> | |}</cd:description> | ||
− | <cd:examples><cd:example title=""><context source="yes | + | <cd:examples><cd:example title="Simple example"><context source="yes"> |
− | |||
\starttabulate[|l|p|] | \starttabulate[|l|p|] | ||
\NC question \NC Sometimes it is surprising to notice that writers, | \NC question \NC Sometimes it is surprising to notice that writers, | ||
Line 128: | Line 127: | ||
books do not belong in this list? \NC \NR | books do not belong in this list? \NC \NR | ||
\stoptabulate | \stoptabulate | ||
− | + | </context></cd:example><cd:example title="More complicated formatting"><context source="yes"> | |
\starttabulate[|b{- }la{.}|l|l|] | \starttabulate[|b{- }la{.}|l|l|] | ||
\NC A \NC This Perfect Day \NC Ira Levin \NC \NR | \NC A \NC This Perfect Day \NC Ira Levin \NC \NR |
Latest revision as of 16:53, 14 September 2023
Contents
\starttabulate ... \stoptabulate
Summary
The environment \starttabulate ... \stoptabulate is used for tabular material
Settings
\starttabulate[|...|][...=...,...] ... \stoptabulate | |
[|...|] | template |
...=...,... | inherits from \setuptabulate |
Description
For the main article on this subject, see Tabulate.
Tabulate is a table-like environment to place information in rows and columns without placing vertical rules. There is an option to place horizontal rules with the command \HL
. The tabulate environment knows left, right and center aligned columns for single line entries. For multiple line entries there is the p
(paragraph) type column.
Keys
General keys:
Key | Meaning |
---|---|
[vertical bar] | column separator |
c | center |
l | flush left |
r | flush right |
p | paragraph |
Spacing keys:
Key | Meaning |
---|---|
i<n> | set space left |
j<n> | set space right |
k<n> | set space around |
The <n> multiplies the amount of space as setup in \setuptabulate. Default is 0.5em.
The width of a column can be set:
Key | Meaning |
---|---|
w(d) | set column width at specified value, single line |
p(d) | set column width at specified value, paragraph |
p | use maximum column width for the paragraph |
Font switches which apply for a whole column, they can be set in the preamble:
Key | Meaning |
---|---|
B | bold |
I | italic |
R | roman |
S | slanted |
T | teletype |
m | inline math |
M | display math |
Available hooks in the preamble:
Key | Meaning |
---|---|
f\command |
arbitrary fontswitch, defined by \command
|
b{ .. } | contents between curley braces is placed before the entry |
a{ .. } | contents between curley braces is placed after the entry |
A{ key } | contents is aligned according to key (example: A{stretch}) |
h\command |
arbitrary command or macro, defined by \command
|
Switching columns and rows:
Command | Meaning | Description |
---|---|---|
\NR | next row | make a new row |
\NC | next column | go to next column |
\EQ | next column with columseparator | go to next column |
\HL | horizontal line | draw a horizontal |
Examples
Simple example
\starttabulate[|l|p|] \NC question \NC Sometimes it is surprising to notice that writers, independently of each other, explore the same theme along similar lines. Three of the four books mentioned here fall into this category. Which books do not belong in this list? \NC \NR \stoptabulate
More complicated formatting
\starttabulate[|b{- }la{.}|l|l|] \NC A \NC This Perfect Day \NC Ira Levin \NC \NR \NC B \NC Opstaan op Zaterdag \NC Jan Gerhart Toonder \NC \NR \NC C \NC Tot waar zal ik je brengen \NC Anton Koolhaas \NC \NR \NC D \NC The City And The Stars \NC Arthur Clarke \NC \NR \stoptabulate