From 8c6ca435b3bc584eb3efe8e52417fb989e677789 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sun, 14 Feb 2021 03:00:50 +0000 Subject: CTAN sync 202102140300 --- macros/latex/contrib/pdfpc/pdfpc-doc.pdf | Bin 173201 -> 173172 bytes macros/latex/contrib/pdfpc/pdfpc-doc.tex | 6 ++--- macros/latex/contrib/pdfpc/pdfpc.sty | 39 ++++++++++++++++++++++++------- 3 files changed, 34 insertions(+), 11 deletions(-) (limited to 'macros/latex/contrib/pdfpc') diff --git a/macros/latex/contrib/pdfpc/pdfpc-doc.pdf b/macros/latex/contrib/pdfpc/pdfpc-doc.pdf index fbb28d42df..94321f63a5 100644 Binary files a/macros/latex/contrib/pdfpc/pdfpc-doc.pdf and b/macros/latex/contrib/pdfpc/pdfpc-doc.pdf 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 @@ ______^^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 -- cgit v1.2.3