[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#835162: How to link to an external URL with # (hash) sign?



forward 835162 https://github.com/ho-tex/hyperref/issues/20
thanks

Hi Mathieu,

> Here is my attempt to minimize the issue (extracted from src:gdcm

Well, not really minimal, here is a really minimal one:

\documentclass{article}
\usepackage{hyperref}
\begin{document}

\contentsline{section}{note: \href{http://a.b.c/d#EEE}{link} }{}{}

\end{document}

Did this *ever* work before, or did doxygen introduce something
new here and started to insert href entries in contentlines?

The problem is nameref.sty that is loaded and tries to link
names of section. The inclusion of a \href in a 
\contentsline looks problematic, thus.

TOC entries are already links to the respective sections in the
document. Now if you add a "link within the link" this will not
work, and can anyway not reasonably work.

I still stand by that this is a bug in doxygen, it should not
include href stuff in the contentsline code.

Anyway, I have opened an issue at the hyperref github page, 
see above BTS code.

All the best

Norbert

--
PREINING Norbert + TeX Live & Debian Developer + http://www.preining.info
GPG: 0x860CDC13    fp: F7D8 A928 26E3 16A1 9FA0  ACF0 6CAC A448 860C DC13


Reply to: