summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-09-28 22:21:31 +0000
committerKarl Berry <karl@freefriends.org>2018-09-28 22:21:31 +0000
commit719906183e64e3f4f73907d3c82507d607f3c140 (patch)
tree5cae81ad77866a04ec02924bc01ba28376544a89 /Master/texmf-dist/tex
parent59d1579dae711e80cdb3a14cab6eb9a7a44fe9aa (diff)
ocgx2 (27sep18)
git-svn-id: svn://tug.org/texlive/trunk@48779 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty9
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: