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 | |
parent | 6ebddadf9365a980f3e92d75fde9310d0d1afac9 (diff) |
fixocgx (16mar15)
git-svn-id: svn://tug.org/texlive/trunk@36532 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/fixocgx/ChangeLog | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/fixocgx/README | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/fixocgx/fixocgx.sty | 13 |
3 files changed, 14 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/latex/fixocgx/ChangeLog b/Master/texmf-dist/doc/latex/fixocgx/ChangeLog index da783c302b1..3d5b65e1d64 100644 --- a/Master/texmf-dist/doc/latex/fixocgx/ChangeLog +++ b/Master/texmf-dist/doc/latex/fixocgx/ChangeLog @@ -1,3 +1,7 @@ +2015-03-16 + * v0.4 + * Fix: no more PS specials from `ocg-p.sty' in dvipdfmx mode + 2015-03-11 * v0.3 * New: ocg environment option `viewocg=always|never|ifvisible' added; diff --git a/Master/texmf-dist/doc/latex/fixocgx/README b/Master/texmf-dist/doc/latex/fixocgx/README index 3427b7f2ccd..461d5af05b9 100644 --- a/Master/texmf-dist/doc/latex/fixocgx/README +++ b/Master/texmf-dist/doc/latex/fixocgx/README @@ -1,7 +1,7 @@ ================================== The `fixocgx' LaTeX Package - Version 0.3 [2015/03/10] + Version 0.4 [2015/03/16] (C) 2015--\today Alexander Grahn ================================== 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} |