summaryrefslogtreecommitdiffstats
path: root/doc/doxygen_manual.tex
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-08-04 10:08:05 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-08-04 10:08:05 (GMT)
commit3eea436bec471fb0b4161342b4d7d804d7173ca4 (patch)
tree8a5d6fc26fda79799b4e062413b926a9defce374 /doc/doxygen_manual.tex
parentf6b570dd11534ee131c8c3cc0f1a4c732c00ec96 (diff)
downloadDoxygen-3eea436bec471fb0b4161342b4d7d804d7173ca4.zip
Doxygen-3eea436bec471fb0b4161342b4d7d804d7173ca4.tar.gz
Doxygen-3eea436bec471fb0b4161342b4d7d804d7173ca4.tar.bz2
Incorrect paragraph numbers in secref list.
The definition of `\doxysection` etc. are using grouping around the section title, and this destroys the \label system as label names are stored locally. (see also: https://tex.stackexchange.com/questions/502650/section-numbering-in-redefined-sections) the `\doxysection` commands have been redefined (unfortunately partly copying values from book.cls)
Diffstat (limited to 'doc/doxygen_manual.tex')
-rw-r--r--doc/doxygen_manual.tex27
1 files changed, 23 insertions, 4 deletions
diff --git a/doc/doxygen_manual.tex b/doc/doxygen_manual.tex
index 078bdea..8ff3c66 100644
--- a/doc/doxygen_manual.tex
+++ b/doc/doxygen_manual.tex
@@ -66,12 +66,31 @@
\usepackage{doxygen}
\usepackage{manual}
%%
+% unfortunately constructs like:
+% \renewcommand{\doxysection}[1]{\doxysubsection{##1}}
+% using values from book.cls (see also doxygen.sty) and redefining sections to correct level.
\makeatletter
\newenvironment{DoxygenSubAppendix}{%
- \renewcommand{\doxysection}{\@ifstar{\doxysubsection@star}{\doxysubsection@nostar}}%
- \renewcommand{\doxysubsection}{\@ifstar{\doxysubsubsection@star}{\doxysubsubsection@nostar}}
- \renewcommand{\doxysubsubsection}{\@ifstar{\doxyparagraph@star}{\doxyparagraph@nostar}}
- \renewcommand{\doxyparagraph}{\@ifstar{\doxysubparagraph@star}{\doxysubparagraph@nostar}}
+\renewcommand\doxysection{\@startsection{subsection}{2}{\z@}%
+ {-3.25ex\@plus -1ex \@minus -.2ex}%
+ {1.5ex \@plus .2ex}%
+ {\raggedright\normalfont\large\bfseries}}
+\renewcommand\doxysubsection{\@startsection{subsubsection}{3}{\z@}%
+ {-3.25ex\@plus -1ex \@minus -.2ex}%
+ {1.5ex \@plus .2ex}%
+ {\raggedright\normalfont\normalsize\bfseries}}
+\renewcommand\doxysubsubsection{\@startsection{paragraph}{4}{\z@}%
+ {3.25ex \@plus1ex \@minus.2ex}%
+ {-1em}%
+ {\raggedright\normalfont\normalsize\bfseries}}
+\renewcommand\doxyparagraph{\@startsection{subparagraph}{5}{\parindent}%
+ {3.25ex \@plus1ex \@minus .2ex}%
+ {-1em}%
+ {\raggedright\normalfont\normalsize\bfseries}}
+%%\renewcommand{\doxysection}[1]{\doxysubsection{##1}}
+%%\renewcommand{\doxysubsection}[1]{\doxysubsubsection{##1}}
+%%\renewcommand{\doxysubsubsection}[1]{\doxyparagraph{##1}}
+%%\renewcommand{\doxyparagraph}[1]{\doxysubparagraph{##1}}
}{}
\makeatother
%%