mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Fix PDF generation.
The \\ introduced in the \author in boilerplate.tex broke the PDF generation because line breaks are not allowed in the "Document Info" metadata stored in the PDF file. This changes the line break to a ", " (comma-space) in that context.
This commit is contained in:
parent
82de71dae8
commit
8bdf0bf705
2 changed files with 12 additions and 4 deletions
|
|
@ -48,12 +48,16 @@
|
|||
%
|
||||
\renewcommand{\maketitle}{
|
||||
\py@doHorizontalRule
|
||||
\@ifundefined{pdfinfo}{}{
|
||||
\@ifundefined{pdfinfo}{}{{
|
||||
% This \def is required to deal with multi-line authors; it
|
||||
% changes \\ to ', ' (comma-space), making it pass muster for
|
||||
% generating document info in the PDF file.
|
||||
\def\\{, }
|
||||
\pdfinfo{
|
||||
/Author (\@author)
|
||||
/Title (\@title)
|
||||
}
|
||||
}
|
||||
}}
|
||||
\begin{flushright}
|
||||
{\rm\Huge\py@HeaderFamily \@title} \par
|
||||
{\em\large\py@HeaderFamily \py@release} \par
|
||||
|
|
|
|||
|
|
@ -63,12 +63,16 @@
|
|||
\let\footnotesize\small
|
||||
\let\footnoterule\relax
|
||||
\py@doHorizontalRule%
|
||||
\@ifundefined{pdfinfo}{}{
|
||||
\@ifundefined{pdfinfo}{}{{
|
||||
% This \def is required to deal with multi-line authors; it
|
||||
% changes \\ to ', ' (comma-space), making it pass muster for
|
||||
% generating document info in the PDF file.
|
||||
\def\\{, }
|
||||
\pdfinfo{
|
||||
/Author (\@author)
|
||||
/Title (\@title)
|
||||
}
|
||||
}
|
||||
}}
|
||||
\begin{flushright}%
|
||||
{\rm\Huge\py@HeaderFamily \@title \par}%
|
||||
{\em\LARGE\py@HeaderFamily \py@release \par}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue