12.07.2015 Views

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

11. ROWS AND COLUMNSTable 11.7: Example automatic row ordered tableone two three four fivesix seven eight nine teneleven twelve thirteen fourteenFrançois Villon, 1431–1463?<strong>The</strong> ctabular environment will probably not be used within a table environment(which defeats the possibility of the table crossing page boundaries). To caption actabular you can define a fixed caption. For example:\newfixedcaption{\freetabcaption}{table}And then \freetabcaption can be used like the normal \caption within a table float.11.8.2 Automatic tabularsA tabular format may be used just to list things, for example the names of the members ofa particular organisation, or the names of La<strong>TeX</strong> environments.Especially when drafting a document, or when the number of entries is likely to change,it is convenient to be able to tabulate a list of items without having to explicitly mark theend of each row.\autorows[〈width〉]{〈pos〉}{〈num〉}{〈style〉}{〈entries〉}<strong>The</strong> \autorows macro lists the 〈entries〉 in rows; that is, the entries are typeset left to rightand top to bottom. <strong>The</strong> 〈num〉 argument is the number of columns. <strong>The</strong> 〈entries〉 argumentis a comma-separated list of the names to be tabulated; there must be no comma after thelast of the names before the closing brace. Table 11.7 was set by \autorows using:\begin{figure}\freetabcaption{Example automatic row ordered table}\label{tab:autorows}\autorows{c}{5}{c}{one, two, three, four, five,six, seven, eight, nine, ten,eleven, twelve, thirteen, fourteen }\end{figure}<strong>The</strong> 〈pos〉 argument controls the horizontal position of the tabular and the 〈style〉 argumentspecifies the location of the entries in the columns; each column is treated identically.<strong>The</strong> value of a 〈pos〉 or 〈style〉 argument is one of the following characters:l left justified,c centered, orr right justified.Each column is normally the same width, which is large enough to accomodate thewidest entry in the list. A positive 〈width〉 (e.g., {0.8\textwidth}), defines the overallwidth of the table, and the column width is calculated by dividing 〈width〉 by the numberof columns. Any negative value for the 〈width〉 width lets each column be wide enough forthe widest entry in that column; the column width is no longer a constant.<strong>The</strong> examples in Figure 11.4 illustrate the effect of the 〈width〉 argument (the defaultvalue is 0pt). <strong>The</strong> principal elements of the code for the Figure are:228

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!