Skip to content

Commit 044f2c4

Browse files
committed
Latex page numbering
In the documentation generated by doxygen the table of contents does not start with page number i but with iii, by setting the pagenumbering}{roman} after the clearemptydoublepage titlepage this is corrected. In the beginning of the documentation we set the page numbering to "alph" so it won't interfere with the numbers in the table of contents and the real documentation. For the doxygen manual similar reasoning is true, furthermore the table of contents was on the left side page (when printed double sided), yhis is corrected as well.
1 parent 3911ebd commit 044f2c4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doc/doxygen_manual.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
\hbadness=750
7575
\tolerance=750
7676
\begin{document}
77+
\pagenumbering{alph}
7778
\begin{titlepage}
7879
\includegraphics[width=\textwidth]{doxygen_logo}
7980
\begin{center}
@@ -82,8 +83,8 @@
8283
\copyright 1997-\thisyear
8384
\end{center}
8485
\end{titlepage}
85-
\pagenumbering{Roman}
8686
\clearemptydoublepage
87+
\pagenumbering{Roman}
8788
\tableofcontents
8889
\clearemptydoublepage
8990
\pagenumbering{arabic}

src/latexgen.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ static void writeDefaultHeaderPart1(FTextStream &t)
687687
<< " pdfencoding=unicode\n"
688688
<< " }\n";
689689
}
690-
t << "\\pagenumbering{roman}\n"
690+
t << "\\pagenumbering{alph}\n"
691691
"\\begin{titlepage}\n"
692692
"\\vspace*{7cm}\n"
693693
"\\begin{center}%\n"
@@ -716,6 +716,7 @@ static void writeDefaultHeaderPart3(FTextStream &t)
716716
bool compactLatex = Config_getBool("COMPACT_LATEX");
717717
if (!compactLatex)
718718
t << "\\clearemptydoublepage\n";
719+
t << "\\pagenumbering{roman}\n";
719720

720721
// ToC
721722
t << "\\tableofcontents\n";

0 commit comments

Comments
 (0)