From f27f4428dacf3f21f978273d4e174f3e7d27e8ea Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 18 Jun 2016 15:51:58 +0000 Subject: pdfcomment (15jun16) git-svn-id: svn://tug.org/texlive/trunk@41484 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/pdfcomment/pdfcomment.sty | 45 +++++++++++++++------- 1 file changed, 32 insertions(+), 13 deletions(-) (limited to 'Master/texmf-dist/tex/latex/pdfcomment') diff --git a/Master/texmf-dist/tex/latex/pdfcomment/pdfcomment.sty b/Master/texmf-dist/tex/latex/pdfcomment/pdfcomment.sty index e4d8b972417..e12074162a8 100644 --- a/Master/texmf-dist/tex/latex/pdfcomment/pdfcomment.sty +++ b/Master/texmf-dist/tex/latex/pdfcomment/pdfcomment.sty @@ -13,14 +13,14 @@ %% and version 1.3 or later is part of all distributions of LaTeX version %% 2003/12/01 or later. %% -%% This work has the LPPL maintenance status "author-maintained". +%% This work has the LPPL maintenance status "maintained". %% %% The Current Maintainer of this work is Josef Kleber. %% %% This work consists of all files listed in manifest.txt. %% % -\ProvidesPackage{pdfcomment}[2016/03/26 pdfcomment.sty v2.3b - Josef Kleber (C) 2008-2012, 2015-2016]% +\ProvidesPackage{pdfcomment}[2016/06/13 pdfcomment.sty v2.4 - Josef Kleber (C) 2008-2012, 2015-2016]% % \RequirePackage{xkeyval}% % @@ -154,6 +154,7 @@ \gdef\pc@lopt@co{}% % \newif\ifpc@gopt@dvipdfmx\pc@gopt@dvipdfmxfalse% +\newif\ifpc@gopt@xelatex\pc@gopt@xelatexfalse% \newif\ifpc@gopt@final\pc@gopt@finalfalse% \newif\ifpc@lopt@disable\pc@lopt@disablefalse% \newif\ifpc@gopt@disable\pc@gopt@disablefalse% @@ -1328,6 +1329,16 @@ % \ProcessOptionsX\relax% % +\RequirePackage{etoolbox}% +% luatex v0.85+ ??? +\ifdef\pdffeedback +{% + \RequirePackage{luatex85}% + \RequirePackage{datetime2}[2016/06/04]% +}% +{% + \RequirePackage{datetime2}% +}% \RequirePackage{zref-savepos}[2007/04/22]% \zref@require@unique% \RequirePackage{refcount}% @@ -1335,7 +1346,6 @@ \RequirePackage{calc}% \RequirePackage{marginnote}% \RequirePackage{ifpdf}% -\RequirePackage{datetime}% \RequirePackage{soulpos}% % %hyperref setup @@ -1373,6 +1383,7 @@ \fi% \else% \global\pc@gopt@dvipdfmxtrue% + \global\pc@gopt@xelatextrue% \@ifpackageloaded{hyperref}% {% \hypersetup{xetex}% @@ -1473,7 +1484,6 @@ \hsize=0pt% \noindent% \vspace{\pc@lopt@voffset}% - \vspace{\normalbaselineskip}% \hbox to 0pt% {% \vsize=0pt% @@ -1580,7 +1590,6 @@ \hsize=0pt% \noindent% \vspace{\pc@lopt@voffset}% - \vspace{\normalbaselineskip}% \hbox to 0pt% {% \vsize=0pt% @@ -2994,16 +3003,26 @@ \strip@pt\dimexpr .996264\dimexpr #1\relax\relax% }% % -% thanks to Heiko Oberdiek (Msg-ID: ) -\begingroup\expandafter\expandafter\expandafter\endgroup\expandafter\ifx\csname pdfcreationdate\endcsname\relax% - \edef\pc@pdfdate@edef{D:\pdfdate\pc@lopt@timezone}% -\else% - \edef\pc@pdfdate@edef{\pdfcreationdate}% -\fi% -% \newcommand*{\pc@pdfdate@auto}% {% - \pc@pdfdate@edef% + \ifpc@gopt@xelatex + D:\@dtm@currentyear% + \DTMtwodigits{\@dtm@currentmonth}% + \DTMtwodigits{\@dtm@currentday}% + \DTMtwodigits{\@dtm@currenthour}% + \DTMtwodigits{\@dtm@currentminute}% + \DTMtwodigits{\@dtm@currentsecond}% + \pc@lopt@timezone% + \else% + D:\@dtm@currentyear% + \DTMtwodigits{\@dtm@currentmonth}% + \DTMtwodigits{\@dtm@currentday}% + \DTMtwodigits{\@dtm@currenthour}% + \DTMtwodigits{\@dtm@currentminute}% + \DTMtwodigits{\@dtm@currentsecond}% + \ifnum\@dtm@currenttimezonehour<0\else+\fi\DTMtwodigits{\@dtm@currenttimezonehour}% + \DTMtwodigits{\@dtm@currenttimezoneminute}% + \fi% }% % \newcommand{\pc@annot@calc@pos}% -- cgit v1.2.3