According to the Evince help, one can open a PDF at the location of a "named destination":
SYNTAX
evince [--help] [--page-label=PAGE | --page-index=NUM‐
BER | --named-dest=DEST] [--fullscreen] [--presentation]
[--preview] [--find=STRING] [filename(s)...]
...
-n, --named-dest=DEST
Open the document on the specified named destina‐
tion.
In Acrobat (acroread
) the corresponding command is (documentation)
acroread /a "nameddest=pos2" hyperref.pdf
How can I generate such named destinations in a PDF from LaTeX?
In the past, (mainly for Acrobat) I used the zref-savepos
package to open the document at a desired location (set at compilation). This doesn't seem to work well with Evince.
The question is not so much about Evince but what is that Evince calls "named destination" and how to produce them.
Below it is a series of attempts I made. When running Evince I get the following messages:
$ evince hyperref.pdf -n pos3 #or pos2
failed to look up pos3
failed to look up pos3
MWE
\documentclass[]{article}
\usepackage{hyperref}
\hypersetup{pdfstartview=FitBH \hypercalcbp{\zposy{pos2}sp}} %open at pos2 (works only in Acrobat)
\usepackage{bookmark}
\usepackage{zref-savepos}
\begin{document}
\zsavepos{pos1}
Bla
\zsavepos{pos2}
Ble
\belowpdfbookmark{Pos3}{pos3}
Bli
\end{document}