diff options
| author | jfbu <jfbu@free.fr> | 2018-12-21 21:38:27 +0100 |
|---|---|---|
| committer | jfbu <jfbu@free.fr> | 2018-12-21 21:38:27 +0100 |
| commit | 1920d1d950fac28b26a8256e4b7b06e9c2ba6f11 (patch) | |
| tree | e742e74855c192a8b4e965976a5cb8c1d8858dca /sphinx/texinputs | |
| parent | f8a3407c7c29d5a03a53707ad400ee378a4c723b (diff) | |
| download | sphinx-git-1920d1d950fac28b26a8256e4b7b06e9c2ba6f11.tar.gz | |
LaTeX: ``\sphinxmaketitle`` and optional ``\sphinxbackoftitlepage``
Closes: #5849
Diffstat (limited to 'sphinx/texinputs')
| -rw-r--r-- | sphinx/texinputs/sphinxhowto.cls | 2 | ||||
| -rw-r--r-- | sphinx/texinputs/sphinxmanual.cls | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sphinx/texinputs/sphinxhowto.cls b/sphinx/texinputs/sphinxhowto.cls index 64c2feb64..6fd6f8729 100644 --- a/sphinx/texinputs/sphinxhowto.cls +++ b/sphinx/texinputs/sphinxhowto.cls @@ -30,7 +30,7 @@ % Change the title page to look a bit better, and fit in with the fncychap % ``Bjarne'' style a bit better. % -\renewcommand{\maketitle}{% +\newcommand{\sphinxmaketitle}{% \noindent\rule{\textwidth}{1pt}\par \begingroup % for PDF information dictionary \def\endgraf{ }\def\and{\& }% diff --git a/sphinx/texinputs/sphinxmanual.cls b/sphinx/texinputs/sphinxmanual.cls index ef8ce01a1..5ec388aca 100644 --- a/sphinx/texinputs/sphinxmanual.cls +++ b/sphinx/texinputs/sphinxmanual.cls @@ -33,7 +33,7 @@ % Change the title page to look a bit better, and fit in with the fncychap % ``Bjarne'' style a bit better. % -\renewcommand{\maketitle}{% +\newcommand{\sphinxmaketitle}{% \let\spx@tempa\relax \ifHy@pageanchor\def\spx@tempa{\Hy@pageanchortrue}\fi \hypersetup{pageanchor=false}% avoid duplicate destination warnings @@ -69,6 +69,8 @@ \setcounter{footnote}{0}% \let\thanks\relax\let\maketitle\relax %\gdef\@thanks{}\gdef\@author{}\gdef\@title{} + \clearpage + \ifdefined\sphinxbackoftitlepage\sphinxbackoftitlepage\fi \if@openright\cleardoublepage\else\clearpage\fi \spx@tempa } |
