summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pdfcomment
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-06-18 15:51:58 +0000
committerKarl Berry <karl@freefriends.org>2016-06-18 15:51:58 +0000
commitf27f4428dacf3f21f978273d4e174f3e7d27e8ea (patch)
treea96509beb824a4ba8115fa2ef137633c792ccddd /Master/texmf-dist/tex/latex/pdfcomment
parentfca717399bb79f5db531685f7e16aa0e0f40a71f (diff)
pdfcomment (15jun16)
git-svn-id: svn://tug.org/texlive/trunk@41484 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/pdfcomment')
-rw-r--r--Master/texmf-dist/tex/latex/pdfcomment/pdfcomment.sty45
1 files changed, 32 insertions, 13 deletions
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: <ich62p$80k$1@news.eternal-september.org>)
-\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}%