From 251d17218fcf483014c5d717e1e70fe224bcdc0a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 28 Mar 2016 21:55:48 +0000 Subject: pdfcomment (28mar16) git-svn-id: svn://tug.org/texlive/trunk@40166 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/pdfcomment/pdfcomment.sty | 33 ++++++++++++---------- 1 file changed, 18 insertions(+), 15 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 e3e4d507a37..e4d8b972417 100644 --- a/Master/texmf-dist/tex/latex/pdfcomment/pdfcomment.sty +++ b/Master/texmf-dist/tex/latex/pdfcomment/pdfcomment.sty @@ -1,5 +1,5 @@ %% -%% Copyright (C) 2008-2012 by: +%% Copyright (C) 2008-2012, 2015-2016 by: %% Josef Kleber %% %% @@ -20,7 +20,7 @@ %% This work consists of all files listed in manifest.txt. %% % -\ProvidesPackage{pdfcomment}[2012/09/28 pdfcomment.sty v2.3a - Josef Kleber (C) 2008-2012]% +\ProvidesPackage{pdfcomment}[2016/03/26 pdfcomment.sty v2.3b - Josef Kleber (C) 2008-2012, 2015-2016]% % \RequirePackage{xkeyval}% % @@ -173,6 +173,7 @@ \newcounter{pc@count@iv}% % \newbox\pc@mathannot@box% +\newbox\pc@nullbox% % \newlength{\pc@dima}% \newlength{\pc@dimb}% @@ -1344,7 +1345,7 @@ \hypersetup{pdftex}% }% {% - \RequirePackage[pdftex]{hyperref}[2007/04/09]% + \RequirePackage[pdftex,pdfencoding=auto]{hyperref}[2007/06/12]% }% \else% % to avoid problems with different default page size in @@ -1359,7 +1360,7 @@ \hypersetup{dvipdfmx}% }% {% - \RequirePackage[dvipdfmx]{hyperref}[2007/04/09]% + \RequirePackage[dvipdfmx,pdfencoding=auto]{hyperref}[2007/06/12]% }% \else% \@ifpackageloaded{hyperref}% @@ -1367,7 +1368,7 @@ \hypersetup{dvips}% }% {% - \RequirePackage[dvips]{hyperref}[2007/04/09]% + \RequirePackage[dvips,pdfencoding=auto]{hyperref}[2007/06/12]% }% \fi% \else% @@ -1377,7 +1378,7 @@ \hypersetup{xetex}% }% {% - \RequirePackage[xetex]{hyperref}[2007/04/09]% + \RequirePackage[xetex,pdfencoding=auto]{hyperref}[2007/06/12]% }% \fi% \fi% @@ -1432,7 +1433,7 @@ {% \vsize=0pt% \hskip\pc@lopt@hoffset% - \pdfannot width 0pt height \normalbaselineskip depth 0pt% + \pdfannot width \normalbaselineskip height \normalbaselineskip depth 0pt% {% /Subtype /Text% \pc@annot@text% @@ -1457,7 +1458,7 @@ {% \vsize=0pt% \hskip\pc@lopt@hoffset% - \special{pdf: ann width 0pt\space height \the\normalbaselineskip\space depth 0pt% + \special{pdf: ann width \the\normalbaselineskip\space height \the\normalbaselineskip\space depth 0pt% <<% /Subtype /Text% \pc@annot@text% @@ -1477,7 +1478,7 @@ {% \vsize=0pt% \hskip\pc@lopt@hoffset% - \pdfmark[\rule{0pt}{0pt}]% + \pdfmark[\rule{\normalbaselineskip}{0pt}\rule{0pt}{\normalbaselineskip}]% {% pdfmark=/ANN,% Subtype=/Text,% @@ -1539,7 +1540,7 @@ {% \vsize=0pt% \hskip\pc@lopt@hoffset% - \pdfannot width 0pt height \normalbaselineskip depth 0pt% + \pdfannot width \normalbaselineskip height \normalbaselineskip depth 0pt% {% /Subtype /Text% \pc@annot@text% @@ -1564,7 +1565,7 @@ {% \vsize=0pt% \hskip\pc@lopt@hoffset% - \special{pdf: ann width 0pt\space height \the\normalbaselineskip\space depth 0pt% + \special{pdf: ann width \the\normalbaselineskip\space height \the\normalbaselineskip\space depth 0pt% <<% /Subtype /Text% \pc@annot@text% @@ -1584,7 +1585,7 @@ {% \vsize=0pt% \hskip\pc@lopt@hoffset% - \pdfmark[\rule{0pt}{0pt}]% + \pdfmark[\rule{\normalbaselineskip}{0pt}\rule{0pt}{\normalbaselineskip}]% {% pdfmark=/ANN,% Subtype=/Text,% @@ -2542,7 +2543,7 @@ % Change local options if specified \setkeys{pdftooltip}{#1}% \ifmmode% - \marginnote{\pc@encode@PDF@math{#3}}% + \setbox\pc@nullbox=\hbox{\pc@encode@PDF@math{#3}}% \ifpc@lopt@disable% #2% \else% @@ -2576,7 +2577,7 @@ \fi% \fi% \else% - \pc@encode@PDF{#3}% + \expandafter\pc@encode@PDF{#3}% \ifpc@lopt@disable% #2% \else% @@ -2962,10 +2963,12 @@ {% /TU (\pc@pdfenc@contents)\space% /T (tooltip \thezref@unique)\space% - /C [0 0 0]\space% + /C [ ]\space% /FT/Btn\space% + /F 768\space% /Ff 65536\space% /H/N\space% + /BS << /W 0 >>\space% }% % \newcommand{\pc@create@pdfannotopt}% -- cgit v1.2.3