Use hyperref to set up the PDF information dictionary (fixes #3551)

This commit is contained in:
jfbu committed 2017-03-24 09:16:14 +01:00
1 parent 254c04500b
commit a8627ac01c
3 files changed
+9 -12

No files matched your search

+1
View File
@@ -109,6 +109,7 @@ Bugs fixed
* #2693: Sphinx latex style file wrongly inhibits colours for section headings
for latex+dvi(ps,pdf,pdfmx)
* C++, properly look up ``any`` references.
* #3551: PDF information dictionary is lacking author and title data
Deprecated
----------
+4 -6
View File
@@ -31,13 +31,11 @@
%
\renewcommand{\maketitle}{%
\noindent\rule{\textwidth}{1pt}\par
% FIXME: use \hypersetup{pdfauthor={\@author}, pdftitle={\@title}}
\ifdefined\pdfinfo
\begingroup
%\pdfstringdefDisableCommands{\def\\{, }\def\endgraf{ }\def\and{, }}%
%\hypersetup{pdfauthor={\@author}, pdftitle={\@title}}%
\begingroup % for PDF information dictionary
\def\endgraf{ }\def\and{\& }%
\pdfstringdefDisableCommands{\def\\{, }}% overwrite hyperref setup
\hypersetup{pdfauthor={\@author}, pdftitle={\@title}}%
\endgroup
\fi
\begin{flushright}
\sphinxlogo
\py@HeaderFamily
+4 -6
View File
@@ -41,13 +41,11 @@
\let\footnotesize\small
\let\footnoterule\relax
\noindent\rule{\textwidth}{1pt}\par
% FIXME: use \hypersetup{pdfauthor={\@author}, pdftitle={\@title}}
\ifdefined\pdfinfo
\begingroup
%\pdfstringdefDisableCommands{\def\\{, }\def\endgraf{ }\def\and{, }}%
%\hypersetup{pdfauthor={\@author}, pdftitle={\@title}}%
\begingroup % for PDF information dictionary
\def\endgraf{ }\def\and{\& }%
\pdfstringdefDisableCommands{\def\\{, }}% overwrite hyperref setup
\hypersetup{pdfauthor={\@author}, pdftitle={\@title}}%
\endgroup
\fi
\begin{flushright}%
\sphinxlogo
\py@HeaderFamily