Вы находитесь на странице: 1из 9

PDF ,

LATEX 2

\label
2.1
2.2 . . . . . . . . . . . . .
2.3
2.4 . . . . .

.
.
.
.

2
2
3
3
4

\hypertarget
3.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5
5
5

\hyperdef

9.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

7
8

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

LATEX PDF :
pdflatex, H`an The Th`anh,
latex, DVI PDF. , , dvips dvi- ps-, pdf-,
Adobe Distiller ps2pdf.bat GhostScript 5.21 ( GSview
pdfwrite , Convert
File).
hyperref (bookmarks),
pdf- Acrobat Reader.

c 2002 . : syutkin@ns.kinetics.nsc.ru

. \usepackage
:
\usepackage[ ]{hyperref}

\hypersetup{ }
.
=
true . [1, 2].
hyperref , LATEX. , , ,
, hyperref.
. PDF pdflatex,
pdftex. dvips dvips. : hypertex,
dviwindo, dvipsone, vtex latex2html.
hyperref LATEX
. , . ,
( hyperindex
; , false).

2
2.1

\label

LATEX .
\label{name}
name. aux- (, , ..) ,
\label.
\ref{name}

\pageref{name}

, name,
name.
hyperref LATEX , , \ref \pageref , ,
\label, , . \label{sec:bookmarks},
7- :
9 . 7.

~\ref{sec:bookmarks}
.~\pageref{sec:bookmarks}.

LATEX , , hyperref
*- \ref \pageref:
\ref*{name}

\pageref*{name}

:
9 . 7.

~\ref*{sec:bookmarks}
.~\pageref*{sec:bookmarks}.

2.2


. hyperref 1
\hyperref[name]{text}
name text. :
9 . . .

\hyperref[sec:bookmarks]{%
~\ref*{sec:bookmarks}} \dots

, hyperref
\autoref{name}
name
, . , ,
:
In section 9 . . .

In \autoref{sec:bookmarks} \dots

\autoref . ,
, .
, . ,
. dtx- hyperref. ,
\sectionautorefname:
\renewcommand{\sectionautorefname}{}

(. 9)

2.3

(.~\autoref{sec:bookmarks})

, , . ,
, . nameref ( hyperref)

\nameref{name}
name , .
:
. . .

\nameref{sec:bookmarks} \dots

,
\nameref.
,
nameref
\Nameref{name}
name , , , .
:
on page 7 . . .

\Nameref{sec:bookmarks} \dots

\Nameref , ,
1

\hyperref 4.

\renewcommand{\Nameref}[1]{<<\nameref{#1}>> .~\pageref{#1}}

. 7 . . .

\Nameref{sec:bookmarks} \dots

, \nameref \Nameref,
,
\begin{NoHyper} . . . \end{NoHyper}
hyperref. :
. . .

\begin{NoHyper}
\nameref{sec:bookmarks}
\end{NoHyper} \dots

\Nameref, \pageref, , , . varioref tools \vpageref.


, , , . , on the next page,
.
, \vpageref on page \pageref. varioref : russian,
.
nameref
\vnameref{name}
\nameref, \vpageref
, name. :
. 7 . . .

2.4

\vnameref{sec:bookmarks} \dots

xr-hyper xr tools.
hyperref. ,
hyperref \label. aux-

\externaldocument[prefix-]{file}[URL]
file . prefix
.
, \label{name}, \ref{prefix-name}. URL
.
. targets.pdf ,
targets.tex \label{fig:Sqr},

\externaldocument{targets}[targets.pdf]
targets.pdf:
Figure 1 shows . . .

\autoref{fig:Sqr} shows \dots

\hypertarget

\hypertarget{name}{text}
name . text .
.

3.1

name, \hypertarget,
\hyperlink{name}{text}
text .
pdf:
\LaTeX PDF \hypertarget{pdf}{} ...
:
PDF,
.

3.2

PDF,
\hyperlink{pdf}{}.

name, \hypertarget ,
\href{URL}{text}
URL , , text .
, targets.pdf targets.tex
\hypertarget{Debate}{}.
targets.pdf:

.


\href{targets.pdf#Debate}{}.

\hyperdef

\hypertarget,
\hyperdef{category}{name}{text}
category.name . text .

\hyperref{URL}{category}{name}{text}
URL ( ), text .
URL#category.name.
. targets.pdf targets.tex
\hyperdef{figure}{Sqr}{}.
targets.pdf:
. . .

\hyperref{targets.pdf}{figure}{Sqr}{%
} \dots

\href{URL}{text}
, URL. text
. :
TEX User Group

\href{http://www.tug.org/}%
{\TeX\ User Group}

\href{mailto:tug@mail.tug.org}%
{ }
URL , ,

\hyperbaseurl{URL}
baseurl hyperref.
\href
\url{URL}
URL . :
http://www.tug.org/
tug@mail.tug.org

\url{http://www.tug.org/}
\url{tug@mail.tug.org}

. ,
, colorlinks (
false). :
linkcolor ; red.
pagecolor ; red.
filecolor , ; cyan.
citecolor ; green.
urlcolor URL; magenta.
anchorcolor ; black.
color
, \definecolor . :
\usepackage{color}
\definecolor{darkgreen}{rgb}{0,.5,0}
\usepackage[colorlinks,filecolor=blue,citecolor=darkgreen]{hyperref}

hyperref backref, :
, .
, pagebackref ( false).
backref ( false)
6

, ,
\par.
:
hyperref PDF [2].

hyperref PDF
~\cite{Rahtz}.

,
. , backref
hyperref.

\href, run, PDF 2 .


, .jpg ACDSee,
\href{run:d:/Images/lamp.jpg}{ }
ACDSee3 lamp.jpg d:/Images.
,
. ,
\href{run:c:/Program Files/Paint Shop Pro/psp.exe#d:/Images/lamp.jpg}%
{ }
Paint Shop Pro lamp.jpg
d:/Images.
Windows , , . ,
\href{run:Winword.exe#readme.txt}{ !}
MS Word readme.txt ,
PDF .

9
, , ( bookmarks ; ,
false).
unicode ( false):
\usepackage[unicode]{hyperref}
unicode, .
,
\addcontentsline. . , LATEX , \addcontentsline.
, , , . .
, \addcontentsline
.
2

( \href) !
Acrobar Reader
.
3

LATEX ,
, .
, TEX , Acrobat Reader
TEX .
\texorpdfstring{TeX string}{PDF string}
\texorpdfstring TEX , . :
\section{\texorpdfstring{$\alpha$}{} }
PDF string , PD1.
PDFDocEncoding,
Acrobat Reader. pd1enc.def,
hyperref, testbmgl.pdf .

\pdfbookmark[level]{bookmark text}{anchor name}
level , . \section 1, \subsection 2 .. book
report \part 1, \chapter 0. article,
\chapter, 0 \part.
[3].

9.1

bookmarks unicode, Acrobat Reader


.
bookmarksnumbered ; false.
bookmarksopen ; false.
bookmarksopenlevel , ;
.
bookmarkstype , ; toc.
pdfpagemode Acrobat Reader . :
None ( bookmarks thumbnails), UseOutlines ( bookmarks), UseThumbs ( thumbnails),
FullScreen ( ); None.


[1] Sebastian Rahtz, hyperrref package options,
texmf/doc/latex/hyperref/options.tex 2
[2] Sebastian Rahtz, Hypertext marks in LATEX: the hyperref package,
texmf/doc/latex/hyperref/manual.pdf 2, 7
[3] Heiko Oberdiek, PDF information and navigation elements with hyperref, pdf TEX, and thumbpdf,
texmf/doc/latex/hyperref/paper.pdf 8


a
\autoref . . . . . . . . . . . . . . . . . . . . . 3

u
\url . . . . . . . . . . . . . . . . . . . . . . . . . 6

e
\externaldocument . . . . . . . . . . . . 4

v
\vnameref . . . . . . . . . . . . . . . . . . . . 4

\href . . . . . . . .
\hyperbaseurl
\hyperdef . . . .
\hyperlink . . .
\hyperref . . . .
\hypersetup . .
\hypertarget .

.
.
.
.
.
.
.

h
..
..
..
..
..
..
..

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

anchorcolor . . . . . . .
backref . . . . . . . . . . .
baseurl . . . . . . . . . . .
bookmarks . . . . . . . . .
bookmarksnumbered .
bookmarksopen . . . . .
bookmarksopenlevel
bookmarkstype . . . . .
citecolor . . . . . . . . .
colorlinks . . . . . . . .
dvips . . . . . . . . . . . . .
dvipsone . . . . . . . . . .
dviwindo . . . . . . . . . .
filecolor . . . . . . . . .
hyperindex . . . . . . . .
hypertex . . . . . . . . . .
latex2html . . . . . . . .
linkcolor . . . . . . . . .
pagebackref . . . . . . .
pagecolor . . . . . . . . .
pdfpagemode . . . . . . .
pdftex . . . . . . . . . . . .
unicode . . . . . . . . . . .
urlcolor . . . . . . . . . .
vtex . . . . . . . . . . . . . .

5, 6
.. 6
.. 5
.. 5
3, 5
.. 2
.. 5

l
\label . . . . . . . . . . . . . . . . . . . . . . . 2
n
\Nameref . . . . . . . . . . . . . . . . . . . . . 3
\nameref . . . . . . . . . . . . . . . . . . . . . 3
NoHyper . . . . . . . . . . . . . . . . . . . . . 4
p
\pageref . . . . . . . . . . . . . . . . . . . . . 2
\pageref* . . . . . . . . . . . . . . . . . . . . 2
\pdfbookmark . . . . . . . . . . . . . . . . . 8
r
\ref . . . . . . . . . . . . . . . . . . . . . . . . . 2
\ref* . . . . . . . . . . . . . . . . . . . . . . . . 2
t
\texorpdfstring . . . . . . . . . . . . . . 8

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

6
6
6
7
8
8
8
8
6
6
2
2
2
6
2
2
2
6
6
6
8
2
7
6
2

Вам также может понравиться