CTAN Update: ocgx2

CTAN Announcements ctan-ann at ctan.org
Sat May 25 17:25:57 CEST 2019


Alexander Grahn submitted an update to the

                ocgx2

package.

Version:  0.41 2019-05-24
License:  lppl

Summary description:  Drop-in replacement for ‘ocgx’ and ‘ocg-p’

Announcement text:
----------------------------------------------------------------------
 
 This new version adds the `ocmd' environment:

   \begin{ocmd}[<OCMD id>]{[<visibility policy>][,<visibility expression>]}

     ... material to be put on a PDF layer ...

   \end{ocmd}

 An OCMD (Optional Content Membership Dictionary) is a PDF Layer whose
 visibility is calculated from other OCGs current visibility states according
 to a visibility policy and/or a visibility expression.

 A visibility policy is defined by choosing one of the directives

   \AllOn{<OCG id 1>, <OCG id 2>, ...}
   \AnyOn{<OCG id 1>, <OCG id 2>, ...}
   \AnyOff{<OCG id 1>, <OCG id 2>, ...}
   \AllOff{<OCG id 1>, <OCG id 2>, ...}

 A visibility expression is much more flexible than a policy. Arbitrarily
 complex visibility relationships can be formulated, based on the Boolean
 functions

   \And{<item a>, <item b>, ...}
   \Or{<item i>, <item j>, ...}
   \Not{<item n>}

 In the argument list, items represent OCG ids and nested Boolean
 functions. As nesting of the three functions is possible, any thinkable
 visibility relationship can be defined.

----------------------------------------------------------------------

The package’s Catalogue entry can be viewed at
   https://ctan.org/pkg/ocgx2

The package’s files themselves can be inspected at
   http://mirror.ctan.org/macros/latex/contrib/ocgx2/

------------------------------------------------------------------------

   Thanks for the upload.

     For the CTAN Team
    Petra Rübe-Pugliese

------------------------------------------------------------------------

We are supported by the TeX users groups.
Please join a users group; see https://www.tug.org/usergroups.html .



More information about the Ctan-ann mailing list