Skip to content

Commit

Permalink
Bug 796355 - LaTeX: Class scrbook Error: undefined old font command `…
Browse files Browse the repository at this point in the history
…\tt'

- Replaced \tt by \texttt
- Replaced the left over \bf by \textbf
and taking care that { } still match.
  • Loading branch information
albert-github committed May 26, 2018
1 parent 63696c0 commit 52c0b2e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/latexdocvisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ void LatexDocVisitor::visit(DocURL *u)
if (u->isEmail()) m_t << "mailto:";
m_t << u->url() << "}";
}
m_t << "{\\tt ";
m_t << "\\texttt{ ";
filter(u->url());
m_t << "}";
}
Expand Down Expand Up @@ -1232,7 +1232,7 @@ void LatexDocVisitor::visitPre(DocHRef *href)
m_t << href->url();
m_t << "}";
}
m_t << "{\\tt ";
m_t << "\\texttt{ ";
}

void LatexDocVisitor::visitPost(DocHRef *)
Expand Down Expand Up @@ -1479,7 +1479,7 @@ void LatexDocVisitor::visitPre(DocParamList *pl)
{
if (pl->direction()!=DocParamSect::Unspecified)
{
m_t << "\\mbox{\\tt ";
m_t << "\\mbox{\\texttt{ ";
if (pl->direction()==DocParamSect::In)
{
m_t << "in";
Expand All @@ -1492,7 +1492,7 @@ void LatexDocVisitor::visitPre(DocParamList *pl)
{
m_t << "in,out";
}
m_t << "} ";
m_t << "}} ";
}
if (useTable) m_t << " & ";
}
Expand Down
8 changes: 4 additions & 4 deletions src/latexgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ void LatexGenerator::startHtmlLink(const char *url)
t << url;
t << "}";
}
t << "{\\tt ";
t << "\\texttt{ ";
}

void LatexGenerator::endHtmlLink()
Expand All @@ -1389,15 +1389,15 @@ void LatexGenerator::endHtmlLink()
// t << url;
// t << "}";
// }
// t << "{\\tt ";
// t << "\\texttt{ ";
// docify(url);
// t << "}";
//}

void LatexGenerator::writeStartAnnoItem(const char *,const char *,
const char *path,const char *name)
{
t << "\\item\\contentsline{section}{\\bf ";
t << "\\item\\contentsline{section}\\textbf{ ";
if (path) docify(path);
docify(name);
t << "} ";
Expand Down Expand Up @@ -1432,7 +1432,7 @@ void LatexGenerator::endIndexValue(const char *name,bool /*hasBrief*/)
//void LatexGenerator::writeClassLink(const char *,const char *,
// const char *,const char *name)
//{
// t << "{\\bf ";
// t << "\\textbf{ ";
// docify(name);
// t << "}";
//}
Expand Down

0 comments on commit 52c0b2e

Please sign in to comment.