I try to link to my local html-files with \href
from hyperref
package.
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\href{run:relative_path/filename.html#anchor}{test}
\end{document}
It also works quite well only for the file itself. The anchor is cut off from the link in several pdf viewers such as Evince and Okular.
Interestingly, substituting run:
by http://
\href{http://relative_path/filename.html#anchor}{hhh}
offers the anchor in Evince's and Okular's views.
Is there any way to get the run:
to also provide the anchor?
#
and hyperref removes it, with run the pdfviewer has to pass a local filename to the application, and#
isn't [art of a filename, so I suspect this is by design – David Carlisle Jan 23 '20 at 13:26