diff options
author | Karl Berry <karl@freefriends.org> | 2016-03-11 23:41:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-03-11 23:41:22 +0000 |
commit | 24b4469c3f8ee8e6ae9e7bb04fd3598727792c51 (patch) | |
tree | 980f98bab090968d8cd30cc572eb24b68dfb7ac7 /Master/texmf-dist/tex/latex/ocgx2/ocgbase.sty | |
parent | ab8ad0e726f90cebd120508ef6488481afd415a7 (diff) |
ocgx2 (11mar16)
git-svn-id: svn://tug.org/texlive/trunk@40007 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 | 35 |
1 files changed, 6 insertions, 29 deletions
diff --git a/Master/texmf-dist/tex/latex/ocgx2/ocgbase.sty b/Master/texmf-dist/tex/latex/ocgx2/ocgbase.sty index 61c5ead4026..cf1cc3f94be 100644 --- a/Master/texmf-dist/tex/latex/ocgx2/ocgbase.sty +++ b/Master/texmf-dist/tex/latex/ocgx2/ocgbase.sty @@ -20,11 +20,7 @@ % latex-->dvipdfmx % xelatex % -% -% Package options: -% -% xetex, -% dvipdfmx +% for `dvipdfmx', set it as document class option % % % Commands defined: @@ -98,31 +94,12 @@ % The Current Maintainer of this work is A. Grahn. \RequirePackage{expl3} -\RequirePackage{l3keys2e} \RequirePackage{atenddvi} +\RequirePackage{pdfbase} -\ProvidesExplPackage{ocgbase}{2015/12/07}{0.5} +\ProvidesExplPackage{ocgbase}{2016/03/11}{0.6} {support package for ocgx2.sty} -%unknown package option error message -\msg_set:nnnn{ocgbase}{unknown~package~option}{Unknown~package~option~`#1'.}{ - Package option~'#1'~is~unknown;\\ - perhaps~it~is~spelled~incorrectly. -} - -%package opts -\keys_define:nn{ocgbase}{ - xetex .code:n = {\PassOptionsToPackage{xetex}{pdfbase}}, - dvipdfmx .code:n = {\PassOptionsToPackage{dvipdfmx}{pdfbase}} -} - -%process package options -\ProcessKeysOptions{ocgbase} - -\AtBeginDvi{ - \@ifpackageloaded{pdfbase}{}{\RequirePackage{pdfbase}} -} - \tl_new:N\g_ocgbase_ocgs_tl %takes ocg object refs \seq_new:N\g_ocgbase_ocgorder_seq \seq_new:N\g_ocgbase_offocgs_seq @@ -237,15 +214,15 @@ \pbs_pdfobj:nnn{}{dict}{ /Type/OCG/Name~(#1)~\tl_if_blank:oF{#2}{/Usage<<#2>>} } - \tl_gput_right:Nx\g_ocgbase_ocgs_tl{~\g_pbs_pdflastobj_tl} + \tl_gput_right:Nx\g_ocgbase_ocgs_tl{~\pbs_pdflastobj:} \bool_if:nT{ \str_if_eq_x_p:nn{#3}{0} || \str_if_eq_x_p:nn{#3}{off} || \str_if_eq_x_p:nn{#3}{false} }{ - \ocgbase_add_to_off_list:n{\g_pbs_pdflastobj_tl} + \ocgbase_add_to_off_list:n{\pbs_pdflastobj:} } - \tl_gset_eq:NN\g_ocgbase_last_ocg_tl\g_pbs_pdflastobj_tl + \tl_gset:Nx\g_ocgbase_last_ocg_tl{\pbs_pdflastobj:} } \cs_new_nopar:Nn\ocgbase_last_ocg:{\g_ocgbase_last_ocg_tl} |