mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-13 17:02:12 -05:00
Although the data in ``\pdfinfo`` as set-up in ``sphinxmanual.cls`` was ignored, some LaTeX commands (e.g. ``\large``) in the ``latex_documents`` title item could cause failed PDF builds. This commit removes the anyhow ignored ``\pdfinfo`` usage, and indicates in commented-out lines how to use ``\hypersetup``, which may be done in master branch, or possibly in stable branch, if some consensus emerges about how to represent ``\and`` in the ``/Author`` field. It seems the PDF Document Information Dictionary does not seem to provide any universal multi-lingual way to indicate multiple authors.
This commit is contained in:
1 parent
89431bf833
commit
895014cd71
3 files changed
+6
-18
No files matched your search
@@ -35,6 +35,8 @@ Bugs fixed
|
|||||||
* #3575: Problems with pdflatex in a Turkish document built with sphinx has
|
* #3575: Problems with pdflatex in a Turkish document built with sphinx has
|
||||||
reappeared (refs #2997, #2397)
|
reappeared (refs #2997, #2397)
|
||||||
* #3577: Fix intersphinx debug tool
|
* #3577: Fix intersphinx debug tool
|
||||||
|
* A LaTeX command such as ``\\large`` inserted in the title items of
|
||||||
|
:confval:`latex_documents` causes failed PDF build (refs #3551, #3567)
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
--------
|
--------
|
||||||
|
|||||||
@@ -33,15 +33,8 @@
|
|||||||
\noindent\rule{\textwidth}{1pt}\ifsphinxpdfoutput\newline\null\fi\par
|
\noindent\rule{\textwidth}{1pt}\ifsphinxpdfoutput\newline\null\fi\par
|
||||||
\ifsphinxpdfoutput
|
\ifsphinxpdfoutput
|
||||||
\begingroup
|
\begingroup
|
||||||
% These \defs are required to deal with multi-line authors; it
|
%\pdfstringdefDisableCommands{\def\\{, }\def\endgraf{ }\def\and{, }}%
|
||||||
% changes \\ to ', ' (comma-space), making it pass muster for
|
%\hypersetup{pdfauthor={\@author}, pdftitle={\@title}}%
|
||||||
% generating document info in the PDF file.
|
|
||||||
\def\\{, }%
|
|
||||||
\def\and{and }%
|
|
||||||
\pdfinfo{
|
|
||||||
/Author (\@author)
|
|
||||||
/Title (\@title)
|
|
||||||
}%
|
|
||||||
\endgroup
|
\endgroup
|
||||||
\fi
|
\fi
|
||||||
\begin{flushright}
|
\begin{flushright}
|
||||||
|
|||||||
@@ -43,15 +43,8 @@
|
|||||||
\noindent\rule{\textwidth}{1pt}\ifsphinxpdfoutput\newline\null\fi\par
|
\noindent\rule{\textwidth}{1pt}\ifsphinxpdfoutput\newline\null\fi\par
|
||||||
\ifsphinxpdfoutput
|
\ifsphinxpdfoutput
|
||||||
\begingroup
|
\begingroup
|
||||||
% These \defs are required to deal with multi-line authors; it
|
%\pdfstringdefDisableCommands{\def\\{, }\def\endgraf{ }\def\and{, }}%
|
||||||
% changes \\ to ', ' (comma-space), making it pass muster for
|
%\hypersetup{pdfauthor={\@author}, pdftitle={\@title}}%
|
||||||
% generating document info in the PDF file.
|
|
||||||
\def\\{, }%
|
|
||||||
\def\and{and }%
|
|
||||||
\pdfinfo{
|
|
||||||
/Author (\@author)
|
|
||||||
/Title (\@title)
|
|
||||||
}%
|
|
||||||
\endgroup
|
\endgroup
|
||||||
\fi
|
\fi
|
||||||
\begin{flushright}%
|
\begin{flushright}%
|
||||||
|
|||||||
Reference in new issue
Block a user