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.

8.6. ListsTypeset example 8.7: Changing space before and after listsThis example shows that the space around theCENTER AND OTHER LIST ENVIRONMENTScan be minimised by using the\zerotrivseps declaration.<strong>The</strong> normal spacing can be restored by using the\restoretrivseps command.An alternative is to use the \centering macro.tical space before and after a trivlist (or any list based on it) is set by \topsep and\partopsep, as shown in Figure 8.2.\zerotrivseps \savetrivseps \restoretrivseps<strong>The</strong> center environment is one of several that is based on a trivlist, and so has spacebefore and after it. If you don’t want this the \zerotrivseps declaration eliminates thosespaces. You can think of it as being defined as:\newcommand*{\zerotrivseps}{%\setlength{\topsep}{0pt}%\setlength{\partopsep}{0pt}}Before doing this, though, you might consider calling \savetrivseps which stores thecurrent values of \topsep and \partopsep; it is initially defined to store the default values.<strong>The</strong> command \restoretrivseps sets the current values of these lengths to the onessaved by \savetrivseps.Source for example 8.7This example shows that the space around the\begin{center}CENTER AND OTHER LIST ENVIRONMENTS\end{center}can be minimised by using the \zerotrivseps\begin{center}\verb?\zerotrivseps? declaration.\end{center}<strong>The</strong> normal spacing can be restored by using the \restoretrivseps\begin{center}\verb?\restoretrivseps? command.\end{center}An alternative is to use the \verb?\centering? macro.139

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

Saved successfully!

Ooh no, something went wrong!