Changeset c684611 in rtems-docs


Ignore:
Timestamp:
Aug 11, 2017, 12:32:18 AM (2 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
efc29ff
Parents:
7464b71
git-author:
Chris Johns <chrisj@…> (08/11/17 00:32:18)
git-committer:
Chris Johns <chrisj@…> (08/11/17 03:45:47)
Message:

pdf: Update the RTEMS style to work recent Sphinx versions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/rtemsstyle.sty

    r7464b71 rc684611  
    2525
    2626\renewcommand{\maketitle}{%
     27  \let\spx@tempa\relax
     28  \ifHy@pageanchor\def\spx@tempa{\Hy@pageanchortrue}\fi
     29  \hypersetup{pageanchor=false}% avoid duplicate destination warnings
    2730  \begin{titlepage}%
    2831    \let\footnotesize\small
    2932    \let\footnoterule\relax
    30     \ifsphinxpdfoutput
    31       \begingroup
    32       % This \def is required to deal with multi-line authors; it
    33       % changes \\ to ', ' (comma-space), making it pass muster for
    34       % generating document info in the PDF file.
    35       \def\\{, }
    36       \pdfinfo{
    37         /Author (\@author)
    38         /Title (\@title)
    39       }
     33    \par
     34      \begingroup % for PDF information dictionary
     35       \def\endgraf{ }\def\and{\& }%
     36       \pdfstringdefDisableCommands{\def\\{, }}% overwrite hyperref setup
     37       \hypersetup{pdfauthor={\@author}, pdftitle={\@title}}%
    4038      \endgroup
    41     \fi
    42     \begin{flushright}%
    43       %\sphinxlogo%
    44       {\center
    45         \vspace*{3cm}
    46         \includegraphics{logo.pdf}
    47         \vspace{3cm}
    48         \par
    49         {\rm\Huge \@title \par}%
    50         {\em\LARGE \py@release\releaseinfo \par}
    51         {\large
    52           \copyright Copyright \rtemscopyright \par
    53          \py@authoraddress \par
    54         }}%
    55     \end{flushright}%\par
     39    \begin{center}{%
     40      \vspace*{3cm}
     41      \includegraphics{logo.pdf}
     42      \vspace{3cm}
     43      \par
     44      {\rm\Huge \@title \par}%
     45      {\em\LARGE \py@release\releaseinfo \par}
     46      {\large
     47       \copyright Copyright \rtemscopyright \par
     48       \py@authoraddress \par
     49      }%
     50    }%
     51    \end{center}%\par
    5652    \@thanks
    5753  \end{titlepage}%
    58   \cleardoublepage%
    5954  \setcounter{footnote}{0}%
    6055  \let\thanks\relax\let\maketitle\relax
    6156  %\gdef\@thanks{}\gdef\@author{}\gdef\@title{}
     57  \if@openright\cleardoublepage\else\clearpage\fi
     58  \spx@tempa
    6259}
    6360
     
    114111\usepackage{charter}
    115112\usepackage{rtemsextrafonts}
    116 
    117 \def\@part[#1]#2{%
    118     \ifnum \c@secnumdepth >\m@ne
    119       \refstepcounter{part}%
    120       \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
    121     \else
    122       \addcontentsline{toc}{part}{#1}%
    123     \fi
    124     {\parindent \z@ %\center
    125      \interlinepenalty \@M
    126      \normalfont
    127      \ifnum \c@secnumdepth >\m@ne
    128        \rm\Large \partname~\thepart
    129        \par\nobreak
    130      \fi
    131      \MakeUppercase{\rm\Huge #2}%
    132      \markboth{}{}\par}%
    133     \nobreak
    134     \vskip 8ex
    135     \@afterheading}
    136 \def\@spart#1{%
    137     {\parindent \z@ %\center
    138      \interlinepenalty \@M
    139      \normalfont
    140      \huge \bfseries #1\par}%
    141      \nobreak
    142      \vskip 3ex
    143      \@afterheading}
Note: See TracChangeset for help on using the changeset viewer.