summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-02-17 15:13:01 (GMT)
committerFred Drake <fdrake@acm.org>1998-02-17 15:13:01 (GMT)
commit53740452718b817300e74c93119271c7b7d25665 (patch)
treefade4dfd76c9870fcb5546c14fc437bc9db39823
parente8b46132e2f2b5347413138a068900a5d00d63b2 (diff)
downloadcpython-53740452718b817300e74c93119271c7b7d25665.zip
cpython-53740452718b817300e74c93119271c7b7d25665.tar.gz
cpython-53740452718b817300e74c93119271c7b7d25665.tar.bz2
If generating PDF, include the author and title information in acroread's
"File->General Info" dialog.
-rw-r--r--Doc/myformat.sty13
1 files changed, 12 insertions, 1 deletions
diff --git a/Doc/myformat.sty b/Doc/myformat.sty
index b38ad90..b7d3629 100644
--- a/Doc/myformat.sty
+++ b/Doc/myformat.sty
@@ -310,7 +310,13 @@
\newcommand{\strong}[1]{{\bf #1}}
% let's experiment with a new font:
\newcommand{\file}[1]{\mbox{`\small\textsf{#1}'}}
-\newcommand{\url}[1]{\mbox{\small\textsf{#1}}}
+%\@ifundefined{pdfannotlink}{%
+ \newcommand{\url}[1]{\mbox{\small\textsf{#1}}}%
+%}{
+% \newcommand{\url}[1]{{%
+% \pdfannotlink user{/S /URI /URI (#1)}%
+% \mbox{\small\textsf{#1}}}}%
+%}
\let\email=\url
\newcommand{\varvars}[1]{{\def\,{\/{\char`\,}}\var{#1}}}
@@ -445,6 +451,11 @@
\let\footnoterule\relax
\@ifundefined{ChTitleVar}{}{%
\mghrulefill{\RW}}%
+ \@ifundefined{pdfinfo}{}{
+ \pdfinfo
+ author {\@author}
+ title {\@title}
+ }
\begin{flushright}%
{\rm\Huge\HeaderFamily \@title \par}%
{\em\LARGE\HeaderFamily \@release \par}