summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJürgen Hunold <jhunold@gmx.eu>2016-11-10 17:17:13 (GMT)
committerJürgen Hunold <jhunold@gmx.eu>2016-11-10 17:17:36 (GMT)
commit1d85e00dd1238f74babf0a1d7eeeaf3e2ba659f2 (patch)
tree26f48052944d7c0cc2e3af461b1416848b317f2a /src
parent5f01f783e2387a5d44ad70fbff5365aa0e5df938 (diff)
downloadDoxygen-1d85e00dd1238f74babf0a1d7eeeaf3e2ba659f2.zip
Doxygen-1d85e00dd1238f74babf0a1d7eeeaf3e2ba659f2.tar.gz
Doxygen-1d85e00dd1238f74babf0a1d7eeeaf3e2ba659f2.tar.bz2
Fix: replace deprecated {\bf with \textbf{ in LaTeX generator
The newest version of scrbook (from Ubuntu 16.10) otherwise bails out with "scrbook Error: undefined old font command `\bf'"
Diffstat (limited to 'src')
-rw-r--r--src/context.cpp2
-rw-r--r--src/latexdocvisitor.cpp6
-rw-r--r--src/latexgen.cpp6
3 files changed, 7 insertions, 7 deletions
diff --git a/src/context.cpp b/src/context.cpp
index 2d4200e..f45a9b5 100644
--- a/src/context.cpp
+++ b/src/context.cpp
@@ -3813,7 +3813,7 @@ class TextGeneratorLatex : public TextGeneratorIntf
}
else
{
- m_ts << "{\\bf ";
+ m_ts << "\\textbf{ ";
filterLatexString(m_ts,text);
m_ts << "}";
}
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp
index 048deb7..9016c25 100644
--- a/src/latexdocvisitor.cpp
+++ b/src/latexdocvisitor.cpp
@@ -1169,7 +1169,7 @@ void LatexDocVisitor::visitPre(DocHtmlCell *c)
}
if (c->isHeading())
{
- m_t << "{\\bf ";
+ m_t << "\\textbf{ ";
}
if (cs>1)
{
@@ -1566,7 +1566,7 @@ void LatexDocVisitor::visitPre(DocXRefItem *x)
}
else
{
- m_t << "{\\bf ";
+ m_t << "\\textbf{ ";
}
m_insideItem=TRUE;
filter(x->title());
@@ -1674,7 +1674,7 @@ void LatexDocVisitor::startLink(const QCString &ref,const QCString &file,const Q
}
else // external link
{
- m_t << "{\\bf ";
+ m_t << "\\textbf{ ";
}
}
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
index 37eacdb..33b8e49 100644
--- a/src/latexgen.cpp
+++ b/src/latexgen.cpp
@@ -1379,7 +1379,7 @@ void LatexGenerator::startTextLink(const char *f,const char *anchor)
}
else
{
- t << "{\\bf ";
+ t << "\\textbf{ ";
}
}
@@ -1404,7 +1404,7 @@ void LatexGenerator::writeObjectLink(const char *ref, const char *f,
}
else
{
- t << "{\\bf ";
+ t << "\\textbf{ ";
docify(text);
t << "}";
}
@@ -1907,7 +1907,7 @@ void LatexGenerator::endMemberList()
void LatexGenerator::startMemberGroupHeader(bool hasHeader)
{
if (hasHeader) t << "\\begin{Indent}";
- t << "{\\bf ";
+ t << "\\textbf{ ";
// changed back to rev 756 due to bug 660501
//if (Config_getBool(COMPACT_LATEX))
//{