From 9f5467bda844e5ea99047c80e8fcc16b5141f2d2 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 30 Nov 2009 23:07:58 +0000 Subject: pdfcomment 1.5b (30nov09) git-svn-id: svn://tug.org/texlive/trunk@16249 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/pdfcomment/pdfcomment.sty | 77 +++++++++++++++++++++- 1 file changed, 74 insertions(+), 3 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 a497f2b178d..35c04be3b7a 100644 --- a/Master/texmf-dist/tex/latex/pdfcomment/pdfcomment.sty +++ b/Master/texmf-dist/tex/latex/pdfcomment/pdfcomment.sty @@ -20,7 +20,7 @@ %% This work consists of all files listed in manifest.txt. %% % -\ProvidesPackage{pdfcomment}[2009/11/04 pdfcomment.sty v1.5a - Josef Kleber (C) 2008-2009]% +\ProvidesPackage{pdfcomment}[2009/11/10 pdfcomment.sty v1.5b - Josef Kleber (C) 2008-2009]% % \RequirePackage{xkeyval}% % @@ -28,6 +28,7 @@ \gdef\pc@goptd@subject{}% \gdef\pc@goptd@color{0 0 1}% \gdef\pc@goptd@author{}% +\gdef\pc@goptd@deadline{}% \gdef\pc@goptd@icon{Comment}% \gdef\pc@goptd@open{false}% \gdef\pc@goptd@hspace{0pt}% @@ -62,6 +63,7 @@ \gdef\pc@gopt@subject{}% \gdef\pc@gopt@color{}% \gdef\pc@gopt@author{}% +\gdef\pc@gopt@deadline{}% \gdef\pc@gopt@icon{}% \gdef\pc@gopt@open{}% \gdef\pc@gopt@hspace{}% @@ -95,6 +97,7 @@ \gdef\pc@lopt@subject{}% \gdef\pc@lopt@color{}% \gdef\pc@lopt@author{}% +\gdef\pc@lopt@deadline{}% \gdef\pc@lopt@icon{}% \gdef\pc@lopt@open{}% \gdef\pc@lopt@hspace{}% @@ -237,6 +240,12 @@ \gdef\pc@gopt@author{#1}% }% % +% define global command option deadline for setting a deadline in the pdf annotations +\define@key{pdfcomment.sty}{deadline}[\pc@goptd@deadline]% +{% + \gdef\pc@gopt@deadline{#1}% +}% +% % define global style option icon for setting the icon of pdf annotations \define@key{pdfcomment.sty}{icon}[\pc@goptd@icon]% {% @@ -503,6 +512,12 @@ \gdef\pc@lopt@author{#1}% }% % +% define local command option deadline for setting a deadline in the pdf annotations +\define@key{pdfcomment}{deadline}[\pc@gopt@deadline]% +{% + \gdef\pc@lopt@deadline{#1}% +}% +% % define local command option icon for setting the icon of pdf annotations \define@key{pdfcomment}{icon}[\pc@gopt@icon]% {% @@ -773,6 +788,12 @@ \gdef\pc@lopt@author{#1}% }% % +% define local command option deadline for setting a deadline in the pdf annotations +\define@key{pdfmargincomment}{deadline}[\pc@gopt@deadline]% +{% + \gdef\pc@lopt@deadline{#1}% +}% +% % define local command option icon for setting the icon of pdf annotations \define@key{pdfmargincomment}{icon}[\pc@gopt@icon]% {% @@ -1043,6 +1064,12 @@ \gdef\pc@lopt@author{#1}% }% % +% define local command option deadline for setting a deadline in the pdf annotations +\define@key{pdffreetextcomment}{deadline}[\pc@gopt@deadline]% +{% + \gdef\pc@lopt@deadline{#1}% +}% +% % define local command option icon for setting the icon of pdf annotations \define@key{pdffreetextcomment}{icon}[\pc@gopt@icon]% {% @@ -1301,6 +1328,12 @@ \gdef\pc@lopt@author{#1}% }% % +% define local command option deadline for setting a deadline in the pdf annotations +\define@key{pdfmarkupcomment}{deadline}[\pc@gopt@deadline]% +{% + \gdef\pc@lopt@deadline{#1}% +}% +% % define local command option icon for setting the icon of pdf annotations \define@key{pdfmarkupcomment}{icon}[\pc@gopt@icon]% {% @@ -1575,6 +1608,12 @@ \gdef\pc@lopt@author{#1}% }% % +% define local command option deadline for setting a deadline in the pdf annotations +\define@key{pdfsquarecomment}{deadline}[\pc@gopt@deadline]% +{% + \gdef\pc@lopt@deadline{#1}% +}% +% % define local command option icon for setting the icon of pdf annotations \define@key{pdfsquarecomment}{icon}[\pc@gopt@icon]% {% @@ -1840,6 +1879,12 @@ \gdef\pc@lopt@author{#1}% }% % +% define local command option deadline for setting a deadline in the pdf annotations +\define@key{pdfcirclecomment}{deadline}[\pc@gopt@deadline]% +{% + \gdef\pc@lopt@deadline{#1}% +}% +% % define local command option icon for setting the icon of pdf annotations \define@key{pdfcirclecomment}{icon}[\pc@gopt@icon]% {% @@ -2105,6 +2150,12 @@ \gdef\pc@lopt@author{#1}% }% % +% define local command option deadline for setting a deadline in the pdf annotations +\define@key{pdflinecomment}{deadline}[\pc@gopt@deadline]% +{% + \gdef\pc@lopt@deadline{#1}% +}% +% % define local command option icon for setting the icon of pdf annotations \define@key{pdflinecomment}{icon}[\pc@gopt@icon]% {% @@ -2369,6 +2420,12 @@ \gdef\pc@lopt@author{#1}% }% % +% define local command option deadline for setting a deadline in the pdf annotations +\define@key{pdfsidelinecomment}{deadline}[\pc@gopt@deadline]% +{% + \gdef\pc@lopt@deadline{#1}% +}% +% % define local command option icon for setting the icon of pdf annotations \define@key{pdfsidelinecomment}{icon}[\pc@gopt@icon]% {% @@ -2598,7 +2655,7 @@ \renewcommand{\lpcname}{#1}% }% % -\ExecuteOptionsX{subject,color,author,icon,open,hspace,voffset,hoffset,width,height,depth,opacity,markup,font,fontsize,fontcolor,justification,borderstyle,linewidth,dashstyle,bse,bsei,type,lineend,linebegin,icolor,line,caption,captionhoffset,captionvoffset,linesep}% +\ExecuteOptionsX{subject,color,author,deadline,icon,open,hspace,voffset,hoffset,width,height,depth,opacity,markup,font,fontsize,fontcolor,justification,borderstyle,linewidth,dashstyle,bse,bsei,type,lineend,linebegin,icolor,line,caption,captionhoffset,captionvoffset,linesep}% % \ProcessOptionsX\relax% % @@ -3476,10 +3533,15 @@ }% % \defineliststyle{AuthorSubject}{\pc@lopt@author\ - \pc@lopt@subject}% +\defineliststyle{AuthorSubjectDeadline}{\pc@lopt@author\ - \pc@lopt@subject\ (\pc@lopt@deadline)}% \defineliststyle{SubjectAuthorComment}{\pc@lopt@subject\ (\pc@lopt@author): \pc@lopt@comment}% +\defineliststyle{SubjectAuthorCommentDeadline}{\pc@lopt@subject\ (\pc@lopt@author): \pc@lopt@comment\ (\pc@lopt@deadline)}% \defineliststyle{AuthorComment}{\pc@lopt@author: \pc@lopt@comment}% +\defineliststyle{AuthorCommentDeadline}{\pc@lopt@author: \pc@lopt@comment\ (\pc@lopt@deadline)}% \defineliststyle{SubjectComment}{\pc@lopt@subject: \pc@lopt@comment}% +\defineliststyle{SubjectCommentDeadline}{\pc@lopt@subject: \pc@lopt@comment\ (\pc@lopt@deadline)}% \defineliststyle{Comment}{\pc@lopt@comment}% +\defineliststyle{CommentDeadline}{\pc@lopt@comment\ (\pc@lopt@deadline)}% % \newcommand{\listofpdfcomments}[1][]% {% @@ -3524,6 +3586,7 @@ \gdef\pc@lopt@subject{\pc@gopt@subject}% \gdef\pc@lopt@color{\pc@gopt@color}% \gdef\pc@lopt@author{\pc@gopt@author}% + \gdef\pc@lopt@deadline{\pc@gopt@deadline}% \gdef\pc@lopt@icon{\pc@gopt@icon}% \gdef\pc@lopt@open{\pc@gopt@open}% \gdef\pc@lopt@hspace{\pc@gopt@hspace}% @@ -3557,7 +3620,15 @@ \newcommand{\pc@encode@PDF}[1]% {% \gdef\pc@lopt@comment{#1}% - \pdfstringdef\pc@pdfenc@contents{#1}% + \ifthenelse{\equal{\pc@lopt@deadline}{}}% + {% + \xdef\pc@comment@deadline{\pc@lopt@comment}% + \pdfstringdef\pc@pdfenc@contents{\pc@comment@deadline}% + }% + {% + \xdef\pc@comment@deadline{\pc@lopt@comment\noexpand\textCR(\pc@lopt@deadline)}% + \pdfstringdef\pc@pdfenc@contents{\pc@comment@deadline}% + }% \pdfstringdef\pc@pdfenc@author{\pc@lopt@author}% \pdfstringdef\pc@pdfenc@subject{\pc@lopt@subject}% \HyColor@XZeroOneThreeFour{\pc@lopt@color}{\pc@hyenc@color}{pdfcomment}{color}% -- cgit v1.2.3