summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2018-05-21 12:23:28 (GMT)
committerGitHub <noreply@github.com>2018-05-21 12:23:28 (GMT)
commit133d4a1dd38a9841ee5294e27326322eecad438b (patch)
treec7239b74b31e61ebdfd816304aa767dae8397944 /src
parente49b463dd3bab1f172a272e3494383194c753938 (diff)
parentabca136aa24db05c5a3bcbac3e4708cb01aac2c2 (diff)
downloadDoxygen-133d4a1dd38a9841ee5294e27326322eecad438b.zip
Doxygen-133d4a1dd38a9841ee5294e27326322eecad438b.tar.gz
Doxygen-133d4a1dd38a9841ee5294e27326322eecad438b.tar.bz2
Merge pull request #727 from albert-github/feature/bug_toc_overlap
Numbers overlap the titles in TOC of PDF
Diffstat (limited to 'src')
-rw-r--r--src/latexgen.cpp3
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"