texlive[57735] Master/texmf-dist: pdfpc (13feb21)

commits+karl at tug.org commits+karl at tug.org
Sat Feb 13 23:18:48 CET 2021


Revision: 57735
          http://tug.org/svn/texlive?view=revision&revision=57735
Author:   karl
Date:     2021-02-13 23:18:48 +0100 (Sat, 13 Feb 2021)
Log Message:
-----------
pdfpc (13feb21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/pdfpc/pdfpc-doc.pdf
    trunk/Master/texmf-dist/doc/latex/pdfpc/pdfpc-doc.tex
    trunk/Master/texmf-dist/tex/latex/pdfpc/pdfpc.sty

Modified: trunk/Master/texmf-dist/doc/latex/pdfpc/pdfpc-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/pdfpc/pdfpc-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pdfpc/pdfpc-doc.tex	2021-02-13 22:18:29 UTC (rev 57734)
+++ trunk/Master/texmf-dist/doc/latex/pdfpc/pdfpc-doc.tex	2021-02-13 22:18:48 UTC (rev 57735)
@@ -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 @@
 
 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}

Modified: trunk/Master/texmf-dist/tex/latex/pdfpc/pdfpc.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pdfpc/pdfpc.sty	2021-02-13 22:18:29 UTC (rev 57734)
+++ trunk/Master/texmf-dist/tex/latex/pdfpc/pdfpc.sty	2021-02-13 22:18:48 UTC (rev 57735)
@@ -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 @@
 \ifPDFPC at 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



More information about the tex-live-commits mailing list.