diff options
author | Karl Berry <karl@freefriends.org> | 2012-12-10 21:24:54 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-12-10 21:24:54 +0000 |
commit | 49b2ae38209e586fb12ce3664f92b24ce29d7162 (patch) | |
tree | 8eac3b5a82bf7381ad878a41e2acfd514be1a339 /Master/texmf-dist/tex/latex/ocgx | |
parent | 362f16976de82e4f2551304ab60382bb4257bd12 (diff) |
ocgx (10dec12)
git-svn-id: svn://tug.org/texlive/trunk@28492 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ocgx')
-rw-r--r-- | Master/texmf-dist/tex/latex/ocgx/ocgx.sty | 50 |
1 files changed, 25 insertions, 25 deletions
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 |