summaryrefslogtreecommitdiffstats
path: root/src/latexgen.cpp
diff options
context:
space:
mode:
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 7d72974..6cb5d1b 100644
--- a/src/latexgen.cpp
+++ b/src/latexgen.cpp
@@ -628,9 +628,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);