From 49b2ae38209e586fb12ce3664f92b24ce29d7162 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 10 Dec 2012 21:24:54 +0000 Subject: ocgx (10dec12) git-svn-id: svn://tug.org/texlive/trunk@28492 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/ocgx/ocgx.sty | 50 +++++++++++++++---------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'Master/texmf-dist/tex/latex/ocgx') diff --git a/Master/texmf-dist/tex/latex/ocgx/ocgx.sty b/Master/texmf-dist/tex/latex/ocgx/ocgx.sty index f2a7fb135f8..6ac757d5e5c 100644 --- a/Master/texmf-dist/tex/latex/ocgx/ocgx.sty +++ b/Master/texmf-dist/tex/latex/ocgx/ocgx.sty @@ -6,35 +6,35 @@ % 2. under the GNU Public License. \NeedsTeXFormat{LaTeX2e}[1994/06/01] -\def\ocgxversion{0.4} +\def\ocgxversion{0.5} \ProvidesPackage{ocgx}[2012/11/14 v\ocgxversion{} manage OCG in PDF document] -\RequirePackage{ocg} +\RequirePackage{ocg-p} %%%% small patch to ocg.sty %%%% % called from the aux file -\def\@ocg@makeknown#1#2#3{% #1: OCG name, #2: OC id, #3: on/off - \@ifundefined{OCG#2}{% - %\message{OCG#2}% - \expandafter\gdef\csname OCG#2\endcsname{#1}% - \immediate\pdfobj{<< /Type /OCG /Name (#1) >>}% new ocg - \xdef\@ocg@curocg{\the\pdflastobj\space 0 R}% reference to id - % *** PATCH *** - \expandafter\xdef\csname OCGpdfobj#2\endcsname{\@ocg@curocg} - % *** END OF PATCH *** - \xdef\@ocg@ocgs{\@ocg@ocgs\space\@ocg@curocg}% list of all OCGs in "first defined" order - \ifnum#3=1 %on - \xdef\@ocg@ocgson{\@ocg@ocgson\space\@ocg@curocg}% list of all default-on OCGs - \else% - \xdef\@ocg@ocgsoff{\@ocg@ocgsoff\space\@ocg@curocg}% list of all default-off OCGs - \fi% - \xdef\@ocg@layersnames{% - \@ocg@layersnames\space/OC#2\space\@ocg@curocg% name-to-id mapping - }% - }{% - %\message{OCG#2 reopened}% - % layer reopened - }% -} +% \def\@ocg@makeknown#1#2#3{% #1: OCG name, #2: OC id, #3: on/off +% \@ifundefined{OCG#2}{% +% %\message{OCG#2}% +% \expandafter\gdef\csname OCG#2\endcsname{#1}% +% \immediate\pdfobj{<< /Type /OCG /Name (#1) >>}% new ocg +% \xdef\@ocg@curocg{\the\pdflastobj\space 0 R}% reference to id +% % *** PATCH *** +% \expandafter\xdef\csname OCGpdfobj#2\endcsname{\@ocg@curocg} +% % *** END OF PATCH *** +% \xdef\@ocg@ocgs{\@ocg@ocgs\space\@ocg@curocg}% list of all OCGs in "first defined" order +% \ifnum#3=1 %on +% \xdef\@ocg@ocgson{\@ocg@ocgson\space\@ocg@curocg}% list of all default-on OCGs +% \else% +% \xdef\@ocg@ocgsoff{\@ocg@ocgsoff\space\@ocg@curocg}% list of all default-off OCGs +% \fi% +% \xdef\@ocg@layersnames{% +% \@ocg@layersnames\space/OC#2\space\@ocg@curocg% name-to-id mapping +% }% +% }{% +% %\message{OCG#2 reopened}% +% % layer reopened +% }% +% } %%%% END OF PATCH %%%% \csname ocgx@end:ENDOFOCGS\endcsname -- cgit v1.2.3