summaryrefslogtreecommitdiffstats
path: root/src/latexdocvisitor.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-04-26 13:56:25 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-04-26 13:56:25 (GMT)
commitee1ea269e1c684cf5ff39ed836fd8af288837275 (patch)
tree8f2b01b70c7c158068d770d9117d708306ab37ff /src/latexdocvisitor.cpp
parente75de3722b98115f27483aeacb3b2b1dbe7114a3 (diff)
downloadDoxygen-ee1ea269e1c684cf5ff39ed836fd8af288837275.zip
Doxygen-ee1ea269e1c684cf5ff39ed836fd8af288837275.tar.gz
Doxygen-ee1ea269e1c684cf5ff39ed836fd8af288837275.tar.bz2
Bug 768240 - Make maxLineLen of latex output configurable
Removing the automatic line breaking after 108 characters (also didn't work properly with e.g. executive paper size). Due to new implementation some character encodings had to be changed as well as well as handling of the single quote in formulas.
Diffstat (limited to 'src/latexdocvisitor.cpp')
-rw-r--r--src/latexdocvisitor.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp
index 5a67c15..86ceade 100644
--- a/src/latexdocvisitor.cpp
+++ b/src/latexdocvisitor.cpp
@@ -526,7 +526,19 @@ void LatexDocVisitor::visit(DocIncOperator *op)
void LatexDocVisitor::visit(DocFormula *f)
{
if (m_hide) return;
- m_t << f->text();
+ const char *p=f->text();
+ char c;
+ if (p)
+ {
+ while ((c=*p++))
+ {
+ switch (c)
+ {
+ case '\'': m_t << "\\text{'}"; break;
+ default: m_t << c; break;
+ }
+ }
+ }
}
void LatexDocVisitor::visit(DocIndexEntry *i)
@@ -927,7 +939,7 @@ static void writeStartTableCommand(FTextStream &t,const DocNode *n,int cols)
}
else
{
- t << "\\tabulinesep=1mm\n\\begin{longtabu} spread 0pt [c]{*{" << cols << "}{|X[-1]}|}\n";
+ t << "\\tabulinesep=1mm\n\\begin{longtabu}spread 0pt [c]{*{" << cols << "}{|X[-1]}|}\n";
}
//return isNested ? "TabularNC" : "TabularC";
}