texlive[52639] Master/texmf-dist: ocgx2 (4nov19)
commits+karl at tug.org
commits+karl at tug.org
Mon Nov 4 23:16:29 CET 2019
Revision: 52639
http://tug.org/svn/texlive?view=revision&revision=52639
Author: karl
Date: 2019-11-04 23:16:29 +0100 (Mon, 04 Nov 2019)
Log Message:
-----------
ocgx2 (4nov19)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/ocgx2/ChangeLog
trunk/Master/texmf-dist/tex/latex/ocgx2/ocgbase.sty
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 2019-11-04 22:16:19 UTC (rev 52638)
+++ trunk/Master/texmf-dist/doc/latex/ocgx2/ChangeLog 2019-11-04 22:16:29 UTC (rev 52639)
@@ -1,3 +1,8 @@
+2019-11-04
+ * v0.47: ocgx2.sty
+ * v0.17: ocgx2.sty
+ * fix: 2020 deprecations (fixocgx.sty)
+
2019-10-01
* v0.46: ocgx2.sty
* fix: 2020 deprecations (fixocgx.sty)
Modified: trunk/Master/texmf-dist/tex/latex/ocgx2/ocgbase.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ocgx2/ocgbase.sty 2019-11-04 22:16:19 UTC (rev 52638)
+++ trunk/Master/texmf-dist/tex/latex/ocgx2/ocgbase.sty 2019-11-04 22:16:29 UTC (rev 52639)
@@ -92,23 +92,39 @@
%
% The Current Maintainer of this work is A. Grahn.
-%process non-detectable dvipdfmx driver for passing to expl3
-\RequirePackage{xkeyval}
-\DeclareOptionX{dvipdfmx}{%
- \PassOptionsToPackage{driver=dvipdfmx}{expl3}
- \PassOptionsToPackage{dvipdfmx}{pdfbase}
-}
-\DeclareOptionX*{}\ProcessOptionsX*\relax %allow anything as an option
-
-\RequirePackage{pdfbase}
\RequirePackage{expl3}
+\RequirePackage{l3keys2e}
-\def\g at ocgbase@date at tl{2019/07/04}
-\def\g at ocgbase@version at tl{0.16}
+\def\g at ocgbase@date at tl{2019/11/04}
+\def\g at ocgbase@version at tl{0.17}
\ProvidesExplPackage{ocgbase}{\g at ocgbase@date at tl}{\g at ocgbase@version at tl}
{support package for ocgx2.sty}
+%package options
+
+%unknown package option error message
+\msg_set:nnnn{ocgbase}{unknown~package~option}{Unknown~package~option~`#1'.}{
+ Package option~'#1'~is~unknown;\\
+ perhaps~it~is~spelled~incorrectly.
+}
+
+\keys_define:nn{ocgbase}{
+ xetex .code:n = {}, %dummy
+
+ dvipdfmx .choice:,
+ dvipdfmx / true .code:n = {\PassOptionsToPackage{dvipdfmx}{pdfbase}},
+ dvipdfmx / false .code:n = {},
+ dvipdfmx .default:n = {true},
+
+ unknown .code:n = {
+ \msg_error:nnx{ocgbase}{unknown~package~option}{\l_keys_key_tl}
+ }
+}
+\ProcessKeysOptions{ocgbase}
+
+\RequirePackage{pdfbase}
+
\msg_set:nnnn{ocgbase}{support~outdated}{
Support~package~`#1'~too~old.
}{
Modified: trunk/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty 2019-11-04 22:16:19 UTC (rev 52638)
+++ trunk/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty 2019-11-04 22:16:29 UTC (rev 52639)
@@ -37,19 +37,11 @@
%
% The Current Maintainer of this work is A. Grahn.
-%process non-detectable dvipdfmx driver for passing to expl3
-\RequirePackage{xkeyval}
-\DeclareOptionX{dvipdfmx}{%
- \PassOptionsToPackage{dvipdfmx}{ocgbase}
- \PassOptionsToPackage{driver=dvipdfmx}{expl3}
-}
-\DeclareOptionX*{}\ProcessOptionsX*\relax %allow anything as an option
-
\RequirePackage{xparse}
\RequirePackage{l3keys2e}
-\def\g at ocgxii@date at tl{2019/10/01}
-\def\g at ocgxii@version at tl{0.46}
+\def\g at ocgxii@date at tl{2019/11/04}
+\def\g at ocgxii@version at tl{0.47}
\ProvidesExplPackage{ocgx2}{\g at ocgxii@date at tl}{\g at ocgxii@version at tl}
{ports `ocgx' functionality to dvips+ps2pdf, xelatex and dvipdfmx}
@@ -103,11 +95,10 @@
\bool_new:N\l_ocgxii_showingui_bool
\keys_define:nn{ocgx2}{
- xetex .code:n = {
- \PassOptionsToPackage{xetex}{pdfbase}
- },
+ xetex .code:n = {}, %dummy
dvipdfmx .code:n = {
+ \PassOptionsToPackage{dvipdfmx}{ocgbase}
\PassOptionsToPackage{dvipdfmx}{pdfbase}
\bool_gset_true:N\g_ocgxii_dvipdfmx_bool
},
@@ -167,9 +158,7 @@
%process package options
\ProcessKeysOptions{ocgx2}
-\sys_if_engine_xetex:T{
- \bool_gset_true:N\g_ocgxii_dvipdfmx_bool
-}
+\sys_if_engine_xetex:T{\bool_gset_true:N\g_ocgxii_dvipdfmx_bool}
\RequirePackage{ocgbase} %also loads pdfbase.sty
More information about the tex-live-commits
mailing list