mirror of
https://git.rtems.org/rtems-docs/
synced 2025-07-05 01:03:55 +08:00
pdf: Update the RTEMS style to work recent Sphinx versions.
Closes #3119.
This commit is contained in:
parent
eecec5f9d8
commit
ba143e0b30
@ -24,24 +24,19 @@ gobble=0,
|
|||||||
}
|
}
|
||||||
|
|
||||||
\renewcommand{\maketitle}{%
|
\renewcommand{\maketitle}{%
|
||||||
|
\let\spx@tempa\relax
|
||||||
|
\ifHy@pageanchor\def\spx@tempa{\Hy@pageanchortrue}\fi
|
||||||
|
\hypersetup{pageanchor=false}% avoid duplicate destination warnings
|
||||||
\begin{titlepage}%
|
\begin{titlepage}%
|
||||||
\let\footnotesize\small
|
\let\footnotesize\small
|
||||||
\let\footnoterule\relax
|
\let\footnoterule\relax
|
||||||
\ifsphinxpdfoutput
|
\par
|
||||||
\begingroup
|
\begingroup % for PDF information dictionary
|
||||||
% This \def is required to deal with multi-line authors; it
|
\def\endgraf{ }\def\and{\& }%
|
||||||
% changes \\ to ', ' (comma-space), making it pass muster for
|
\pdfstringdefDisableCommands{\def\\{, }}% overwrite hyperref setup
|
||||||
% generating document info in the PDF file.
|
\hypersetup{pdfauthor={\@author}, pdftitle={\@title}}%
|
||||||
\def\\{, }
|
|
||||||
\pdfinfo{
|
|
||||||
/Author (\@author)
|
|
||||||
/Title (\@title)
|
|
||||||
}
|
|
||||||
\endgroup
|
\endgroup
|
||||||
\fi
|
\begin{center}{%
|
||||||
\begin{flushright}%
|
|
||||||
%\sphinxlogo%
|
|
||||||
{\center
|
|
||||||
\vspace*{3cm}
|
\vspace*{3cm}
|
||||||
\includegraphics{logo.pdf}
|
\includegraphics{logo.pdf}
|
||||||
\vspace{3cm}
|
\vspace{3cm}
|
||||||
@ -51,14 +46,16 @@ gobble=0,
|
|||||||
{\large
|
{\large
|
||||||
\copyright Copyright \rtemscopyright \par
|
\copyright Copyright \rtemscopyright \par
|
||||||
\py@authoraddress \par
|
\py@authoraddress \par
|
||||||
}}%
|
}%
|
||||||
\end{flushright}%\par
|
}%
|
||||||
|
\end{center}%\par
|
||||||
\@thanks
|
\@thanks
|
||||||
\end{titlepage}%
|
\end{titlepage}%
|
||||||
\cleardoublepage%
|
|
||||||
\setcounter{footnote}{0}%
|
\setcounter{footnote}{0}%
|
||||||
\let\thanks\relax\let\maketitle\relax
|
\let\thanks\relax\let\maketitle\relax
|
||||||
%\gdef\@thanks{}\gdef\@author{}\gdef\@title{}
|
%\gdef\@thanks{}\gdef\@author{}\gdef\@title{}
|
||||||
|
\if@openright\cleardoublepage\else\clearpage\fi
|
||||||
|
\spx@tempa
|
||||||
}
|
}
|
||||||
|
|
||||||
\fancypagestyle{normal}{
|
\fancypagestyle{normal}{
|
||||||
@ -113,31 +110,3 @@ gobble=0,
|
|||||||
% fonts
|
% fonts
|
||||||
\usepackage{charter}
|
\usepackage{charter}
|
||||||
\usepackage{rtemsextrafonts}
|
\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}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user