summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/dccpaper/dccpaper-base.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/dccpaper/dccpaper-base.sty')
-rw-r--r--Master/texmf-dist/tex/latex/dccpaper/dccpaper-base.sty126
1 files changed, 10 insertions, 116 deletions
diff --git a/Master/texmf-dist/tex/latex/dccpaper/dccpaper-base.sty b/Master/texmf-dist/tex/latex/dccpaper/dccpaper-base.sty
index 6e6a0d7a3dd..42626b0ac49 100644
--- a/Master/texmf-dist/tex/latex/dccpaper/dccpaper-base.sty
+++ b/Master/texmf-dist/tex/latex/dccpaper/dccpaper-base.sty
@@ -14,7 +14,7 @@
%% See: http://www.latex-project.org/lppl.txt
%% ----------------------------------------------------------------
%%
-\def\Version{2021/01/25 v2.1}
+\def\Version{2021/09/03 v2.2}
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{dccpaper-base}
[\Version\space Common class code for IJDC and IDCC papers.]
@@ -770,6 +770,12 @@
\\{\mathbin{\backslash}}\UrlTildeSpecial}
}
+\RequirePackage{hyperxmp}
+\hypersetup{keeppdfinfo}
+\def\cc@xmp@packet{}
+\def\hyxmp@construct@packet{%
+ \let\hyxmp@xml\cc@xmp@packet
+}
\begingroup
\catcode`\"=12
\catcode`\&=12
@@ -780,7 +786,7 @@
\AtBeginDocument{%
\def\sp{\space\space\space}
\long\gdef\cc@xmp@packet{%
-<?xpacket begin='' id=''?>^^J%
+<?xpacket begin="\hyxmp@bom" id="W5M0MpCehiHzreSzNTczkc9d"?>^^J%
<x:xmpmeta xmlns:x='adobe:ns:meta/'>^^J%
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>^^J%
\sp<rdf:Description rdf:about=''^^J%
@@ -801,123 +807,11 @@
\sp</rdf:Description>^^J%
</rdf:RDF>^^J%
</x:xmpmeta>^^J%
-<?xpacket end='r'?>^^J%
+\hyxmp@padding
+<?xpacket end="w"?>^^J%
}%
}
\endgroup
-\newcommand*{\ccxmp@embed@packet@pdftex}{%
- \bgroup
- \pdfcompresslevel=0
- \immediate\pdfobj stream attr {%
- /Type /Metadata
- /Subtype /XML
- }{\cc@xmp@packet}%
- \pdfcatalog {/Metadata \the\pdflastobj\space 0 R}%
- \egroup
-}
-\newcommand*{\ccxmp@embed@packet@pdfmark}{%
- \pdfmark{%
- pdfmark=/NamespacePush
- }%
- \pdfmark{%
- pdfmark=/OBJ,
- Raw={/_objdef \string{ccxmp@packet\string} /type /stream}%
- }%
- \pdfmark{%
- pdfmark=/PUT,
- Raw={\string{ccxmp@packet\string}
- 2 dict begin
- /Type /Metadata def
- /Subtype /XML def
- currentdict
- end
- }%
- }%
- \pdfmark{%
- pdfmark=/PUT,
- Raw={\string{ccxmp@packet\string} (\cc@xmp@packet)}%
- }%
- \pdfmark{%
- pdfmark=/Metadata,
- Raw={\string{Catalog\string} \string{ccxmp@packet\string}}%
- }%
- \pdfmark{%
- pdfmark=/NamespacePop
- }%
-}
-\def\ccxmp@count@spaces#1 {%
- \def\ccxmp@one@token{#1}%
- \ifx\ccxmp@one@token\@empty
- \advance\@tempcnta by -1
- \else
- \advance\@tempcnta by 1
- \expandafter\ccxmp@count@spaces
- \fi
-}
-\newcommand*{\ccxmp@count@non@spaces}[1]{%
- \def\ccxmp@one@token{#1}%
- \ifx\ccxmp@one@token\@empty
- \else
- \advance\@tempcnta by 1
- \expandafter\ccxmp@count@non@spaces
- \fi
-}
-\newcommand*{\ccxmp@string@len}[1]{%
- \@tempcnta=0
- \expandafter\ccxmp@count@spaces#1 {} %
- \expandafter\ccxmp@count@non@spaces#1{}%
-}
-\newcommand*{\ccxmp@embed@packet@dvipdfm}{%
- \ccxmp@string@len{\cc@xmp@packet}%
- \special{pdf: object @ccxmp@packet
- <<
- /Type /Metadata
- /Subtype /XML
- /Length \the\@tempcnta
- >>
- stream^^J\cc@xmp@packet endstream%
- }%
- \special{pdf: docview
- <<
- /Metadata @ccxmp@packet
- >>
- }%
-}
-\newcommand*{\ccxmp@embed@packet@xetex}{%
- \special{pdf:stream @ccxmp@packet (\cc@xmp@packet)
- <<
- /Type /Metadata
- /Subtype /XML
- >>
- }%
- \special{pdf:put @catalog
- <<
- /Metadata @ccxmp@packet
- >>
- }%
-}
-\AtBeginDocument{%
- \begingroup
- \def\ccxmp@driver{hpdftex}%
- \ifx\ccxmp@driver\Hy@driver
- \ccxmp@embed@packet@pdftex
- \else
- \def\ccxmp@driver{hdvipdfm}%
- \ifx\ccxmp@driver\Hy@driver
- \ccxmp@embed@packet@dvipdfm
- \else
- \def\ccxmp@driver{hxetex}%
- \ifx\ccxmp@driver\Hy@driver
- \ccxmp@embed@packet@xetex
- \else
- \@ifundefined{pdfmark}{}{%
- \ccxmp@embed@packet@pdfmark
- }%
- \fi
- \fi
- \fi
- \endgroup
-}
%%
%% Copyright (C) 2021 Digital Curation Centre, University of Edinburgh
%% <info@dcc.ac.uk>