From 6c4cd16b98e6d3abb6923b7bba0d87445cc891bf Mon Sep 17 00:00:00 2001 From: albert-github Date: Sat, 24 Aug 2019 18:21:18 +0200 Subject: 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 $ ? ``` --- src/latexdocvisitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v0.12