summaryrefslogtreecommitdiffstats
path: root/src/latexgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2018-07-23 13:27:44 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2018-07-23 13:27:44 (GMT)
commitfd851668bb00f0a36ccb1a7dbd83b3286aed30c1 (patch)
tree327881e60179eaec074017c00141a95961be59d5 /src/latexgen.cpp
parentae25f5c41545e17b37d67ab7dabf422f0eb757aa (diff)
parent9b52da49cb544fb0a676e9d12fdbafaf0c1db8cb (diff)
downloadDoxygen-fd851668bb00f0a36ccb1a7dbd83b3286aed30c1.zip
Doxygen-fd851668bb00f0a36ccb1a7dbd83b3286aed30c1.tar.gz
Doxygen-fd851668bb00f0a36ccb1a7dbd83b3286aed30c1.tar.bz2
Merge branch 'feature/bug_latex_index' of https://github.com/albert-github/doxygen into albert-github-feature/bug_latex_index
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r--src/latexgen.cpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
index 0e52914..474d368 100644
--- a/src/latexgen.cpp
+++ b/src/latexgen.cpp
@@ -647,9 +647,21 @@ static void writeDefaultHeaderPart1(FTextStream &t)
"\\usepackage{natbib}\n"
"\\usepackage[titles]{tocloft}\n"
"\\setcounter{tocdepth}{3}\n"
- "\\setcounter{secnumdepth}{5}\n"
- "\\makeindex\n"
- "\n";
+ "\\setcounter{secnumdepth}{5}\n";
+
+ QCString latex_mkidx_command = Config_getString(LATEX_MAKEINDEX_CMD);
+ if (!latex_mkidx_command.isEmpty())
+ {
+ if (latex_mkidx_command[0] == '\\')
+ t << latex_mkidx_command << "\n";
+ else
+ t << '\\' << latex_mkidx_command << "\n";
+ }
+ else
+ {
+ t << "\\makeindex\n";
+ }
+ t << "\n";
writeExtraLatexPackages(t);
writeLatexSpecialFormulaChars(t);