summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ocgx/ocgx.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/ocgx/ocgx.sty')
-rw-r--r--Master/texmf-dist/tex/latex/ocgx/ocgx.sty50
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