The root of the problem is that hyperref tries to be smart. If no file extension is found, hyperref adds .pdf
, so the link becomes either abc.pdf
or abc/.pdf
depending on whether there is trailing /
in the call.
You can define your own command, say, \HREF
, which simply constructs the link and does not do anything else.
This works for me:
\documentclass{article}
\usepackage{hyperref}
\makeatletter
\newcommand\HREF[2]{\hyper@linkurl{#2}{#1}}
\makeatother
\begin{document}
\HREF{tmp}{open directory \texttt{tmp}}
\end{document}
Note that this works in xpdf
. Acrobat disables such links by security reasons. evince
works with absolute paths (file:///home/boris/scratch
) but balks at relative ones: somehow ../tmp/
works, but ./tmp
does not. I guess this is some bug in evince
.
The main problem in your case is that the current version of magyar.ldf
which is loaded with
\usepackage[hungarian]{babel}
is broken with respect to the interaction with hyperref
.
There is a different version available on TeX Live systems, located in
/usr/local/texlive/2012/texmf-dist/doc/latex/magyar/magyar.ldf
You can copy it in the working directory or in a folder
~/texmf/tex/latex/magyar
(~/Library/texmf/tex/latex/magyar/
with MacTeX on Mac OS X) that you need to create.
Then call babel
as
\def\magyarOptions{suggestions=no}
\usepackage[magyar]{babel}
The first line is just to avoid spurious and almost meaningless messages.
It's not the official version of magyar.ldf
, but it seems to work.
On the other hand, the Polyglossia module for Hungarian seems to work, so you can consider, when using XeLaTeX, to call
\usepackage{polyglossia}
\setmainlanguage{magyar}
Best Answer
The "next action" option can contain an array, the actions in it are then executed in order. Every action dictionary can also contain an /Next key, which means that you can even have a tree of actions. (The specifications says that PDF processors should "attempt to provide reasonable behaviour", which means if you confuse them too much it is your fault ;-)).
An array in PDF is built by using bracket [...]: