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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

11. ROWS AND COLUMNSFigure 11.1: Example of a regular tabularMulticolumn entry! THREE FOURone <strong>The</strong> width ofthis column isfixed (5.5pc).three Column fourwill act in thesame way ascolumn two,with the samewidth.Figure 11.2: Example tabularx and tabular* with widths of 250ptthree Column four\begin{tabularx}{250pt}{|c|X|c|X|}Multicolumn entry! THREE FOURone <strong>The</strong> width of thiscolumn dependson the width ofthe table. 2 will act in thesame way ascolumn two,with the samewidth.\begin{tabular*}{250pt}{|c|p{5.5pc}|c|p{5.5pc}|}Multicolumn entry! THREE FOURone <strong>The</strong> width ofthis column isfixed (5.5pc).three Column fourwill act in thesame way ascolumn two,with the samewidth.<strong>The</strong> following examples use virtually the same contents, the major differences are thespecifications of the environment.Note that the horizontal rules extend beyond the last column. <strong>The</strong>re are no X columnsand the total width required to set the tabular* is less than the 250pt specified for thewidth.Compare the previous narrow tabular* with the next one which is set with\begin{tabular*}{300pt}%{|@{\extracolsep{\fill}}c|p{5.5pc}|c|p{5.5pc}|}<strong>The</strong> main differences between the tabularx and tabular* environments are:• tabularx modifies the widths of the columns, whereas tabular* modifies thewidths of the intercolumn spaces.• tabular and tabular* environments may be nested with no restriction, howeverif one tabularx environment occurs inside another, then the inner one must be enclosedby { }.• <strong>The</strong> body of the tabularx environment is in fact the argument to a command, andso certain constructions which are not allowed in command arguments (like \verb)222

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

Saved successfully!

Ooh no, something went wrong!