diff options
author | Karl Berry <karl@freefriends.org> | 2015-03-16 20:45:49 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-03-16 20:45:49 +0000 |
commit | 0029775a1baad997a0e88cc859f6e467da0ef815 (patch) | |
tree | fd63a4b5885d080cff4779f57c8f2e07baa2d1ea /Master/texmf-dist/tex/latex/fixocgx | |
parent | 6ebddadf9365a980f3e92d75fde9310d0d1afac9 (diff) |
fixocgx (16mar15)
git-svn-id: svn://tug.org/texlive/trunk@36532 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/fixocgx')
-rw-r--r-- | Master/texmf-dist/tex/latex/fixocgx/fixocgx.sty | 13 |
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} |