summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/asymptote/ocg.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-04-08 18:41:28 +0000
committerKarl Berry <karl@freefriends.org>2013-04-08 18:41:28 +0000
commita3358f7394e3adabeff44a4858bab8f13cbe1180 (patch)
tree014354d566c06a47c483b7231af921247180f770 /Master/texmf-dist/tex/latex/asymptote/ocg.sty
parent11bcd1a52098dab6ac5baa790409a2261a31755f (diff)
asymptote 2.21
git-svn-id: svn://tug.org/texlive/trunk@29753 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/asymptote/ocg.sty')
-rw-r--r--Master/texmf-dist/tex/latex/asymptote/ocg.sty5
1 files changed, 4 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/asymptote/ocg.sty b/Master/texmf-dist/tex/latex/asymptote/ocg.sty
index 3ba555b58e8..87da828a8d2 100644
--- a/Master/texmf-dist/tex/latex/asymptote/ocg.sty
+++ b/Master/texmf-dist/tex/latex/asymptote/ocg.sty
@@ -1,8 +1,10 @@
%% Copyright (C) 2007 by Michael Ritzert <michael.ritz...@gmail.com>
%% Spurious spaces removed by John Bowman [2009/06/01].
+%% Global macros to find the number of a PDF OCG object from its LaTeX
+%% reference contributed by Paul Gaborit [2012/09/13].
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ocg}[2009/06/01]
+\ProvidesPackage{ocg}[2012/09/13]
\RequirePackage{ifpdf}
\ifpdf
@@ -37,6 +39,7 @@
\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
+ \expandafter\xdef\csname OCGpdfobj#2\endcsname{\@ocg@curocg}
\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