[latex3-commits] [git/LaTeX3-latex3-pdfresources] backendtest: working on hyperref driver (069f50b)
Ulrike Fischer
fischer at troubleshooting-tex.de
Wed Jul 3 00:55:25 CEST 2019
Repository : https://github.com/latex3/pdfresources
On branch : backendtest
Link : https://github.com/latex3/pdfresources/commit/069f50b81a657443357573076b82518d0c011ecf
>---------------------------------------------------------------
commit 069f50b81a657443357573076b82518d0c011ecf
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Wed Jul 3 00:55:25 2019 +0200
working on hyperref driver
>---------------------------------------------------------------
069f50b81a657443357573076b82518d0c011ecf
hluatex-experimental.def | 25 +++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/hluatex-experimental.def b/hluatex-experimental.def
index 0a2c17f..d83700d 100644
--- a/hluatex-experimental.def
+++ b/hluatex-experimental.def
@@ -252,9 +252,10 @@
\cs_set_eq:NN \Hy at pdfminorversion \pdf_version_minor:
\cs_set_eq:NN \Hy at pdfmajorversion \pdf_version_major:
- \ifHy at ocgcolorlinks
+\legacy_if:nT { Hy at ocgcolorlinks }
+ {
\pdf_version_min_gset:n { 1.5 }
- \fi
+ }
% should this go into the drivers?
% or in the pdf level?
@@ -332,8 +333,8 @@
}
\exp_args:Nx\pdf_catalog_OCProperties_OCGs_gput:n
{ \pdf_object_ref:n { l__hyp_ocg_view_dict_obj } }
- \exp_args:Nx\pdf_catalog_OCProperties_OCGs_gput:n { \pdf_object_ref:n
- { l__hyp_ocg_print_dict_obj } }
+ \exp_args:Nx\pdf_catalog_OCProperties_OCGs_gput:n
+ { \pdf_object_ref:n { l__hyp_ocg_print_dict_obj } }
\exp_args:Nx\pdf_catalog_OCProperties_Configs_gput:n
{
\pdf_object_ref:n { l__hyp_ocg_config_dict_obj }
@@ -351,23 +352,23 @@
\Hy at AtBeginDocument{
\def\Hy at colorlink#1{
\group_begin:
- \ifHy at ocgcolorlinks
+ \legacy_if:nTF {Hy at ocgcolorlinks}
+ {
\def\Hy at ocgcolor{#1}
\setbox0=\hbox\bgroup\color at begingroup
- \else
+ }
+ {
\HyColor at UseColor#1
- \fi
+ }
}
\def\Hy at endcolorlink{
- \ifHy at ocgcolorlinks
+ \legacy_if:nT {Hy at ocgcolorlinks}
+ {
\color at endgroup\egroup
\mbox{
- %this uses a named object, we really need to sort this ...
\pdf_bdc:nn {OC}{l__hyp_ocg_print_dict_obj}
- %\pdfliteral~page{/OC/OCPrint~BDC}
\rlap{\copy0}
\pdf_emc:
- %\pdfliteral~page{/OC/OCView~BDC}
\pdf_bdc:nn {OC}{l__hyp_ocg_view_dict_obj}
\group_begin:
\expandafter\HyColor at UseColor\Hy at ocgcolor
@@ -375,7 +376,7 @@
\group_end:
\pdf_emc:
}
- \fi
+ }
\group_end:
}
}
More information about the latex3-commits
mailing list