summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-02-13 22:18:48 +0000
committerKarl Berry <karl@freefriends.org>2021-02-13 22:18:48 +0000
commit94faf82bbf3cb74039496233e5eb5abdcbef739d (patch)
treeb237c813e11b925c046dafd66c16b09008d2d127 /Master/texmf-dist/tex/latex
parent122c974d05b7cd8313c8fda65d2c8d9d06b7c3ab (diff)
pdfpc (13feb21)
git-svn-id: svn://tug.org/texlive/trunk@57735 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/pdfpc/pdfpc.sty39
1 files changed, 31 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/pdfpc/pdfpc.sty b/Master/texmf-dist/tex/latex/pdfpc/pdfpc.sty
index 17a813f15d3..579c35865a4 100644
--- a/Master/texmf-dist/tex/latex/pdfpc/pdfpc.sty
+++ b/Master/texmf-dist/tex/latex/pdfpc/pdfpc.sty
@@ -30,12 +30,13 @@
%
% -------------------------------------------------------------------------------------------
%
-\ProvidesPackage{pdfpc}[2020/12/05 v0.5.1 PDFPC]
+\ProvidesPackage{pdfpc}[2021/02/06 v0.6.0 PDFPC]
\NeedsTeXFormat{LaTeX2e}
%
% Require additional packages needed by \sty{pdfpc}:
\RequirePackage{kvoptions}
\RequirePackage{xstring}
+\RequirePackage{iftex}
\RequirePackage{hyperxmp}
%
\SetupKeyvalOptions{
@@ -148,14 +149,36 @@ ______</rdf:Description>^^J%
\ifPDFPC@hidenotes%
\newcommand{\pdfpcnote}[1]{}%
\else%
- \newcommand{\pdfpcnote}[1]{%
- \edef\\{\string\n}%
- \pdfannot width 0pt height 0pt depth 0pt {%
- /Subtype /Text%
- /Contents (#1)%
+ \ifXeTeX%
+ \newcommand{\pdfpcnote}[1]{%
+ {%
+ \edef\\{\string\n}%
+ \special{pdf: ann width 0pt height 0pt depth 0pt%
+ <<%
+ /Subtype /Text%
+ /Contents (#1)%
+ /F 6%
+ >>%
+ }%
+ }%
+ \relax%
}%
- \relax%
- }%
+ \else%
+ \ifLuaTeX%
+ \protected\def\pdfannot {\pdfextension annot }%
+ \fi%
+ \newcommand{\pdfpcnote}[1]{%
+ {%
+ \edef\\{\string\n}%
+ \pdfannot width 0pt height 0pt depth 0pt {%
+ /Subtype /Text%
+ /Contents (#1)%
+ /F 6%
+ }%
+ }%
+ \relax%
+ }%
+ \fi%
\fi%
%
\endinput