summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty48
1 files changed, 18 insertions, 30 deletions
diff --git a/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty b/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty
index 8722c180ffd..b3a287b3514 100644
--- a/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty
+++ b/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty
@@ -35,8 +35,8 @@
\RequirePackage{xparse}
\RequirePackage{l3keys2e}
-\def\g@ocgxii@date@tl{2018/06/26}
-\def\g@ocgxii@version@tl{0.35}
+\def\g@ocgxii@date@tl{2018/06/27}
+\def\g@ocgxii@version@tl{0.36}
\ProvidesExplPackage{ocgx2}{\g@ocgxii@date@tl}{\g@ocgxii@version@tl}
{ports `ocgx' functionality to dvips+ps2pdf, xelatex and dvipdfmx}
@@ -938,13 +938,10 @@
switch ocg/.style={
postaction={
path picture={
- \path let
- \p1 = (path picture bounding box.south west),
- \p2 = (path picture bounding box.north east)
- in
- coordinate (p1) at (\p1) coordinate (p2) at (\p2)
- node[inner sep=0pt,anchor=south west,outer sep=0pt] at (p1)
- {\switchocg*{#1}{\tikz \useasboundingbox (p1) rectangle (p2);}};
+ \path (path picture bounding box.south west) coordinate (p1)
+ (path picture bounding box.north east) coordinate (p2)
+ (p1) node[inner sep=0pt,anchor=south west,outer sep=0pt] {%
+ \switchocg*{#1}{\tikz \useasboundingbox (p1) rectangle (p2);}};
}
}
},
@@ -985,39 +982,30 @@
show ocg/.style={
postaction={
path picture={
- \path let
- \p1 = (path picture bounding box.south west),
- \p2 = (path picture bounding box.north east)
- in
- coordinate (p1) at (\p1) coordinate (p2) at (\p2)
- node[inner sep=0pt,anchor=south west,outer sep=0pt] at (p1)
- {\showocg*{#1}{\tikz \useasboundingbox (p1) rectangle (p2);}};
+ \path (path picture bounding box.south west) coordinate (p1)
+ (path picture bounding box.north east) coordinate (p2)
+ (p1) node[inner sep=0pt,anchor=south west,outer sep=0pt] {%
+ \showocg*{#1}{\tikz \useasboundingbox (p1) rectangle (p2);}};
}
}
},
hide ocg/.style={
postaction={
path picture={
- \path let
- \p1 = (path picture bounding box.south west),
- \p2 = (path picture bounding box.north east)
- in
- coordinate (p1) at (\p1) coordinate (p2) at (\p2)
- node[inner sep=0pt,anchor=south west,outer sep=0pt] at (p1)
- {\hideocg*{#1}{\tikz \useasboundingbox (p1) rectangle (p2);}};
+ \path (path picture bounding box.south west) coordinate (p1)
+ (path picture bounding box.north east) coordinate (p2)
+ (p1) node[inner sep=0pt,anchor=south west,outer sep=0pt] {%
+ \hideocg*{#1}{\tikz \useasboundingbox (p1) rectangle (p2);}};
}
}
},
actions ocg/.style n args={3}{
postaction={
path picture={
- \path let
- \p1 = (path picture bounding box.south west),
- \p2 = (path picture bounding box.north east)
- in
- coordinate (p1) at (\p1) coordinate (p2) at (\p2)
- node[inner sep=0pt,anchor=south west,outer sep=0pt] at (p1)
- {\actionsocg*{#1}{#2}{#3}{\tikz \useasboundingbox (p1) rectangle (p2);}};
+ \path (path picture bounding box.south west) coordinate (p1)
+ (path picture bounding box.north east) coordinate (p2)
+ (p1) node[inner sep=0pt,anchor=south west,outer sep=0pt] {%
+ \actionsocg*{#1}{#2}{#3}{\tikz \useasboundingbox (p1) rectangle (p2);}};
}
}
}