texlive[48103] Master/texmf-dist: ocgx2 (27jun18)

commits+karl at tug.org commits+karl at tug.org
Wed Jun 27 23:23:48 CEST 2018


Revision: 48103
          http://tug.org/svn/texlive?view=revision&revision=48103
Author:   karl
Date:     2018-06-27 23:23:47 +0200 (Wed, 27 Jun 2018)
Log Message:
-----------
ocgx2 (27jun18)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/ocgx2/ChangeLog
    trunk/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty

Modified: trunk/Master/texmf-dist/doc/latex/ocgx2/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/doc/latex/ocgx2/ChangeLog	2018-06-27 21:23:35 UTC (rev 48102)
+++ trunk/Master/texmf-dist/doc/latex/ocgx2/ChangeLog	2018-06-27 21:23:47 UTC (rev 48103)
@@ -1,3 +1,7 @@
+2018-06-27
+	* v0.36: ocgx2.sty
+	* fix: code of previous fix simplified
+
 2018-06-26
 	* v0.35: ocgx2.sty
 	* fix: wrong link size of clickable paths in scaled `tikzpicture'

Modified: trunk/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty	2018-06-27 21:23:35 UTC (rev 48102)
+++ trunk/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty	2018-06-27 21:23:47 UTC (rev 48103)
@@ -35,8 +35,8 @@
 \RequirePackage{xparse}
 \RequirePackage{l3keys2e}
 
-\def\g at ocgxii@date at tl{2018/06/26}
-\def\g at ocgxii@version at tl{0.35}
+\def\g at ocgxii@date at tl{2018/06/27}
+\def\g at ocgxii@version at tl{0.36}
 
 \ProvidesExplPackage{ocgx2}{\g at ocgxii@date at tl}{\g at ocgxii@version at 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,13 +982,10 @@
   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);}};
       }
     }
   },
@@ -998,13 +992,10 @@
   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);}};
       }
     }
   },
@@ -1011,13 +1002,10 @@
   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);}};
       }
     }
   }



More information about the tex-live-commits mailing list