Skip to content

Commit

Permalink
Doxygen LaTeX / PDF links point to page 1
Browse files Browse the repository at this point in the history
Based in the message:
http://stackoverflow.com/questions/29551138/doxygen-latex-pdf-links-point-to-page-1

In case the CREATE_SUDIRS is set to YES the name of the link was pre=pended with the *sub dir) path, this has been removed.
  • Loading branch information
albert-github committed Apr 11, 2015
1 parent 298ab30 commit e34913d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/latexgen.cpp
Expand Up @@ -1444,18 +1444,18 @@ void LatexGenerator::endDoxyAnchor(const char *fName,const char *anchor)
void LatexGenerator::writeAnchor(const char *fName,const char *name)
{
//printf("LatexGenerator::writeAnchor(%s,%s)\n",fName,name);
t << "\\label{" << name << "}" << endl;
t << "\\label{" << stripPath(name) << "}" << endl;
static bool pdfHyperlinks = Config_getBool("PDF_HYPERLINKS");
static bool usePDFLatex = Config_getBool("USE_PDFLATEX");
if (usePDFLatex && pdfHyperlinks)
{
if (fName)
{
t << "\\hypertarget{" << stripPath(fName) << "_" << name << "}{}" << endl;
t << "\\hypertarget{" << stripPath(fName) << "_" << stripPath(name) << "}{}" << endl;
}
else
{
t << "\\hypertarget{" << name << "}{}" << endl;
t << "\\hypertarget{" << stripPath(name) << "}{}" << endl;
}
}
}
Expand Down

0 comments on commit e34913d

Please sign in to comment.