summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-01-05 12:08:19 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-01-05 12:08:19 (GMT)
commitdbddf36cd10c3e6cd9419a08d688f8cbfd57f9c3 (patch)
treee748249439bda30972881f9ee62f00f680446278
parent5d66d2ea14a173edb3d6b7ffaabd0196392fcb0f (diff)
downloadDoxygen-dbddf36cd10c3e6cd9419a08d688f8cbfd57f9c3.zip
Doxygen-dbddf36cd10c3e6cd9419a08d688f8cbfd57f9c3.tar.gz
Doxygen-dbddf36cd10c3e6cd9419a08d688f8cbfd57f9c3.tar.bz2
Implementing `<hr>` for LaTeX
In LaTeX the `<hr>` was implemented as a"new paragraph", now as a horizontal line.
-rw-r--r--src/latexdocvisitor.cpp2
-rw-r--r--templates/latex/doxygen.sty4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp
index 5be3fc9..98324e3 100644
--- a/src/latexdocvisitor.cpp
+++ b/src/latexdocvisitor.cpp
@@ -280,7 +280,7 @@ void LatexDocVisitor::visit(DocLineBreak *)
void LatexDocVisitor::visit(DocHorRuler *)
{
if (m_hide) return;
- m_t << "\n\n";
+ m_t << "\\DoxyHorRuler\n";
}
void LatexDocVisitor::visit(DocStyleChange *s)
diff --git a/templates/latex/doxygen.sty b/templates/latex/doxygen.sty
index cf92712..e696837 100644
--- a/templates/latex/doxygen.sty
+++ b/templates/latex/doxygen.sty
@@ -35,6 +35,10 @@
\endgroup%
}
+\newcommand{\DoxyHorRuler}{%
+ \setlength{\parskip}{0ex plus 0ex minus 0ex}%
+ \hrule%
+}
\newcommand{\DoxyLabelFont}{}
\newcommand{\entrylabel}[1]{%
{%