diff options
author | albert-github <albert.tests@gmail.com> | 2019-08-24 16:21:18 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-08-24 16:21:18 (GMT) |
commit | 6c4cd16b98e6d3abb6923b7bba0d87445cc891bf (patch) | |
tree | 9a5a1025f09eb04745fa1c53c732c295f3e10757 | |
parent | 5213707f485360bd9145beebe2fab250ca133a02 (diff) | |
download | Doxygen-6c4cd16b98e6d3abb6923b7bba0d87445cc891bf.zip Doxygen-6c4cd16b98e6d3abb6923b7bba0d87445cc891bf.tar.gz Doxygen-6c4cd16b98e6d3abb6923b7bba0d87445cc891bf.tar.bz2 |
Error in LaTeX with single quote in formula / math mode.
When having a text like:
```
\f$ text t' text \f$
```
and conversion this to a pdf (latex directory) we get the error:
```
! Undefined control sequence.
l.3 $ text t\text
{'} text $
?
```
-rw-r--r-- | src/latexdocvisitor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp index a0bbf73..ab03f32 100644 --- a/src/latexdocvisitor.cpp +++ b/src/latexdocvisitor.cpp @@ -621,7 +621,7 @@ void LatexDocVisitor::visit(DocFormula *f) { switch (c) { - case '\'': m_t << "\\text{'}"; break; + case '\'': m_t << "\\textnormal{\\textquotesingle}"; break; default: m_t << c; break; } } |