From 7afe0e42460f752233659a061aadf578faedd7dc Mon Sep 17 00:00:00 2001
From: albert-github <albert.tests@gmail.com>
Date: Fri, 26 Jul 2019 12:25:52 +0200
Subject: issue #6769 Tabu is broken

Based on comment `\usepackage` in refman.tex / doxygen_manual.tex has been replaced with `\RequirePackage` in doxygen.sty
("back to its old place").
---
 doc/doxygen_manual.tex      | 8 ++------
 src/latexgen.cpp            | 6 +-----
 templates/latex/doxygen.sty | 8 ++++----
 3 files changed, 7 insertions(+), 15 deletions(-)

diff --git a/doc/doxygen_manual.tex b/doc/doxygen_manual.tex
index 2380d32..078bdea 100644
--- a/doc/doxygen_manual.tex
+++ b/doc/doxygen_manual.tex
@@ -14,7 +14,7 @@
 
 \batchmode
 \documentclass{book}
-%% moved from doxygen.sty due to workaround for LatEx 2019 version and unmaintained tabu package
+%% moved from doxygen.sty due to workaround for LaTex 2019 version and unmaintained tabu package
 \usepackage{ifthen}
 \ifx\requestedLaTeXdate\undefined
 \usepackage{array}
@@ -31,7 +31,7 @@
 \usepackage{geometry}
 \usepackage{listings}
 \usepackage{color}
-%%\usepackage{ifthen} %% moved to top due to workaround for LatEx 2019 version and unmaintained tabu package
+%%\usepackage{ifthen} %% moved to top due to workaround for LaTex 2019 version and unmaintained tabu package
 \usepackage[table]{xcolor}
 \PassOptionsToPackage{warn}{textcomp}
 \usepackage{textcomp}
@@ -63,10 +63,6 @@
 \usepackage{sectsty}
 \usepackage[titles]{tocloft}
 \usepackage{amssymb}
-%% moved from doxygen.sty due to workaround for LatEx 2019 version and unmaintained tabu package
-\usepackage{longtable_doxygen}
-\usepackage{tabu_doxygen}
-%%
 \usepackage{doxygen}
 \usepackage{manual}
 %%
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
index 275d2c3..f88f79b 100644
--- a/src/latexgen.cpp
+++ b/src/latexgen.cpp
@@ -497,7 +497,7 @@ static void writeDefaultHeaderPart1(FTextStream &t)
     documentClass = "book";
   t << "\\documentclass[twoside]{" << documentClass << "}\n"
        "\n";
-  t << "%% moved from doxygen.sty due to workaround for LatEx 2019 version and unmaintained tabu package\n"
+  t << "%% moved from doxygen.sty due to workaround for LaTex 2019 version and unmaintained tabu package\n"
        "\\usepackage{ifthen}\n"
        "\\ifx\\requestedLaTeXdate\\undefined\n"
        "\\usepackage{array}\n"
@@ -510,10 +510,6 @@ static void writeDefaultHeaderPart1(FTextStream &t)
   t << "% Packages required by doxygen\n"
        "\\usepackage{fixltx2e}\n" // for \textsubscript
        "\\usepackage{calc}\n"
-       "%% moved from doxygen.sty due to workaround for LatEx 2019 version and unmaintained tabu package\n"
-       "\\usepackage{longtable_doxygen}\n"
-       "\\usepackage{tabu_doxygen}\n"
-       "%%\n"
        "\\usepackage{doxygen}\n";
   QStrList extraLatexStyle = Config_getList(LATEX_EXTRA_STYLESHEET);
   for (uint i=0; i<extraLatexStyle.count(); ++i)
diff --git a/templates/latex/doxygen.sty b/templates/latex/doxygen.sty
index f3cae83..1954365 100644
--- a/templates/latex/doxygen.sty
+++ b/templates/latex/doxygen.sty
@@ -3,14 +3,14 @@
 
 % Packages used by this style file
 \RequirePackage{alltt}
-%%\RequirePackage{array} %% moved to refman.tex due to workaround for LatEx 2019 version and unmaintained tabu package
+%%\RequirePackage{array} %% moved to refman.tex due to workaround for LaTex 2019 version and unmaintained tabu package
 \RequirePackage{calc}
 \RequirePackage{float}
-%%\RequirePackage{ifthen} %% moved to refman.tex due to workaround for LatEx 2019 version and unmaintained tabu package
+%%\RequirePackage{ifthen} %% moved to refman.tex due to workaround for LaTex 2019 version and unmaintained tabu package
 \RequirePackage{verbatim}
 \RequirePackage[table]{xcolor}
-%%\RequirePackage{longtable} %% moved to refman.tex due to workaround for LatEx 2019 version and unmaintained tabu package
-%%\RequirePackage{tabu} %% moved to refman.tex due to workaround for LatEx 2019 version and unmaintained tabu package
+\RequirePackage{longtable_doxygen}
+\RequirePackage{tabu_doxygen}
 \RequirePackage{fancyvrb}
 \RequirePackage{tabularx}
 \RequirePackage{multirow}
-- 
cgit v0.12

