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.

10. FLOATS AND CAPTIONSTable 10.3REDESIGNED TABLE CAPTION STYLEthreefiveeightIIIVVIII\precaption{\captionnamefont NAME NUMBER\captiondelim}{\captionstyle\captiontitlefont THE TITLE\captiontitlefinal}\postcaptionReplacing the above commands by their defaults leads to the simple format:{NAME NUMBER: }{THE TITLE}As well as using the styling commands to make simple changes to the captioning style,more noticeable modifications can also be made. To change the captioning style so that thename and title are typeset in a sans font it is sufficient to do:\captionnamefont{\sffamily}\captiontitlefont{\sffamily}A more obvious change in styling is shown in Table 10.3, which was coded as:\begin{table}\centering\captionnamefont{\sffamily}\captiondelim{}\captionstyle{\\}\captiontitlefont{\scshape}\setlength{\belowcaptionskip}{10pt}\caption{Redesigned table caption style} \label{tab:style}\begin{tabular}{lr} \toprule...\end{table}This leads to the approximate caption format (processed within \centering):{\sffamily NAME NUMBER}{\\ \scshape THE TITLE}Note that the newline command (\\) cannot be put in the first part of the format (i.e., the{\sffamily NAME NUMBER}); it has to go into the second part, which is why it is specifiedvia \captionstyle{\\} and not \captiondelim{\\}.If a mixture of captioning styles will be used you may want to define a special captioncommand for each non-standard style. For example for the style of the caption inTable 10.3:\newcommand{\mycaption}[2][\@empty]{\captionnamefont{\sffamily\hfill}\captiondelim{\hfill}\captionstyle{\centerlastline\\}186

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

Saved successfully!

Ooh no, something went wrong!