|
|
|||
![]() |
Department of Engineering |
| University of Cambridge > Engineering Department > computing help > LaTeX |
A word of warning: Acrobat5 is more fussy than earlier versions. The PDF produced by the above methods should be viewable whatever version of Acrobat reader you use, but it might only print out with Acrobat4.
dvipdfm (installed on the teaching System) produces a PDF file from a DVI file.
\documentclass[pdftex]{article}
\usepackage[dvips]{graphicx}
\usepackage[usenames,dvipsnames]{color}
\usepackage[pdftex]{hyperref}
and then type pdflatex file.tex ; pdflatex file.tex to
produce file.pdf
To use dvipdfm begin your document
with
\documentclass[dvipdfm]{article}
\usepackage[dvips]{graphicx}
\usepackage[usenames,dvipsnames]{color}
\usepackage[dvipdfm]{hyperref}
and then type latex file.tex ; latex file.tex ; dvipdfm file.dvi.
To control the information that appears when acroread's "Document Information" option is run, you can use something like "\pdfinfo{/Title (Using pdfLaTeX) /Author (Tim Love)}". To create links use "\href{URL}{text}".
The Introduction for New Users document is an example of a PDF document produced from LaTeX. CUED users can try the examples in /export/Examples/LaTeX/hyperref/ on the Teaching System.
When you install the PDF file on the WWW it's a good idea to give readers
a way to download a PDF reader. The following HTML fragment creates a link
like this
to the appropriate page.
<a href="http://www.adobe.com/prodindex/acrobat/readstep.html"
target="_blank"><img src="http://www.adobe.com/images/getacro.gif"
width=88 height=31 border=0 alt="ACROBAT READER"></a>
The locally installed quickrep package by Paul Walmsley facilitates report production with postscript or PDF output.
\ref{my:label} by substituting
only the section number, subsection number, figure number, or
whatever, where \label{my:label} was declared. It
typesets \pageref{my:label} by substituting only
the page number where \label{my:label} was declared. [...]
While this makes perfect sense in a printed document, it tends to result
in rather ugly online hyperlinks. I vastly prefer the appearance, both online and when printed that is
achieved by using the nameref package and a macro such
as
\newcommand{\myref}[1]{`\nameref{#1}' (see p.\pageref{#1})}
which when applied as follows:
\section{Random Stuff}\label{randomlabel}
This is very dependent on \myref{randomlabel}.
results in something along the lines of
2.4 Random Stuff
This is very dependent on `Random Stuff' (see p.35)"

| | Producing PDF | LaTeX | computing help | |