diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-03-28 12:39:53 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-03-28 12:39:53 (GMT) |
commit | a7c7f36ea2a67969bf3916c7600fe487e34438c0 (patch) | |
tree | 81d08b5f8033b386081ad6559f0f9aa49606f5dc /src/latexdocvisitor.cpp | |
parent | 7e719d1ad5da33ccb3f54a90ae11dee58828b6ab (diff) | |
download | Doxygen-a7c7f36ea2a67969bf3916c7600fe487e34438c0.zip Doxygen-a7c7f36ea2a67969bf3916c7600fe487e34438c0.tar.gz Doxygen-a7c7f36ea2a67969bf3916c7600fe487e34438c0.tar.bz2 |
Improve rendering of sub and superscripts in LaTeX
Diffstat (limited to 'src/latexdocvisitor.cpp')
-rw-r--r-- | src/latexdocvisitor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp index 1be39c4..7b0420a 100644 --- a/src/latexdocvisitor.cpp +++ b/src/latexdocvisitor.cpp @@ -199,10 +199,10 @@ void LatexDocVisitor::visit(DocStyleChange *s) if (s->enable()) m_t << "{\\ttfamily "; else m_t << "}"; break; case DocStyleChange::Subscript: - if (s->enable()) m_t << "$_{\\mbox{"; else m_t << "}}$ "; + if (s->enable()) m_t << "\\textsubscript{"; else m_t << "}"; break; case DocStyleChange::Superscript: - if (s->enable()) m_t << "$^{\\mbox{"; else m_t << "}}$ "; + if (s->enable()) m_t << "\\textsuperscript{"; else m_t << "}"; break; case DocStyleChange::Center: if (s->enable()) m_t << "\\begin{center}"; else m_t << "\\end{center} "; |