mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-12 08:25:01 -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
|
||||
for latex+dvi(ps,pdf,pdfmx)
|
||||
* C++, properly look up ``any`` references.
|
||||
* #3551: PDF information dictionary is lacking author and title data
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user