Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5374045

Browse files
committed
If generating PDF, include the author and title information in acroread's
"File->General Info" dialog.
1 parent e8b4613 commit 5374045

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

Doc/myformat.sty

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,13 @@
310310
\newcommand{\strong}[1]{{\bf #1}}
311311
% let's experiment with a new font:
312312
\newcommand{\file}[1]{\mbox{`\small\textsf{#1}'}}
313-
\newcommand{\url}[1]{\mbox{\small\textsf{#1}}}
313+
%\@ifundefined{pdfannotlink}{%
314+
\newcommand{\url}[1]{\mbox{\small\textsf{#1}}}%
315+
%}{
316+
% \newcommand{\url}[1]{{%
317+
% \pdfannotlink user{/S /URI /URI (#1)}%
318+
% \mbox{\small\textsf{#1}}}}%
319+
%}
314320
\let\email=\url
315321

316322
\newcommand{\varvars}[1]{{\def\,{\/{\char`\,}}\var{#1}}}
@@ -445,6 +451,11 @@
445451
\let\footnoterule\relax
446452
\@ifundefined{ChTitleVar}{}{%
447453
\mghrulefill{\RW}}%
454+
\@ifundefined{pdfinfo}{}{
455+
\pdfinfo
456+
author {\@author}
457+
title {\@title}
458+
}
448459
\begin{flushright}%
449460
{\rm\Huge\HeaderFamily \@title \par}%
450461
{\em\LARGE\HeaderFamily \@release \par}

0 commit comments

Comments
 (0)