diff options
author | Karl Berry <karl@freefriends.org> | 2016-03-11 23:41:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-03-11 23:41:22 +0000 |
commit | 24b4469c3f8ee8e6ae9e7bb04fd3598727792c51 (patch) | |
tree | 980f98bab090968d8cd30cc572eb24b68dfb7ac7 /Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty | |
parent | ab8ad0e726f90cebd120508ef6488481afd415a7 (diff) |
ocgx2 (11mar16)
git-svn-id: svn://tug.org/texlive/trunk@40007 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty b/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty index e235c2135d1..96c1d329d83 100644 --- a/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty +++ b/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty @@ -37,7 +37,7 @@ \RequirePackage{xparse} \RequirePackage{l3keys2e} -\ProvidesExplPackage{ocgx2}{2016/01/29}{0.15} +\ProvidesExplPackage{ocgx2}{2016/03/11}{0.16} {ports `ocgx' functionality to dvips+ps2pdf, xelatex and dvipdfmx} %creating global definitions @@ -55,11 +55,11 @@ \keys_define:nn{ocgx2}{ xetex .code:n = { - \PassOptionsToPackage{xetex}{ocgbase} + \PassOptionsToPackage{xetex}{pdfbase} }, dvipdfmx .code:n = { - \PassOptionsToPackage{dvipdfmx}{ocgbase} + \PassOptionsToPackage{dvipdfmx}{pdfbase} \bool_gset_true:N\g_ocgxii_dvipdfmx_bool }, @@ -110,7 +110,17 @@ \ProcessKeysOptions{ocgx2} \sys_if_engine_xetex:T{\bool_gset_true:N\g_ocgxii_dvipdfmx_bool} -\RequirePackage{ocgbase} +\RequirePackage{ocgbase} %also loads pdfbase.sty +\msg_set:nnnn{ocgx2}{support~outdated}{ + Support~package~`#1'~too~old. +}{ + Get~an~up~to~date~version~of~`#1'.\\ + Aborting. +} +\@ifpackagelater{pdfbase}{2016/03/11}{}{ + \msg_error:nnn{xsavebox}{support~outdated}{pdfbase.sty} + \tex_endinput:D +} %re-implement ocg-p's `ocg' environment \DeclareDocumentEnvironment{ocg}{O{}mmm}{ @@ -392,6 +402,7 @@ } >> }{\mbox{#3}} %Widget annots should not be broken across lines + \pbs_appendtofields:n{\pbs_pdflastann:} \int_gincr:N\g_ocgxii_widcount_int } } @@ -427,6 +438,7 @@ } >> }{\mbox{#3}} %Widget annots should not be broken across lines + \pbs_appendtofields:n{\pbs_pdflastann:} \int_gincr:N\g_ocgxii_widcount_int } } @@ -462,6 +474,7 @@ } >> }{\mbox{#3}} %Widget annots should not be broken across lines + \pbs_appendtofields:n{\pbs_pdflastann:} \int_gincr:N\g_ocgxii_widcount_int } } @@ -570,6 +583,7 @@ } >> }{\mbox{#5}} %Widget annots should not be broken across lines + \pbs_appendtofields:n{\pbs_pdflastann:} \int_gincr:N\g_ocgxii_widcount_int } } |