summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-03-30 11:44:07 (GMT)
committerGitHub <noreply@github.com>2019-03-30 11:44:07 (GMT)
commit16d025c8a08b485f5d43ade0986d716bd6aa06f8 (patch)
treeaeefdb25cdd51faccee411d8d4c7f055fa1d8f6b
parent8f04d2e35f6a4c77452603852838efd007c4fa24 (diff)
parentcc48623fba4f1574f023d91f56d136cf7d797a19 (diff)
downloadDoxygen-16d025c8a08b485f5d43ade0986d716bd6aa06f8.zip
Doxygen-16d025c8a08b485f5d43ade0986d716bd6aa06f8.tar.gz
Doxygen-16d025c8a08b485f5d43ade0986d716bd6aa06f8.tar.bz2
Merge pull request #6902 from albert-github/feature/issue_6896
issue #6896 empty sections in latex output
-rw-r--r--templates/latex/doxygen.sty21
1 files changed, 15 insertions, 6 deletions
diff --git a/templates/latex/doxygen.sty b/templates/latex/doxygen.sty
index dacd717..bd5fdba 100644
--- a/templates/latex/doxygen.sty
+++ b/templates/latex/doxygen.sty
@@ -547,13 +547,22 @@
% possibility to have sections etc. be within the margins
\makeatletter
-\newcommand{\doxysection}[1]{\@ifstar{\begingroup\sloppy\raggedright\section*{#1}\endgroup}{\begingroup\sloppy\raggedright\section{#1}\endgroup}}
-\newcommand{\doxysubsection}[1]{\@ifstar{\begingroup\sloppy\raggedright\subsection*{#1}\endgroup}{\begingroup\sloppy\raggedright\subsection{#1}\endgroup}}
-\newcommand{\doxysubsubsection}[1]{\@ifstar{\begingroup\sloppy\raggedright\subsubsection*{#1}\endgroup}{\begingroup\sloppy\raggedright\subsubsection{#1}\endgroup}}
-\newcommand{\doxyparagraph}[1]{@ifstar{\begingroup\sloppy\raggedright\paragraph*{#1}\endgroup}{\begingroup\sloppy\raggedright\paragraph{#1}\endgroup}}
-\newcommand{\doxysubparagraph}[1]{@ifstar{\begingroup\sloppy\raggedright\subparagraph*{#1}\endgroup}{\begingroup\sloppy\raggedright\subparagraph{#1}\endgroup}}
+\newcommand{\doxysection}{\@ifstar{\doxysection@star}{\doxysection@nostar}}
+\newcommand{\doxysection@star}[1]{\begingroup\sloppy\raggedright\section*{#1}\endgroup}
+\newcommand{\doxysection@nostar}[1]{\begingroup\sloppy\raggedright\section{#1}\endgroup}
+\newcommand{\doxysubsection}{\@ifstar{\doxysubsection@star}{\doxysubsection@nostar}}
+\newcommand{\doxysubsection@star}[1]{\begingroup\sloppy\raggedright\subsection*{#1}\endgroup}
+\newcommand{\doxysubsection@nostar}[1]{\begingroup\sloppy\raggedright\subsection{#1}\endgroup}
+\newcommand{\doxysubsubsection}{\@ifstar{\doxysubsubsection@star}{\doxysubsubsection@nostar}}
+\newcommand{\doxysubsubsection@star}[1]{\begingroup\sloppy\raggedright\subsubsection*{#1}\endgroup}
+\newcommand{\doxysubsubsection@nostar}[1]{\begingroup\sloppy\raggedright\subsubsection{#1}\endgroup}
+\newcommand{\doxyparagraph}{\@ifstar{\doxyparagraph@star}{\doxyparagraph@nostar}}
+\newcommand{\doxyparagraph@star}[1]{\begingroup\sloppy\raggedright\paragraph*{#1}\endgroup}
+\newcommand{\doxyparagraph@nostar}[1]{\begingroup\sloppy\raggedright\paragraph{#1}\endgroup}
+\newcommand{\doxysubparagraph}{\@ifstar{\doxysubparagraph@star}{\doxysubparagraph@nostar}}
+\newcommand{\doxysubparagraph@star}[1]{\begingroup\sloppy\raggedright\subparagraph*{#1}\endgroup}
+\newcommand{\doxysubparagraph@nostar}[1]{\begingroup\sloppy\raggedright\subparagraph{#1}\endgroup}
\makeatother
-
% Define caption that is also suitable in a table
\makeatletter
\def\doxyfigcaption{%