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.

342 Chapter 15. Presentation Material<br />

\urlid{url}<br />

<strong>to</strong> set the web address (URL) of the home page but<strong>to</strong>n in the<br />

navigation panel;<br />

\screensize{height}{width}<br />

<strong>to</strong> set the dimensions of the screen; since there are no defaults,<br />

this must be given;<br />

\margins{left}{right}{<strong>to</strong>p}{bot<strong>to</strong>m}<br />

<strong>to</strong> set the margins for the document; again there are no defaults,<br />

so this must be given.<br />

The navigation panel<br />

The navigation panel appears on each page <strong>and</strong> contains the but<strong>to</strong>ns for<br />

changing pages <strong>and</strong> linking <strong>to</strong> the author’s home page. A default panel is<br />

provided, but the user may redesign it as he or she pleases, by redefining<br />

the \panel comm<strong>and</strong>. For example,<br />

\renewcomm<strong>and</strong>{\panel}{\colorbox{panelbackground}<br />

{\begin{minipage}[t][\paperheight][b]{\panelwidth}<br />

. . . . .<br />

\Acrobatmenu{FirstPage}<br />

{\addBut<strong>to</strong>n{.2in}{$\blacktriangleleft$}}<br />

. . . . .<br />

\end{minipage}}}<br />

Here the \Acrobatmenu comm<strong>and</strong> is from the hyperref package (see<br />

page 247) while \panelwidth <strong>and</strong> \addBut<strong>to</strong>n are from pdfscreen. The<br />

\panelwidth length is by default 15% of the screen width, <strong>and</strong> can be<br />

redefined. The \addBut<strong>to</strong>n{wth}{text} creates a but<strong>to</strong>n of width wth<br />

containing text. In the above example, clicking the but<strong>to</strong>n executes the<br />

viewer comm<strong>and</strong> <strong>to</strong> go <strong>to</strong> the first page.<br />

There is also a comm<strong>and</strong><br />

\imageBut<strong>to</strong>n{wth}{ht}{image}<br />

<strong>to</strong> insert the graphics file image as a but<strong>to</strong>n of width wth <strong>and</strong> height ht.<br />

A row of small navigation but<strong>to</strong>ns can be turned on at the bot<strong>to</strong>m of<br />

the page with \bot<strong>to</strong>mbut<strong>to</strong>ns <strong>and</strong> turned off with \nobot<strong>to</strong>mbut<strong>to</strong>ns.<br />

Background image<br />

A graphics file can be inserted as background for the whole page with<br />

\overlay{image}, or a uniform background color can be selected with<br />

\backgroundcolor{color}.<br />

The navigation panel has as background that color previously defined<br />

as panelbackground, which the user may alter. Otherwise, the graphics

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

Saved successfully!

Ooh no, something went wrong!