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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

216 Chapter 9. Document Management<br />

the example above when \label on same page,<br />

the example on the previous page on following page,<br />

the example on page 24 when two of more pages away,<br />

while the \vpageref[above example][example]{f1} outputs one of:<br />

the above example when \label on same page,<br />

the example on the next page on the following page,<br />

the example on page 24 when two of more pages away.<br />

A range of numbers <strong>and</strong> pages can be produced with the comm<strong>and</strong><br />

\vrefrange, which takes two m<strong>and</strong>a<strong>to</strong>ry arguments, both label keys. It<br />

prints text like ‘5 <strong>to</strong> 7 on pages 212–214’, or ‘5 <strong>to</strong> 7 on the next page’, <strong>and</strong><br />

so on. It takes one optional argument, the text <strong>to</strong> print when both labels<br />

are on the current page.<br />

The page part of \vrefrange only is printed with \vpagerefrange,<br />

which also takes two m<strong>and</strong>a<strong>to</strong>ry (label key) arguments <strong>and</strong> one optional<br />

(text) one. If both labels are on the same page, it behaves like \vpageref;<br />

the optional argument is printed if both are on the current page.<br />

Since English text is au<strong>to</strong>matically printed by the above comm<strong>and</strong>s,<br />

they would not be very useful for documents, say, in Italian. The varioref<br />

package therefore accepts all the language options recognized by the<br />

babel system (Chapter 11) <strong>to</strong> reprogram the texts. With the option<br />

italian, one will get texts like in questa pagina for ‘on this page’ <strong>and</strong><br />

nella pagina precedente for ‘on the preceding page’, <strong>and</strong> so on.<br />

All the texts are s<strong>to</strong>red in special comm<strong>and</strong>s which can be redefined<br />

by the user:<br />

\reftextbefore previous but non-facing page<br />

\reftextfacebefore previous but facing page<br />

\reftextafter next but non-facing page<br />

\reftextfaceafter next but facing page<br />

\reftextfaraway{key} more than one page away<br />

\reftextpagerange{key1}{key2} page range of 2 labels<br />

\reftextlabelrange{key1}{key2} range of 2 different labels.<br />

The last three must be redefined with 1 or 2 arguments, as<br />

\renewcomm<strong>and</strong>{\reftextfaraway}[1]{on page \pageref{#1}}<br />

\renewcomm<strong>and</strong>{\reftextpagerange}[2]{on pages \pageref{#1}%<br />

--\pageref{#2}}<br />

\renewcomm<strong>and</strong>{\reftextlabelrange}[2]{\ref{#1} <strong>to</strong> \ref{#2}}<br />

There is also \vreftextvario{text1}{text2} <strong>to</strong> provide altering texts<br />

for the above comm<strong>and</strong>s, so that the same text is not printed every time.<br />

9.3 Bibliographies<br />

Academic publications normally include a list of references, or bibliography,<br />

containing the names of other works that are cited within the text

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

Saved successfully!

Ooh no, something went wrong!