![]() | ![]() | ![]() | Lining it up in columns | Contents | Index |
The tabular
environment is available in Hyperlatex.
Many column types are now supported, and even \newcolumntype
is
available. The | column type specifier is silently ignored. You
can force borders around your table (and every single cell) by using
\xmlattributes*{table}{border="1"}
immediately before your tabular
environment. You can use the \multicolumn
command. \hline
is
understood and ignored.
The \htmlcaption
has to be used right after the
\
begin{tabular}
. It sets the caption for the HTML table. (In
HTML, the caption is part of the tabular
environment. However, you
can as well use \caption
outside the environment.)
If you have made the &
character non-special,
you can use the macro \htmltab
as a replacement.
Here is an example:
\begin{table}[htp] \T\caption{Keyboard shortcuts for \textit{Ipe}} \begin{center} \begin{tabular}{|l|lll|} \htmlcaption{Keyboard shortcuts for \textit{Ipe}} \hline & Left Mouse & Middle Mouse & Right Mouse \\ \hline Plain & (start drawing) & move & select \\ Shift & scale & pan & select more \\ Ctrl & stretch & rotate & select type \\ Shift+Ctrl & & & select more type \T\\ \hline \end{tabular} \end{center} \end{table}
The example is typeset as follows:
Left Mouse | Middle Mouse | Right Mouse | |
Plain | (start drawing) | move | select |
Shift | scale | pan | select more |
Ctrl | stretch | rotate | select type |
Shift+Ctrl | select more type |
netscape
browser treats empty fields in a table
specially. If you don't like that, put a single ~ in that field.
A more complicated example:
type | style | |
smart | red | short |
rather silly | puce | tall |
\xmlattributes
command:
gnats | gram | $13.65 |
each | .01 | |
gnu | stuffed | 92.50 |
emu | 33.33 | |
armadillo | frozen | 8.99 |
multirow
package in the contrib directory.
![]() | ![]() | ![]() | Lining it up in columns | Contents | Index |