Skip to content

Commit

Permalink
Remove ouble usepackage / RequirePackage from LaTeX
Browse files Browse the repository at this point in the history
Remove double usepackage / RequirePackage from LaTeX initialization files (but keen multirow / multicol together)
  • Loading branch information
albert-github committed Oct 27, 2020
1 parent c5ce751 commit f3f23cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/latexgen.cpp
Expand Up @@ -521,7 +521,6 @@ static void writeDefaultHeaderPart1(FTextStream &t)
// Load required packages
t << "% Packages required by doxygen\n"
"\\usepackage{fixltx2e}\n" // for \textsubscript
"\\usepackage{calc}\n"
"\\usepackage{doxygen}\n";
const StringVector &extraLatexStyles = Config_getList(LATEX_EXTRA_STYLESHEET);
for (const auto &extraStyle : extraLatexStyles)
Expand All @@ -547,13 +546,10 @@ static void writeDefaultHeaderPart1(FTextStream &t)
t << "\\usepackage{graphicx}\n"
"\\usepackage[utf8]{inputenc}\n"
"\\usepackage{makeidx}\n"
"\\usepackage{multicol}\n"
"\\usepackage{multirow}\n"
"\\PassOptionsToPackage{warn}{textcomp}\n"
"\\usepackage{textcomp}\n"
"\\usepackage[nointegrals]{wasysym}\n"
"\\usepackage[table]{xcolor}\n"
"\\usepackage{ifpdf,ifxetex}\n"
"\\usepackage{ifxetex}\n"
"\n";

// Language support
Expand All @@ -577,8 +573,7 @@ static void writeDefaultHeaderPart1(FTextStream &t)
{
t << font;
}
t << "\\usepackage{amssymb}\n"
"\\usepackage{sectsty}\n"
t << "\\usepackage{sectsty}\n"
"\\allsectionsfont{%\n"
" \\fontseries{bc}\\selectfont%\n"
" \\color{darkgray}%\n"
Expand Down
1 change: 1 addition & 0 deletions templates/latex/doxygen.sty
Expand Up @@ -13,6 +13,7 @@
\RequirePackage{tabu_doxygen}
\RequirePackage{fancyvrb}
\RequirePackage{tabularx}
\RequirePackage{multicol}
\RequirePackage{multirow}
\RequirePackage{hanging}
\RequirePackage{ifpdf}
Expand Down

0 comments on commit f3f23cb

Please sign in to comment.