diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/hyperxmp/hyperxmp.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/hyperxmp/hyperxmp.dtx | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/Master/texmf-dist/source/latex/hyperxmp/hyperxmp.dtx b/Master/texmf-dist/source/latex/hyperxmp/hyperxmp.dtx index 4bfa8d7b474..78dedace992 100644 --- a/Master/texmf-dist/source/latex/hyperxmp/hyperxmp.dtx +++ b/Master/texmf-dist/source/latex/hyperxmp/hyperxmp.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright (C) 2011 by Scott Pakin <scott+hyxmp@pakin.org> +% Copyright (C) 2012 by Scott Pakin <scott+hyxmp@pakin.org> % ------------------------------------------------------- % % This file may be distributed and/or modified under the @@ -22,7 +22,7 @@ %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01] %<package>\ProvidesPackage{hyperxmp} %<*package> - [2011/06/12 v1.4 Store hyperref metadata in XMP format] + [2012/03/10 v1.5 Store hyperref metadata in XMP format] %</package> % %<*driver> @@ -42,7 +42,7 @@ %</driver> % \fi % -% \CheckSum{884} +% \CheckSum{898} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -120,7 +120,7 @@ % pdftitle={The hyperxmp package}, % pdfsubject={LaTeX2e support for XMP metadata}, % pdfkeywords={LaTeX, embedded metadata, XMP, PDF, copyright, license, comments}, -% pdfcopyright={Copyright (C) 2011, Scott Pakin}, +% pdfcopyright={Copyright (C) 2012, Scott Pakin}, % pdflicenseurl={http://www.latex-project.org/lppl/}, % pdfcaptionwriter={Scott Pakin} % } @@ -544,6 +544,27 @@ % \end{macrocode} % \end{macro} % +% \changes{v1.5}{2012/03/10}{Made the XMP inclusion more robust. Thanks to +% Heiko Oberdiek for the bug report and suggested modifications.} +% +% \begin{macro}{\hyxmp@at@end} +% \begin{macro}{\hyxmp@driver} +% The |\hyxmp@at@end| macro includes code at the end of the document. +% For pdf\TeX, the standard |\AtEndDocument| works well enough. For all +% the other backends we use |\AtEndDvi| from the \pkgname{atenddvi} +% package, which is more robust but requires an addition \LaTeX\ run. +% \begin{macrocode} +\def\hyxmp@driver{hpdftex} +\ifx\hyxmp@driver\Hy@driver + \let\hyxmp@at@end=\AtEndDocument +\else + \RequirePackage{atenddvi} + \let\hyxmp@at@end=\AtEndDvi +\fi +% \end{macrocode} +% \end{macro} +% \end{macro} +% % % \subsection{Integration with \textsf{hyperref}} % @@ -680,7 +701,7 @@ metadata values to hyperxmp}% % the author ample opportunity to provide metadata to \pkgname{hyperref} % and thereby \pkgname{hyperxmp}. % \begin{macrocode} - \AtEndDocument{% + \hyxmp@at@end{% \hyxmp@find@metadata \hyxmp@embed@packet }% |