diff options
author | albert-github <albert.tests@gmail.com> | 2019-08-27 14:55:47 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-08-27 14:55:47 (GMT) |
commit | fd3b60caa8bb99bec81b74d74f394c6043091c76 (patch) | |
tree | 1558814875abeb800fbf4bb92cfa146680460a9a /addon/doxywizard | |
parent | 3d4eb56c5fc8135129e7dd748e2df7a4757195a7 (diff) | |
download | Doxygen-fd3b60caa8bb99bec81b74d74f394c6043091c76.zip Doxygen-fd3b60caa8bb99bec81b74d74f394c6043091c76.tar.gz Doxygen-fd3b60caa8bb99bec81b74d74f394c6043091c76.tar.bz2 |
Create possibility to define LaTeX commands for formulas
To be able to have building bocks for formulas one can create a `\newcommand` (or when one wants to change a command `\renewcommand`).
Due to the different handling of LaTeX commands in pure LaTeX code (latex output and formulas converted to images) and MathJax it is necessary to transform LaTeX commands to the MathJax equivalent.
This is done in a transparent way by providing the new commands in a file and add this verbatim to the pure LaTeX code and to translate the `\newcommand` and `\renewcomamnd` to MathJax macros.
Diffstat (limited to 'addon/doxywizard')
-rw-r--r-- | addon/doxywizard/expert.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addon/doxywizard/expert.cpp b/addon/doxywizard/expert.cpp index 64df27f..1303a22 100644 --- a/addon/doxywizard/expert.cpp +++ b/addon/doxywizard/expert.cpp @@ -398,6 +398,7 @@ static QString getDocsForNode(const QDomElement &child) // Remove / replace doxygen markup strings // the regular expressions are hard to read so the intention will be given + // Note: see also configgen.py in the src directory for other doxygen parts QRegExp regexp; // remove \n at end and replace by a space regexp.setPattern(SA("\\n$")); @@ -432,6 +433,8 @@ static QString getDocsForNode(const QDomElement &child) docs.replace(regexp,SA("\"External Indexing and Searching\"")); regexp.setPattern(SA("\\\\ref[ ]+external")); docs.replace(regexp,SA("\"Linking to external documentation\"")); + regexp.setPattern(SA("\\\\ref[ ]+formulas")); + docs.replace(regexp,SA("\"Including formulas\"")); // fallback for not handled docs.replace(SA("\\\\ref"),SA("")); // \b word -> <b>word<\b> |