summaryrefslogtreecommitdiffstats
path: root/src/latexgen.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-05-08 18:23:58 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-05-08 18:23:58 (GMT)
commit9b52da49cb544fb0a676e9d12fdbafaf0c1db8cb (patch)
tree8cc16bf4898ede8d13df368cd74927fd39f61ad8 /src/latexgen.cpp
parentc78c338fffbdbb9b2379b1896e647f7cc697da57 (diff)
downloadDoxygen-9b52da49cb544fb0a676e9d12fdbafaf0c1db8cb.zip
Doxygen-9b52da49cb544fb0a676e9d12fdbafaf0c1db8cb.tar.gz
Doxygen-9b52da49cb544fb0a676e9d12fdbafaf0c1db8cb.tar.bz2
Making the 'tex' part of \makeindex available to the user
In case we need to use another 'makeindex' command in the Makefile / make.bat we can use the configuration tag MAKEINDEX_CMD_NAME When we want to have another index we can use e.g. EXTRA_PACKAGES = [nottoc]tocbibind but in those cases the \makeindex command is still the same but should be \makeindex[intoc]. By means of the new configuration tag LATEX_MAKEINDEX_CMD this discrepancy has been solved. Due to the default value some small changes in the configuration parser were necessary as well. (based on the stack question https://stackoverflow.com/questions/44394311/add-index-to-toc-with-doxygen).
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);