<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <meta name="generator" content="hevea 2.32"> <meta name="Author" content="Luc Maranget"> <script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML"></script><link rel="stylesheet" type="text/css" href="manual.css"> <title>Lining It Up in Columns</title> </head> <body> <a href="manual031.html"><img src="previous_motif.svg" alt="Previous"></a> <a href="manual022.html"><img src="contents_motif.svg" alt="Up"></a> <a href="manual033.html"><img src="next_motif.svg" alt="Next"></a> <hr> <h2 class="section" id="sec143">B.10  Lining It Up in Columns</h2> <ul> <li><a href="manual032.html#sec144">The <span class="c013">tabbing</span> Environment</a> </li><li><a href="manual032.html#sec145">The <span class="c013">array</span> and <span class="c013">tabular</span> environments</a> </li></ul> <h3 class="subsection" id="sec144">B.10.1  The <span class="c013">tabbing</span> Environment</h3> <p> Limited support is offered. The <span class="c013">tabbing</span> environment translate to a flexible <span class="c013">tabular</span>-like environment. Inside this environment, the command <code>\kill</code> ends a row, while commands <code>\=</code> and <code>\></code> start a new column. All other tabbing commands do not even exist.</p> <h3 class="subsection" id="sec145">B.10.2  The <span class="c013">array</span> and <span class="c013">tabular</span> environments</h3> <p><a id="arraydef"></a></p><p>These environments are supported, using html <code>table</code> element, rendering is satisfactory in most (not too complicated) cases. By contrast with L<sup>A</sup>T<sub>E</sub>X, some of the array items always are typeset in display mode. Whether an array item is typeset in display mode or not depends upon its column specification, the <code>l</code>, <code>c</code> and <code>r</code> specifications open display mode while the remaining <code>p</code> and <code>@</code> do not. The <code>l</code>, <code>c</code>,<code>r</code> and <code>@</code> specifications disable word wrap, while the <code>p</code> specification enables it.</p><p>Entries in a column whose specification is <code>l</code> (resp. <code>c</code> or <code>r</code>) get left-aligned (resp. centered or right-aligned) in the horizontal direction. They will get top-aligned in the vertical direction if there are other column specifications in the same array that specify vertical alignment constraints (such as <code>p{</code><span class="c019">wd</span><code>}</code>, see below). Otherwise, vertical alignment is unspecified.</p><p>Entries in a column whose specification is <code>p{</code><span class="c019">wd</span><code>}</code> get left-aligned in the horizontal direction and top-aligned in the vertical direction and a paragraph break reduces to one line break inside them. This is the only occasion where H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A makes a distinction between LR-mode and paragraph mode. Also observe that the length argument <span class="c019">wd</span> to the <code>p</code> specification is ignored.</p><p>Some L<sup>A</sup>T<sub>E</sub>X array features are not supported at all: </p><ul class="itemize"><li class="li-itemize"> Optional arguments to <code>\begin{array}</code> and <code>\begin{tabular}</code> are ignored. </li><li class="li-itemize">The command <code>\vline</code> does not exists. </li></ul><p>Some others are partly rendered: </p><ul class="itemize"><li class="li-itemize"> Spacing between columns is different. </li><li class="li-itemize"><code>@</code> formatting specifications in <code>\multicolumn</code> argument are ignored. </li><li class="li-itemize">If a <code>|</code> appears somewhere in the column formatting specification, then the array is shown with borders. </li><li class="li-itemize">The command <code>\hline</code> does nothing if the array has borders (see above). Otherwise, an horizontal rule is outputted. </li><li class="li-itemize">The command <code>\cline</code> ignores its argument and is equivalent to <code>\hline</code>. </li><li class="li-itemize">Similarly the command <code>\extracolsep</code> issues a warning and ignores its argument. </li></ul><p> Additionally, the <code>tabular*</code> environment is recognised and gets rendered as an html table with an advisory width attribute.</p><p>By default, H<span class="c016"><sup>E</sup></span>V<span class="c016"><sup>E</sup></span>A implements the <span class="c013">array</span> package (see [<a href="manual047.html#latexbis">L<sup>A</sup>T<sub>E</sub>X-bis</a>, Section 5.3] and section <a href="manual-packages.html#arraypack">B.17.2</a> in this document), which significantly extends the <code>array</code> and <code>tabular</code> environments.</p> <hr> <a href="manual031.html"><img src="previous_motif.svg" alt="Previous"></a> <a href="manual022.html"><img src="contents_motif.svg" alt="Up"></a> <a href="manual033.html"><img src="next_motif.svg" alt="Next"></a> </body> </html>