summaryrefslogtreecommitdiffstats
path: root/src/latexdocvisitor.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2006-02-27 20:11:09 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2006-02-27 20:11:09 (GMT)
commit0a773cb15d41e5806b799cd24c076c60b734615c (patch)
tree5e27018c48206637a831c02760f69c7df275f1c9 /src/latexdocvisitor.cpp
parenta9a600c4692a1d0b0a6a09362db1d6da8bda9a30 (diff)
downloadDoxygen-0a773cb15d41e5806b799cd24c076c60b734615c.zip
Doxygen-0a773cb15d41e5806b799cd24c076c60b734615c.tar.gz
Doxygen-0a773cb15d41e5806b799cd24c076c60b734615c.tar.bz2
Release-1.4.6-20060227
Diffstat (limited to 'src/latexdocvisitor.cpp')
-rw-r--r--src/latexdocvisitor.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp
index edbe979..9712e27 100644
--- a/src/latexdocvisitor.cpp
+++ b/src/latexdocvisitor.cpp
@@ -36,7 +36,7 @@ static QString escapeLabelName(const char *s)
switch (c)
{
case '%': result+="\\%"; break;
- case '|': result+="\\texttt{\"|}"; break;
+ case '|': result+="\\tt{\"|}"; break;
case '!': result+="\"!"; break;
default: result+=c;
}
@@ -69,7 +69,7 @@ QString LatexDocVisitor::escapeMakeIndexChars(const char *s)
case '!': m_t << "\"!"; break;
case '"': m_t << "\"\""; break;
case '@': m_t << "\"@"; break;
- case '|': m_t << "\\texttt{\"|}"; break;
+ case '|': m_t << "\\tt{\"|}"; break;
case '[': m_t << "["; break;
case ']': m_t << "]"; break;
default: str[0]=c; filter(str); break;
@@ -191,7 +191,7 @@ void LatexDocVisitor::visit(DocURL *u)
if (u->isEmail()) m_t << "mailto:";
m_t << u->url() << "}";
}
- m_t << "\\texttt{";
+ m_t << "\\tt{";
filter(u->url());
m_t << "}";
}
@@ -214,13 +214,13 @@ void LatexDocVisitor::visit(DocStyleChange *s)
switch (s->style())
{
case DocStyleChange::Bold:
- if (s->enable()) m_t << "\\textbf{"; else m_t << "}";
+ if (s->enable()) m_t << "{\\bf "; else m_t << "}";
break;
case DocStyleChange::Italic:
- if (s->enable()) m_t << "\\textit{"; else m_t << "\\/}";
+ if (s->enable()) m_t << "{\\em "; else m_t << "\\/}";
break;
case DocStyleChange::Code:
- if (s->enable()) m_t << "\\texttt{ "; else m_t << "}";
+ if (s->enable()) m_t << "{\\tt "; else m_t << "}";
break;
case DocStyleChange::Subscript:
if (s->enable()) m_t << "$_{\\mbox{"; else m_t << "}}$ ";
@@ -718,7 +718,7 @@ void LatexDocVisitor::visitPre(DocHRef *href)
m_t << href->url();
m_t << "}";
}
- m_t << "\texttt{";
+ m_t << "{\\tt ";
}
void LatexDocVisitor::visitPost(DocHRef *)
@@ -972,7 +972,7 @@ void LatexDocVisitor::visitPre(DocXRefItem *x)
}
else
{
- m_t << "\\textbf{";
+ m_t << "\\bf{";
}
m_insideItem=TRUE;
filter(x->title());