summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ocgx2
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-01-30 00:35:25 +0000
committerKarl Berry <karl@freefriends.org>2016-01-30 00:35:25 +0000
commita35f0faa97651a9083379e1447aeafaa2213cabf (patch)
tree62599a6ee16eda5a381c2652c1529f386b35bf94 /Master/texmf-dist/tex/latex/ocgx2
parent36dab4a4d4adb0255927ef58e697234d51f1865e (diff)
ocgx2 (29jan16)
git-svn-id: svn://tug.org/texlive/trunk@39506 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ocgx2')
-rw-r--r--Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty20
1 files changed, 19 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty b/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty
index 44b0715e71a..e235c2135d1 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}{2015/12/07}{0.14}
+\ProvidesExplPackage{ocgx2}{2016/01/29}{0.15}
{ports `ocgx' functionality to dvips+ps2pdf, xelatex and dvipdfmx}
%creating global definitions
@@ -671,6 +671,24 @@
}
}
+\cs_gset_eq:NN\ocgxii_atenddvi_checkimpl_orig:\AtEndDvi@CheckImpl%
+\def\AtEndDvi@CheckImpl{
+ \ocgxii_atenddvi_checkimpl_orig:
+ \cs_if_exist:NTF\AtEndDvi@LastPage{
+ \int_compare:nF{\AtEndDvi@LastPage=\value{abspage}}{
+ \cs_if_exist:NF\g_ocgxii_rerunwarned_tl{
+ \tl_new:N\g_ocgxii_rerunwarned_tl
+ \msg_warning:nn{ocgx2}{rerun}
+ }
+ }
+ }{
+ \cs_if_exist:NF\g_ocgxii_rerunwarned_tl{
+ \tl_new:N\g_ocgxii_rerunwarned_tl
+ \msg_warning:nn{ocgx2}{rerun}
+ }
+ }
+}
+
% tikz related code follows (to be enabled with package option `tikz')
\bool_if:NF\l_ocgxii_tikz_bool{\endinput}