autoref to paragraph will link to section or chapter, but not to the paragraph

Issue #164 invalid
Moritz Klenk (moritzklenk) created an issue

Hi, trying very hard but I cannot find a solution to this problem with classicthesis:

I have this structure:

\section{section 1}
\label{sec:1}

some text

\paragraph{Paragraph 1}
\label{par:1}

some text

\section{Section 2}
\label{sec:2}

some text \footnote{\autoref{par:1}, \nameref{par:1}, \pageref{par:1}}

when using \autoref{par:1} to link to a paragraph it will produce the link to the chapter or section the paragraph is part of, but not the paragraph itself. Link and address in the pdf are the same, namely e.g. "Section 1" (linking to the first page of section 1).

when using \nameref{par:1} it will display the correct name ("Paragraph 1"), but still link to the first page of section 1 of which paragraph 1 is part of.

the same happens when using \pageref{par:1} it will output the correct page number (e.g. "90", the page you find paragraph 1) but still link to the first page of the section the paragraph is part of. Link is, e.g. "90" (linking to page 86, or something).

I had an additional problem with unnumbered sections:

\section*{}

In that case the hyperref skips the unnumbered section completely and links to the first numbered section or chapter, which ever comes first. I solved the problem by

\renewcommand*\thesection{}

however in the first case I don't even understand the problem.

Comments (2)

  1. Log in to comment