summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fixocgx/fixocgx.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/fixocgx/fixocgx.sty')
-rw-r--r--Master/texmf-dist/tex/latex/fixocgx/fixocgx.sty13
1 files changed, 9 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/fixocgx/fixocgx.sty b/Master/texmf-dist/tex/latex/fixocgx/fixocgx.sty
index 44dde61b675..b3db3ee36e0 100644
--- a/Master/texmf-dist/tex/latex/fixocgx/fixocgx.sty
+++ b/Master/texmf-dist/tex/latex/fixocgx/fixocgx.sty
@@ -25,6 +25,13 @@
\RequirePackage{xparse}
\RequirePackage{atenddvi}
+\RequirePackage{ifpdf}
+
+%prevent ocg-p from inserting PS specials in dvipdfmx mode
+\ifpdf\else
+ \DeclareOption{dvipdfmx}{\@ocgp@ifpsfalse}
+ \ProcessOptions\relax
+\fi
\@ifpackageloaded{ocgx}{}{
\PackageError{fixocgx}{%
@@ -45,7 +52,7 @@
}
}
-\ProvidesExplPackage{fixocgx}{2015/03/11}{0.3}
+\ProvidesExplPackage{fixocgx}{2015/03/16}{0.4}
{ports `ocgx' functionality to dvips+ps2pdf, xelatex and dvipdfmx}
%re-implement ocg-p's `ocg' environment
@@ -249,7 +256,7 @@
\AtBeginDocument{
\ifpdf\else
\bool_if:NF\g_mix_dvipdfmx_bool{
- \AtEndDvi{\special{ps::[nobreak]\g_fxocg_gsoldwarning_tl}}
+ \AtEndDvi{\special{ps::[nobreak]\g_fxocg_gsoldwarning_tl}}
}
\fi
}
@@ -260,5 +267,3 @@
}
\msg_set:nnn{fixocgx}{undefined~OCGs}{There~were~undefined~OCGs!}
-%prevent ocg-p from inserting PS specials in dvipdfmx mode
-\bool_if:NF\g_mix_dvipdfmx_bool{\@ocgp@ifpsfalse}