28.03.2013 Views

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

4.4. Generalized lists 77<br />

normally set <strong>to</strong> 0 pt so that no indentation occurs. This can only<br />

be changed in list decl.<br />

\labelwidth<br />

is the width of the box reserved for the label. The text of the<br />

label is printed right justified within this space. A new default<br />

value may be set globally which then applies <strong>to</strong> all list levels.<br />

\labelsep<br />

is the spacing between the label box <strong>and</strong> the list text. A new value<br />

may be assigned globally, but it is only effective at the first level.<br />

\itemindent<br />

is the distance by which the label <strong>and</strong> the first line of text in an<br />

\item are indented <strong>to</strong> the right. It is normally set <strong>to</strong> 0 pt <strong>and</strong> so<br />

has no effect. This value can only be redefined in list decl.<br />

When changing the vertical spacings from their st<strong>and</strong>ard values, it is<br />

recommended that a rubber length (Section 2.4.2) be used.<br />

The label created by the \item comm<strong>and</strong> normally appears right justified<br />

within a box of width \labelwidth. It is possible <strong>to</strong> make it left<br />

justified, as in the following list of parameters, by putting \hfill at the<br />

end of the definition of the st<strong>and</strong>ard label or in the \makelabel comm<strong>and</strong>.<br />

4.4.3 Example of a user’s list<br />

List of Figures:<br />

Figure 1: Page format with head, body, <strong>and</strong> foot, showing the<br />

meaning of the various elements involved.<br />

Figure 2: Format of a general list showing its elements.<br />

Figure 3: A demonstration of some of the possibilities for<br />

drawing pictures with L AT E X.<br />

This list was produced with the following input:<br />

\newcounter{fig}<br />

\begin{list}{\bfseries\upshape Figure \arabic{fig}:}<br />

{\usecounter{fig}<br />

\setlength{\labelwidth}{2cm}\setlength{\leftmargin}{2.6cm}<br />

\setlength{\labelsep}{0.5cm}\setlength{\rightmargin}{1cm}<br />

\setlength{\parsep}{0.5ex plus0.2ex minus0.1ex}<br />

\setlength{\itemsep}{0ex plus0.2ex} \slshape}<br />

\item Page format with head, body, <strong>and</strong> foot, showing the<br />

meaning of the various elements involved.<br />

\item Format of a general list showing its elements.<br />

\item A demonstration of some of the possibilities for<br />

drawing pictures with \<strong>LaTeX</strong>.<br />

\end{list}

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

Saved successfully!

Ooh no, something went wrong!