summaryrefslogtreecommitdiffstats
path: root/src/latexdocvisitor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/latexdocvisitor.cpp')
-rw-r--r--src/latexdocvisitor.cpp23
1 files changed, 19 insertions, 4 deletions
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp
index a1baa95..15bc429 100644
--- a/src/latexdocvisitor.cpp
+++ b/src/latexdocvisitor.cpp
@@ -270,20 +270,35 @@ void LatexDocVisitor::visit(DocStyleChange *s)
void LatexDocVisitor::visit(DocVerbatim *s)
{
+ static bool latexSourceCode = Config_getBool("LATEX_SOURCE_CODE");
if (m_hide) return;
switch(s->type())
{
case DocVerbatim::Code:
- m_t << "\n\n\\begin{Code}\\begin{verbatim}";
+ if (latexSourceCode)
+ {
+ m_t << "\n\n\\begin{footnotesize}\\begin{alltt}" << endl;
+ }
+ else
+ {
+ m_t << "\n\n\\begin{Code}\\begin{verbatim}";
+ }
Doxygen::parserManager->getParser(m_langExt)
->parseCode(m_ci,s->context(),s->text().latin1(),
s->isExample(),s->exampleFile());
- m_t << "\\end{verbatim}\n\\end{Code}\n" << endl;
+ if (latexSourceCode)
+ {
+ m_t << "\\end{alltt}\\end{footnotesize}" << endl;
+ }
+ else
+ {
+ m_t << "\\end{verbatim}\n\\end{Code}\n" << endl;
+ }
break;
case DocVerbatim::Verbatim:
- m_t << "\n\n\\footnotesize\\begin{verbatim}";
+ m_t << "\n\n\\begin{footnotesize}\\begin{verbatim}";
m_t << s->text();
- m_t << "\\end{verbatim}\n\\normalsize" << endl;
+ m_t << "\\end{verbatim}\n\\end{footnotesize}" << endl;
break;
case DocVerbatim::HtmlOnly:
case DocVerbatim::XmlOnly: