diff options
author | albert-github <albert.tests@gmail.com> | 2018-05-16 13:03:14 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-05-16 13:03:14 (GMT) |
commit | abca136aa24db05c5a3bcbac3e4708cb01aac2c2 (patch) | |
tree | 33a6521774fffff2d90cfd18189d622f47f81e10 /src/latexgen.cpp | |
parent | df0d9c3df44dbce633c38e99d33be4de06706f7b (diff) | |
download | Doxygen-abca136aa24db05c5a3bcbac3e4708cb01aac2c2.zip Doxygen-abca136aa24db05c5a3bcbac3e4708cb01aac2c2.tar.gz Doxygen-abca136aa24db05c5a3bcbac3e4708cb01aac2c2.tar.bz2 |
Numbers overlap the titles in TOC of PDF
With a lot of paragraphs / nesting levels in the TOC it happens that the paragraph number flows into paragraph title in the toc, this patch overcomes this problem.
See also https://en.wikibooks.org/wiki/LaTeX/Tables_of_Contents_and_Lists_of_Figures#Numbers_overlap_the_titles
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r-- | src/latexgen.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp index 7d72974..00826e6 100644 --- a/src/latexgen.cpp +++ b/src/latexgen.cpp @@ -694,6 +694,9 @@ static void writeDefaultHeaderPart1(FTextStream &t) t << "\\usepackage{caption}\n" << "\\captionsetup{labelsep=space,justification=centering,font={bf},singlelinecheck=off,skip=4pt,position=top}\n\n"; + // prevent numbers overlap the titles in toc + t << "\\renewcommand{\\numberline}[1]{#1~}\n"; + // End of preamble, now comes the document contents t << "%===== C O N T E N T S =====\n" "\n" |