Skip to content

Commit

Permalink
Fix: replace deprecated {\bf with \textbf{ in LaTeX generator
Browse files Browse the repository at this point in the history
The newest version of scrbook (from Ubuntu 16.10) otherwise bails out with
"scrbook Error: undefined old font command `\bf'"
  • Loading branch information
jhunold committed Nov 10, 2016
1 parent 5f01f78 commit 1d85e00
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/context.cpp
Expand Up @@ -3813,7 +3813,7 @@ class TextGeneratorLatex : public TextGeneratorIntf
}
else
{
m_ts << "{\\bf ";
m_ts << "\\textbf{ ";
filterLatexString(m_ts,text);
m_ts << "}";
}
Expand Down
6 changes: 3 additions & 3 deletions src/latexdocvisitor.cpp
Expand Up @@ -1169,7 +1169,7 @@ void LatexDocVisitor::visitPre(DocHtmlCell *c)
}
if (c->isHeading())
{
m_t << "{\\bf ";
m_t << "\\textbf{ ";
}
if (cs>1)
{
Expand Down Expand Up @@ -1566,7 +1566,7 @@ void LatexDocVisitor::visitPre(DocXRefItem *x)
}
else
{
m_t << "{\\bf ";
m_t << "\\textbf{ ";
}
m_insideItem=TRUE;
filter(x->title());
Expand Down Expand Up @@ -1674,7 +1674,7 @@ void LatexDocVisitor::startLink(const QCString &ref,const QCString &file,const Q
}
else // external link
{
m_t << "{\\bf ";
m_t << "\\textbf{ ";
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/latexgen.cpp
Expand Up @@ -1379,7 +1379,7 @@ void LatexGenerator::startTextLink(const char *f,const char *anchor)
}
else
{
t << "{\\bf ";
t << "\\textbf{ ";
}
}

Expand All @@ -1404,7 +1404,7 @@ void LatexGenerator::writeObjectLink(const char *ref, const char *f,
}
else
{
t << "{\\bf ";
t << "\\textbf{ ";
docify(text);
t << "}";
}
Expand Down Expand Up @@ -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))
//{
Expand Down

0 comments on commit 1d85e00

Please sign in to comment.