summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/ocgx2/ChangeLog5
-rw-r--r--Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty11
2 files changed, 11 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/latex/ocgx2/ChangeLog b/Master/texmf-dist/doc/latex/ocgx2/ChangeLog
index 12968803429..bbf9411f317 100644
--- a/Master/texmf-dist/doc/latex/ocgx2/ChangeLog
+++ b/Master/texmf-dist/doc/latex/ocgx2/ChangeLog
@@ -1,3 +1,8 @@
+2020-06-11
+ * v0.49: ocgx2.sty
+ * fix: `ocgcolorlinks': fixing misplaced page content resulting from
+ \pdfliteral{} inserted by others (such as TikZ)
+
2019-11-07
* v0.48: ocgx2.sty
* fix: link-making commands failed with empty option arg
diff --git a/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty b/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty
index bd2e4cb96a7..a0dce3b5007 100644
--- a/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty
+++ b/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty
@@ -40,8 +40,8 @@
\RequirePackage{xparse}
\RequirePackage{l3keys2e}
-\def\g@ocgxii@date@tl{2019/11/07}
-\def\g@ocgxii@version@tl{0.48}
+\def\g@ocgxii@date@tl{2020/06/11}
+\def\g@ocgxii@version@tl{0.49}
\ProvidesExplPackage{ocgx2}{\g@ocgxii@date@tl}{\g@ocgxii@version@tl}
{ports `ocgx' functionality to dvips+ps2pdf, xelatex and dvipdfmx}
@@ -1120,9 +1120,7 @@
% (dingbats) font at the end of every ocgcolorlink in order to prevent
% empty links from flooding the page with link colour
\cs_new_nopar:Npn\ocgxii_tiny_space_char:{
- \group_begin:
- \font\l_tmpa_tl=pzdr~scaled~1\l_tmpa_tl\char32
- \group_end:
+ \group_begin: \font\l_tmpa_tl=pzdr~scaled~1\l_tmpa_tl\char32 \group_end:
}
\bool_if:nTF{\sys_if_output_dvi_p: && !\g_ocgxii_dvipdfmx_bool}{
@@ -1181,6 +1179,9 @@
}
\bool_if:NT\l_ocgxii_ocgcolorlinks_bool{
\cs_gset_nopar:Nn\ocgxii_colourlink_begin:{
+ %tiny space char put here in order to neutralise possible transformation
+ %matrix modifications from previous \pdfliteral{} (TikZ makes a lot use of it)
+ \hbox_overlap_left:n{\ocgxii_tiny_space_char:}
\pbs_literal:nn{page}{q~7~Tr}
}
\cs_gset_nopar:Nn\ocgxii_colourlink_end:{