summaryrefslogtreecommitdiffstats
path: root/src/formula.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-05-22 16:45:20 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-05-22 16:45:20 (GMT)
commitf4544b7508bde732dacb1172e8200e88ac07c82b (patch)
tree52baa80d4964f7da9a2d8af06ea8880c5a5763ef /src/formula.cpp
parentf10c9a42cd3b506cb5bb5cf0192c9e221adafa72 (diff)
downloadDoxygen-f4544b7508bde732dacb1172e8200e88ac07c82b.zip
Doxygen-f4544b7508bde732dacb1172e8200e88ac07c82b.tar.gz
Doxygen-f4544b7508bde732dacb1172e8200e88ac07c82b.tar.bz2
Small problems when having code in LaTeX output
- in formulas it is also possible to have special characters - adding special character '-' for U+2212 - making special characters more system independent (plain latex was not handled) and should be independent of hyperlink setting - without hyperlinks the name of normally linked names with underscore kept e.g. their underscores instead of escaping it - be sure that on the end of a code section the previous line is properly 'closed'.
Diffstat (limited to 'src/formula.cpp')
-rw-r--r--src/formula.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/formula.cpp b/src/formula.cpp
index 6fe617d..4644f12 100644
--- a/src/formula.cpp
+++ b/src/formula.cpp
@@ -69,8 +69,10 @@ void FormulaList::generateBitmaps(const char *path)
FTextStream t(&f);
if (Config_getBool(LATEX_BATCHMODE)) t << "\\batchmode" << endl;
t << "\\documentclass{article}" << endl;
+ t << "\\usepackage{ifthen}" << endl;
t << "\\usepackage{epsfig}" << endl; // for those who want to include images
writeExtraLatexPackages(t);
+ writeLatexSpecialFormulaChars(t);
t << "\\pagestyle{empty}" << endl;
t << "\\begin{document}" << endl;
int page=0;