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.

10.7. Continuation captions and legendsLegendary tableAn anonymous table 5with two lines 6\end{tabular}\legend{<strong>The</strong> legend}\end{table}Captioned floats are usually thought of in terms of the table and figure environments.<strong>The</strong>re can be other kinds of float. As perhaps a more interesting example, thefollowing code produces the titled marginal note which should be displayed near here.\marginpar{\legend{LEGEND}This is a marginal note with a legend.}If you want the legend text to be included in the ‘List of. . . ’ you can do it like this withthe \addcontentsline macro.\legend{Legend title}% left justified\addcontentsline{lot}{table}{Legend title} % or% indented\addcontentsline{lot}{table}{\protect\numberline{}Legend title}<strong>The</strong> first of these forms will align the first line of the legend text under the normal tablenumbers. <strong>The</strong> second form will align the first line of the legend text under the normaltable titles. In either case, second and later lines of a multi-line text will be aligned underthe normal title lines.As an example, the Legendary table is produced by the following code:\begin{table}\centering\captiontitlefont{\sffamily}\legend{Legendary table}\addcontentsline{lot}{table}{Legendary table (toc 1)}\addcontentsline{lot}{table}{\protect\numberline{}Legendary table (toc 2)}\begin{tabular}{lc} \topruleAn anonymous table & 5 \\with two lines\end{tabular}\end{table}& 6 \\ \bottomruleLook at the List of Tables to see how the two forms of \addcontentsline are typeset.LEGENDThis is amarginalnote with alegend.\namedlegend[〈short-title〉]{〈long-title〉}As a convenience, the \namedlegend command is like the \caption command exceptthat it does not number the caption and, by default, puts no entry into a ‘List of. . . ’ file.189

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

Saved successfully!

Ooh no, something went wrong!