[latex3-commits] [git/LaTeX3-latex3-pdfresources] testlinkstuff: starting major/minor (1f9ced2)

Ulrike Fischer fischer at troubleshooting-tex.de
Wed Apr 10 13:44:33 CEST 2019


Repository : https://github.com/latex3/pdfresources
On branch  : testlinkstuff
Link       : https://github.com/latex3/pdfresources/commit/1f9ced2e03473aefdc5d6e4eeeef24bcf66ec28f

>---------------------------------------------------------------

commit 1f9ced2e03473aefdc5d6e4eeeef24bcf66ec28f
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Wed Apr 10 13:44:33 2019 +0200

    starting major/minor


>---------------------------------------------------------------

1f9ced2e03473aefdc5d6e4eeeef24bcf66ec28f
 hluatex-experimental.def |    2 ++
 pdfresources.dtx         |    7 +++++++
 2 files changed, 9 insertions(+)

diff --git a/hluatex-experimental.def b/hluatex-experimental.def
index cc2390e..94f86aa 100644
--- a/hluatex-experimental.def
+++ b/hluatex-experimental.def
@@ -235,11 +235,13 @@
 \edef\Hy at pdfminorversion{\pdfvariable minorversion}%
 \edef\Hy at pdfmajorversion{\pdfvariable majorversion}%
 
+\ExplSyntaxOn
   \ifHy at ocgcolorlinks
     \ifnum\Hy at pdfminorversion<5 %
       \kvsetkeys{Hyp}{pdfversion=1.5}%
     \fi
   \fi
+\ExplSyntaxOff
   \ifHy at setpdfversion
     \ifnum\Hy at pdfversion<5 %
       \ltx at IfUndefined{pdfobjcompresslevel}{%
diff --git a/pdfresources.dtx b/pdfresources.dtx
index 57eadc0..fd529c2 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -198,6 +198,9 @@
  {
   \pdfcatalog { #1 }
  }
+
+ \cs_new:Npn \driver_pdf_minorversion: { \tex_the:D \tex_pdfminorversion:D }
+ \cs_new:Npn \driver_pdf_majorversion: { 1 }
 \input{l3pdfmode-pdf.def}
 }
 
@@ -212,6 +215,10 @@
  {
   \pdfextension catalog { #1 }
  }
+
+ \cs_new:Npn \driver_pdf_minorversion: { \tex_the:D \pdfvariable~minorversion }
+ \cs_new:Npn \driver_pdf_majorversion: { \tex_the:D \pdfvariable~majorversion }
+
 \input{l3pdfmode-pdf.def}
 }
 





More information about the latex3-commits mailing list