summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2017-08-11 00:32:18 +0000
committerChris Johns <chrisj@rtems.org>2017-08-11 13:45:47 +1000
commitc68461134ea5bfe6859ca6c49055252ef978b860 (patch)
tree9f3a3956b6c12f3da5e88174f8b45babf4732ba5 /common
parent7464b71b59114760d5f5692551f947eb6aee378c (diff)
downloadrtems-docs-c68461134ea5bfe6859ca6c49055252ef978b860.tar.bz2
pdf: Update the RTEMS style to work recent Sphinx versions.
Diffstat (limited to 'common')
-rw-r--r--common/rtemsstyle.sty77
1 files changed, 23 insertions, 54 deletions
diff --git a/common/rtemsstyle.sty b/common/rtemsstyle.sty
index e55bb93..8f963c4 100644
--- a/common/rtemsstyle.sty
+++ b/common/rtemsstyle.sty
@@ -24,41 +24,38 @@ gobble=0,
}
\renewcommand{\maketitle}{%
+ \let\spx@tempa\relax
+ \ifHy@pageanchor\def\spx@tempa{\Hy@pageanchortrue}\fi
+ \hypersetup{pageanchor=false}% avoid duplicate destination warnings
\begin{titlepage}%
\let\footnotesize\small
\let\footnoterule\relax
- \ifsphinxpdfoutput
- \begingroup
- % This \def is required to deal with multi-line authors; it
- % changes \\ to ', ' (comma-space), making it pass muster for
- % generating document info in the PDF file.
- \def\\{, }
- \pdfinfo{
- /Author (\@author)
- /Title (\@title)
- }
+ \par
+ \begingroup % for PDF information dictionary
+ \def\endgraf{ }\def\and{\& }%
+ \pdfstringdefDisableCommands{\def\\{, }}% overwrite hyperref setup
+ \hypersetup{pdfauthor={\@author}, pdftitle={\@title}}%
\endgroup
- \fi
- \begin{flushright}%
- %\sphinxlogo%
- {\center
- \vspace*{3cm}
- \includegraphics{logo.pdf}
- \vspace{3cm}
- \par
- {\rm\Huge \@title \par}%
- {\em\LARGE \py@release\releaseinfo \par}
- {\large
- \copyright Copyright \rtemscopyright \par
- \py@authoraddress \par
- }}%
- \end{flushright}%\par
+ \begin{center}{%
+ \vspace*{3cm}
+ \includegraphics{logo.pdf}
+ \vspace{3cm}
+ \par
+ {\rm\Huge \@title \par}%
+ {\em\LARGE \py@release\releaseinfo \par}
+ {\large
+ \copyright Copyright \rtemscopyright \par
+ \py@authoraddress \par
+ }%
+ }%
+ \end{center}%\par
\@thanks
\end{titlepage}%
- \cleardoublepage%
\setcounter{footnote}{0}%
\let\thanks\relax\let\maketitle\relax
%\gdef\@thanks{}\gdef\@author{}\gdef\@title{}
+ \if@openright\cleardoublepage\else\clearpage\fi
+ \spx@tempa
}
\fancypagestyle{normal}{
@@ -113,31 +110,3 @@ gobble=0,
% fonts
\usepackage{charter}
\usepackage{rtemsextrafonts}
-
-\def\@part[#1]#2{%
- \ifnum \c@secnumdepth >\m@ne
- \refstepcounter{part}%
- \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
- \else
- \addcontentsline{toc}{part}{#1}%
- \fi
- {\parindent \z@ %\center
- \interlinepenalty \@M
- \normalfont
- \ifnum \c@secnumdepth >\m@ne
- \rm\Large \partname~\thepart
- \par\nobreak
- \fi
- \MakeUppercase{\rm\Huge #2}%
- \markboth{}{}\par}%
- \nobreak
- \vskip 8ex
- \@afterheading}
-\def\@spart#1{%
- {\parindent \z@ %\center
- \interlinepenalty \@M
- \normalfont
- \huge \bfseries #1\par}%
- \nobreak
- \vskip 3ex
- \@afterheading}