Commit fe79a115 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Bug 701949 - Latex: Hyperlinks for \secreflist / \refitem

parent ecaa2e3e
......@@ -1296,15 +1296,25 @@ void LatexDocVisitor::visitPost(DocRef *ref)
}
}
void LatexDocVisitor::visitPre(DocSecRefItem *)
void LatexDocVisitor::visitPre(DocSecRefItem *ref)
{
if (m_hide) return;
m_t << "\\item \\contentsline{section}{";
static bool pdfHyperlinks = Config_getBool("PDF_HYPERLINKS");
if (pdfHyperlinks)
{
m_t << "\\hyperlink{" << ref->file() << "_" << ref->anchor() << "}{" ;
}
}
void LatexDocVisitor::visitPost(DocSecRefItem *ref)
{
if (m_hide) return;
static bool pdfHyperlinks = Config_getBool("PDF_HYPERLINKS");
if (pdfHyperlinks)
{
m_t << "}";
}
m_t << "}{\\ref{" << ref->file() << "_" << ref->anchor() << "}}{}" << endl;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment