diff options
author | Karl Berry <karl@freefriends.org> | 2018-06-27 21:23:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-06-27 21:23:47 +0000 |
commit | 1955e89c691f8dfed280631c3a1c724bb7c6248d (patch) | |
tree | 304fdbdf8ae8a1dc82b3bf9614c891c08fd93c00 /Master/texmf-dist/tex/latex/ocgx2 | |
parent | 474c2ca2b689e7dc1c67be9f23642fb29dd35416 (diff) |
ocgx2 (27jun18)
git-svn-id: svn://tug.org/texlive/trunk@48103 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ocgx2')
-rw-r--r-- | Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty | 48 |
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);}}; } } } |