diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/ocgx2')
-rw-r--r-- | Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty b/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty index 77ec3292ffe..c30b8e6fc47 100644 --- a/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty +++ b/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty @@ -38,8 +38,8 @@ \RequirePackage{xparse} \RequirePackage{l3keys2e} -\def\g@ocgxii@date@tl{2018/09/25} -\def\g@ocgxii@version@tl{0.37} +\def\g@ocgxii@date@tl{2018/09/27} +\def\g@ocgxii@version@tl{0.38} \ProvidesExplPackage{ocgx2}{\g@ocgxii@date@tl}{\g@ocgxii@version@tl} {ports `ocgx' functionality to dvips+ps2pdf, xelatex and dvipdfmx} @@ -875,15 +875,20 @@ \tl_set_eq:NN\l_ocgxii_lnkcol_tl\l_tmpa_tl \ocgxii_colourlink_nobreak_begin: } + \group_begin: + \cs_set_nopar:Npn\ocglinkprotect##1{##1} % in case of nesting \sys_if_output_pdf:TF{ + \leavevmode \hbox_set:Nn\l_tmpb_box{#1} \hbox_to_wd:nn{\box_wd:N\l_tmpb_box}{ \vrule~width~\c_zero_dim~height~\box_ht:N\l_tmpb_box~ depth~\box_dp:N\l_tmpb_box \pbs_pdfxform:nnnnn{1}{0}{}{}{\l_tmpb_box} \pbs_pdfrefxform:n{\pbs_pdflastxform:} + \hss } }{#1} + \group_end: \seq_get_left:NNT\g_ocgxii_lnk_color_seq\l_tmpa_tl{ \ocgxii_colourlink_nobreak_end: \group_end: |