summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-02-10 13:23:48 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-02-10 13:23:48 (GMT)
commit647e2ba0f6a927f22340821fbab7b92058c3ce4f (patch)
tree8490382c341b63acb71aa148b25833c0dda23713 /templates
parentd99060e4e72fc3e73b8395cb037a0ed17c209d61 (diff)
downloadDoxygen-647e2ba0f6a927f22340821fbab7b92058c3ce4f.zip
Doxygen-647e2ba0f6a927f22340821fbab7b92058c3ce4f.tar.gz
Doxygen-647e2ba0f6a927f22340821fbab7b92058c3ce4f.tar.bz2
Section title runs into margin
In the PDF version of the doxygen manual we see that for the `\image` command the chapter title the text runs into the margin (due to an unbreakable part). With this fix the problem is solved. (see also: https://tex.stackexchange.com/questions/474055/section-title-running-into-margin and , for the ifstar part, https://tex.stackexchange.com/questions/376375/using-ifstar-to-define-a-star-variant)
Diffstat (limited to 'templates')
-rw-r--r--templates/latex/doxygen.sty9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/latex/doxygen.sty b/templates/latex/doxygen.sty
index de16c7d..a05f1ca 100644
--- a/templates/latex/doxygen.sty
+++ b/templates/latex/doxygen.sty
@@ -545,6 +545,15 @@
% Version of hypertarget with correct landing location
\newcommand{\Hypertarget}[1]{\Hy@raisedlink{\hypertarget{#1}{}}}
+% 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}}
+\makeatother
+
% Define caption that is also suitable in a table
\makeatletter
\def\doxyfigcaption{%