summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/pdfpc
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-02-14 03:00:50 +0000
committerNorbert Preining <norbert@preining.info>2021-02-14 03:00:50 +0000
commit8c6ca435b3bc584eb3efe8e52417fb989e677789 (patch)
tree08bae5450fe9e553e2b28cb984cae56e8d9e0990 /macros/latex/contrib/pdfpc
parent3d0d4d2ed250339f704c23ea8f24670c70d5981f (diff)
CTAN sync 202102140300
Diffstat (limited to 'macros/latex/contrib/pdfpc')
-rw-r--r--macros/latex/contrib/pdfpc/pdfpc-doc.pdfbin173201 -> 173172 bytes
-rw-r--r--macros/latex/contrib/pdfpc/pdfpc-doc.tex6
-rw-r--r--macros/latex/contrib/pdfpc/pdfpc.sty39
3 files changed, 34 insertions, 11 deletions
diff --git a/macros/latex/contrib/pdfpc/pdfpc-doc.pdf b/macros/latex/contrib/pdfpc/pdfpc-doc.pdf
index fbb28d42df..94321f63a5 100644
--- a/macros/latex/contrib/pdfpc/pdfpc-doc.pdf
+++ b/macros/latex/contrib/pdfpc/pdfpc-doc.pdf
Binary files differ
diff --git a/macros/latex/contrib/pdfpc/pdfpc-doc.tex b/macros/latex/contrib/pdfpc/pdfpc-doc.tex
index 354b41900f..c700b45411 100644
--- a/macros/latex/contrib/pdfpc/pdfpc-doc.tex
+++ b/macros/latex/contrib/pdfpc/pdfpc-doc.tex
@@ -43,7 +43,7 @@
\title{The \sty{pdfpc} package \\ {\large\url{https://github.com/pdfpc/pdfpc}}}
\author{Evgeny Stambulchik}
-\date{2020/12/05 (v0.5.1)}
+\date{2021/02/06 (v0.6.0)}
\hypersetup{pdftitle={The pdfpc package}, pdfauthor={Evgeny Stambulchik}}
@@ -66,8 +66,8 @@ GitHub}\footnote{\url{https://pdfpc.github.io/}}.
It depends on the following packages:
-\begin{multicols}{3}\sffamily\centering
-kvoptions \\ xstring \\ hyperxmp
+\begin{multicols}{4}\sffamily\centering
+kvoptions \\ xstring \\ iftex \\ hyperxmp
\end{multicols}
\section*{License}
diff --git a/macros/latex/contrib/pdfpc/pdfpc.sty b/macros/latex/contrib/pdfpc/pdfpc.sty
index 17a813f15d..579c35865a 100644
--- a/macros/latex/contrib/pdfpc/pdfpc.sty
+++ b/macros/latex/contrib/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