diff options
author | albert-github <albert.tests@gmail.com> | 2018-04-09 12:30:49 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-04-09 12:30:49 (GMT) |
commit | 66a728cdcf50baeef45f78a1180c5ce86fe734af (patch) | |
tree | b528a3cee502c5e5a4805a194479f927cc6a8c7f /src/translator.h | |
parent | 7e2fcd305c8c9377aa958a3d812cc31bc81c0e32 (diff) | |
download | Doxygen-66a728cdcf50baeef45f78a1180c5ce86fe734af.zip Doxygen-66a728cdcf50baeef45f78a1180c5ce86fe734af.tar.gz Doxygen-66a728cdcf50baeef45f78a1180c5ce86fe734af.tar.bz2 |
Improvement LaTeX output
For a number of languages the output in LaTeX has been improved so the regular documentation can be generated (automatically) in LaTeX / PDF as well.
Diffstat (limited to 'src/translator.h')
-rw-r--r-- | src/translator.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/translator.h b/src/translator.h index 7092174..0f94ed0 100644 --- a/src/translator.h +++ b/src/translator.h @@ -41,6 +41,36 @@ class Translator virtual QCString idLanguage() = 0; virtual QCString latexLanguageSupportCommand() = 0; + /*! + * Sets the LaTeX font encoding to be used. The default is set to `T1`, + * in case another font encoding has to be used this can be specified with + * this routine. In case no font encoding is required the empty string + * can be returned. + */ + virtual QCString latexFontenc() { return "T1"; }; + /*! + * Sets the commands to be insered directly after the `\\begin{document}` + * in the LaTeX document. + */ + virtual QCString latexDocumentPre() { return ""; }; + /*! + * Sets the commands to be insered directly before the `\\end{document}` + * in the LaTeX document. + */ + virtual QCString latexDocumentPost() { return ""; }; + /*! + * Set the name to be used as latex command. + */ + virtual QCString latexCommandName() + { + QCString latex_command = Config_getString(LATEX_CMD_NAME); + if (latex_command.isEmpty()) latex_command = "latex"; + if (Config_getBool(USE_PDFLATEX)) + { + if (latex_command == "latex") latex_command = "pdflatex"; + } + return latex_command; + } // --- Language translation methods ------------------- |