mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-12 16:32:10 -05:00
Use hyperref to set up the PDF information dictionary (fixes #3551)
This commit is contained in:
1 parent
254c04500b
commit
a8627ac01c
3 files changed
+9
-12
No files matched your search
@@ -109,6 +109,7 @@ Bugs fixed
|
|||||||
* #2693: Sphinx latex style file wrongly inhibits colours for section headings
|
* #2693: Sphinx latex style file wrongly inhibits colours for section headings
|
||||||
for latex+dvi(ps,pdf,pdfmx)
|
for latex+dvi(ps,pdf,pdfmx)
|
||||||
* C++, properly look up ``any`` references.
|
* C++, properly look up ``any`` references.
|
||||||
|
* #3551: PDF information dictionary is lacking author and title data
|
||||||
|
|
||||||
Deprecated
|
Deprecated
|
||||||
----------
|
----------
|
||||||
|
|||||||
@@ -31,13 +31,11 @@
|
|||||||
%
|
%
|
||||||
\renewcommand{\maketitle}{%
|
\renewcommand{\maketitle}{%
|
||||||
\noindent\rule{\textwidth}{1pt}\par
|
\noindent\rule{\textwidth}{1pt}\par
|
||||||
% FIXME: use \hypersetup{pdfauthor={\@author}, pdftitle={\@title}}
|
\begingroup % for PDF information dictionary
|
||||||
\ifdefined\pdfinfo
|
\def\endgraf{ }\def\and{\& }%
|
||||||
\begingroup
|
\pdfstringdefDisableCommands{\def\\{, }}% overwrite hyperref setup
|
||||||
%\pdfstringdefDisableCommands{\def\\{, }\def\endgraf{ }\def\and{, }}%
|
\hypersetup{pdfauthor={\@author}, pdftitle={\@title}}%
|
||||||
%\hypersetup{pdfauthor={\@author}, pdftitle={\@title}}%
|
|
||||||
\endgroup
|
\endgroup
|
||||||
\fi
|
|
||||||
\begin{flushright}
|
\begin{flushright}
|
||||||
\sphinxlogo
|
\sphinxlogo
|
||||||
\py@HeaderFamily
|
\py@HeaderFamily
|
||||||
|
|||||||
@@ -41,13 +41,11 @@
|
|||||||
\let\footnotesize\small
|
\let\footnotesize\small
|
||||||
\let\footnoterule\relax
|
\let\footnoterule\relax
|
||||||
\noindent\rule{\textwidth}{1pt}\par
|
\noindent\rule{\textwidth}{1pt}\par
|
||||||
% FIXME: use \hypersetup{pdfauthor={\@author}, pdftitle={\@title}}
|
\begingroup % for PDF information dictionary
|
||||||
\ifdefined\pdfinfo
|
\def\endgraf{ }\def\and{\& }%
|
||||||
\begingroup
|
\pdfstringdefDisableCommands{\def\\{, }}% overwrite hyperref setup
|
||||||
%\pdfstringdefDisableCommands{\def\\{, }\def\endgraf{ }\def\and{, }}%
|
\hypersetup{pdfauthor={\@author}, pdftitle={\@title}}%
|
||||||
%\hypersetup{pdfauthor={\@author}, pdftitle={\@title}}%
|
|
||||||
\endgroup
|
\endgroup
|
||||||
\fi
|
|
||||||
\begin{flushright}%
|
\begin{flushright}%
|
||||||
\sphinxlogo
|
\sphinxlogo
|
||||||
\py@HeaderFamily
|
\py@HeaderFamily
|
||||||
|
|||||||
Reference in new issue
Block a user