diff options
author | Karl Berry <karl@freefriends.org> | 2015-11-02 22:03:24 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-11-02 22:03:24 +0000 |
commit | 043b54c8e5277223a8b6617e7471825bd8e07be5 (patch) | |
tree | 1b537a31454092d780c6a0d788e56b24b2e352bc /Master/texmf-dist/tex/latex/ocgx2/ocgbase.sty | |
parent | 0bce358db40e51664ec58f62a15557154ee1e12a (diff) |
ocgx2 (2nov15)
git-svn-id: svn://tug.org/texlive/trunk@38766 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ocgx2/ocgbase.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/ocgx2/ocgbase.sty | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/ocgx2/ocgbase.sty b/Master/texmf-dist/tex/latex/ocgx2/ocgbase.sty index aa24adfc294..df92035991e 100644 --- a/Master/texmf-dist/tex/latex/ocgx2/ocgbase.sty +++ b/Master/texmf-dist/tex/latex/ocgx2/ocgbase.sty @@ -2,8 +2,9 @@ % % ocgbase.sty % -% low-level macros for OCG creation and for managment of global (document-wide) -% OCG related lists; +% low-level macros for OCG creation, /OC-marked content and +% for managment of global (document-wide) OCG related lists; +% % (automatic) OCG configuration in the PDF catalog % % Copyright 2015--\today, Alexander Grahn @@ -63,6 +64,18 @@ % add OCG #2 (obj ref) to radio button group `#1' (string), % #3: (0|1|false|true) list OCG as part of group `#1' in the Layers Tab) % +% -------- +% +% \ocgbase_oc_bdc:n +% \ocgbase@oc@bdc +% #1: OCG obj ref +% mark begin of optional content belonging to OCG #1 in the current +% content stream +% +% \ocgbase_oc_emc: +% \ocgbase@oc@emc +% mark end of optional content in the current content stream +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % This work may be distributed and/or modified under the @@ -78,10 +91,11 @@ % The Current Maintainer of this work is A. Grahn. \RequirePackage{expl3} +\RequirePackage{l3keys2e} \RequirePackage{atenddvi} -\def\g@ocgbase@date@tl{2015/10/28} -\def\g@ocgbase@version@tl{0.1} +\def\g@ocgbase@date@tl{2015/11/02} +\def\g@ocgbase@version@tl{0.2} \ProvidesExplPackage{ocgbase}{\g@ocgbase@date@tl}{\g@ocgbase@version@tl} {support package for ocgx2.sty} @@ -101,7 +115,8 @@ %process package options \ProcessKeysOptions{ocgbase} -\AtBeginDocument{ +%\AtBeginDocument{ +\AtBeginDvi{ \@ifpackageloaded{pdfbase}{}{\RequirePackage{pdfbase}} } @@ -255,9 +270,15 @@ } \cs_generate_variant:Nn\ocgbase_add_ocg_to_radiobtn_grp:nnn{xxx} +% OC-marked content +\cs_new:Nn\ocgbase_oc_bdc:n{\pbs_pdfbdc:nn{/OC}{#1}} +\cs_new:Nn\ocgbase_oc_emc:{\pbs_pdfemc:} + %l2e versions \cs_gset_eq:NN\ocgbase@new@ocg\ocgbase_new_ocg:xxx \cs_gset_eq:NN\ocgbase@last@ocg\ocgbase_last_ocg: \cs_gset_eq:NN\ocgbase@add@to@order@list\ocgbase_add_to_order_list:n \cs_gset_eq:NN\ocgbase@add@to@off@list\ocgbase_add_to_off_list:n \cs_gset_eq:NN\ocgbase@add@ocg@to@radiobtn@grp\ocgbase_add_ocg_to_radiobtn_grp:xxx +\cs_gset_eq:NN\ocgbase@oc@bdc\ocgbase_oc_bdc:n +\cs_gset_eq:NN\ocgbase@oc@emc\ocgbase_oc_emc: |