summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hyperxmp/hyperxmp.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/hyperxmp/hyperxmp.dtx')
-rw-r--r--macros/latex/contrib/hyperxmp/hyperxmp.dtx30
1 files changed, 18 insertions, 12 deletions
diff --git a/macros/latex/contrib/hyperxmp/hyperxmp.dtx b/macros/latex/contrib/hyperxmp/hyperxmp.dtx
index 47968aed38..4fad6b29d0 100644
--- a/macros/latex/contrib/hyperxmp/hyperxmp.dtx
+++ b/macros/latex/contrib/hyperxmp/hyperxmp.dtx
@@ -22,7 +22,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{hyperxmp}
%<*package>
- [2020/11/18 v5.8 Store hyperref metadata in XMP format]
+ [2020/11/22 v5.9 Store hyperref metadata in XMP format]
%</package>
%
%<*driver>
@@ -1495,15 +1495,17 @@
% the byte count to converge relative to the the number of compilations
% that would otherwise be required.
%
-% Starting with \pkgname{hyperxmp}~v5.8, the \pkgname{hyperxmp}
+% Starting with \pkgname{hyperxmp}~v5.9, the \pkgname{hyperxmp}
% distribution includes a Perl\index{Perl} script called
-% \progname{add\_byteCount} that edits a \acro{PDF} file in place,
-% adding or replacing the \xmpprop{prism:byteCount} property with one
-% that specifies the final file size. Run the script as
-% ``\progname{add\_byteCount} \meta{filename.pdf}''.
+% \progname{hyperxmp-add-bytecount} that edits a \acro{PDF} file in
+% place, adding or replacing the \xmpprop{prism:byteCount} property with
+% one that specifies the final file size.\footnote{The script was in
+% fact introduced with \progname{hyperxmp}~v5.8 and was then called
+% \texttt{add\_byteCount}.} Run the script as
+% ``\progname{hyperxmp-add-bytecount} \meta{filename.pdf}''.
%
% The \progname{latexmk} build tool can be configured to run
-% \progname{add\_byteCount} automatically every time a \acro{PDF} file
+% \progname{hyperxmp-add-bytecount} automatically every time a \acro{PDF} file
% is generated. Simply add the code shown in Figure~\ref{fig:latexmkrc}
% to your \progname{latexmk} configuration file. See
% \href{http://mirrors.ctan.org/support/latexmk/latexmk.pdf}{the
@@ -1515,6 +1517,9 @@
% \protect\progname{add\_byteCount} script and document some sample
% \protect\progname{latexmk} configuration code that invokes it.
% Thanks to John Collins for providing both of those}
+% \changes{v5.9}{2020/11/22}{At Karl Berry's request, rename
+% \protect\progname{add\_byteCount} to the less generic-sounding
+% \protect\progname{hyperxmp-add-bytecount}}
%
% \iffalse
%<*listings>
@@ -1528,17 +1533,18 @@
frame=single,
basicstyle=\footnotesize,
showstringspaces=false,
- upquote=true
+ upquote=true,
+ literate={-}{-}{1}
]
foreach my $cmd ( "latex", "lualatex", "pdflatex", "xelatex",
"dvipdf", "xdvipdfmx", "ps2pdf" ) {
- ${$cmd} = "internal mycmd4 ${$cmd}";
+ ${$cmd} = "internal mycmd ${$cmd}";
}
-sub mycmd4 {
+sub mycmd {
my $retval = system @_;
if ( $$Pdest =~ /\.pdf$/ ) {
- system 'add_byteCount', $$Pdest;
+ system 'hyperxmp-add-bytecount', $$Pdest;
}
return $retval;
}
@@ -1552,7 +1558,7 @@ sub mycmd4 {
% \centering
% \usebox{\latexmkrcbox}
% \caption{ \progname{latexmk} configuration-file code for
-% automatically invoking \progname{add\_byteCount} every time a
+% automatically invoking \progname{hyperxmp-add-bytecount} every time a
% \acro{PDF} file is generated}
% \label{fig:latexmkrc}
% \end{figure}