[latex3-commits] [git/LaTeX3-latex3-latex3] master: First pass support for querying PDF minor version (29c420c)
Joseph Wright
joseph.wright at morningstar2.co.uk
Tue Apr 9 22:50:12 CEST 2019
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/29c420c2a4e6f1a751f7a6e30b79161644d6d576
>---------------------------------------------------------------
commit 29c420c2a4e6f1a751f7a6e30b79161644d6d576
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue Apr 9 21:49:43 2019 +0100
First pass support for querying PDF minor version
>---------------------------------------------------------------
29c420c2a4e6f1a751f7a6e30b79161644d6d576
l3kernel/l3drivers-pdf.dtx | 32 +++++++++++++++++++++++++++++++
l3kernel/l3drivers.dtx | 9 +++++++++
l3kernel/testfiles/m3expl001.luatex.tlg | 1 +
l3kernel/testfiles/m3expl001.ptex.tlg | 1 +
l3kernel/testfiles/m3expl001.tlg | 1 +
l3kernel/testfiles/m3expl001.uptex.tlg | 1 +
l3kernel/testfiles/m3expl001.xetex.tlg | 1 +
l3kernel/testfiles/m3expl003.luatex.tlg | 1 +
l3kernel/testfiles/m3expl003.ptex.tlg | 1 +
l3kernel/testfiles/m3expl003.tlg | 1 +
l3kernel/testfiles/m3expl003.uptex.tlg | 1 +
l3kernel/testfiles/m3expl003.xetex.tlg | 1 +
12 files changed, 51 insertions(+)
diff --git a/l3kernel/l3drivers-pdf.dtx b/l3kernel/l3drivers-pdf.dtx
index cac7884..e79d2e9 100644
--- a/l3kernel/l3drivers-pdf.dtx
+++ b/l3kernel/l3drivers-pdf.dtx
@@ -177,6 +177,13 @@
% \end{macro}
% \end{macro}
%
+% \begin{macro}[EXP]{\driver_pdf_version_minor:}
+% Data not available!
+% \begin{macrocode}
+\cs_new:Npn \driver_pdf_version_minor: { 0 }
+% \end{macrocode}
+% \end{macro}
+%
% \begin{macrocode}
%</dvips>
% \end{macrocode}
@@ -333,6 +340,17 @@
% \end{macro}
% \end{macro}
%
+% \begin{macro}[EXP]{\driver_pdf_version_minor:}
+% \begin{macrocode}
+\cs_new:Npx \driver_pdf_version_minor:
+ {
+ \cs_if_exist:NTF \tex_pdfminorversion:D
+ { \exp_not:N \tex_pdfminorversion:D }
+ { \tex_pdfvariable:D minorversion }
+ }
+% \end{macrocode}
+% \end{macro}
+%
% \begin{macrocode}
%</pdfmode>
% \end{macrocode}
@@ -482,6 +500,13 @@
% \end{macro}
% \end{macro}
%
+% \begin{macro}[EXP]{\driver_pdf_version_minor:}
+% Data not available!
+% \begin{macrocode}
+\cs_new:Npn \driver_pdf_version_minor: { 0 }
+% \end{macrocode}
+% \end{macro}
+%
% \begin{macrocode}
%</dvipdfmx|xdvipdfmx>
% \end{macrocode}
@@ -520,6 +545,13 @@
% \end{macro}
% \end{macro}
%
+% \begin{macro}[EXP]{\driver_pdf_version_minor:}
+% Data not available!
+% \begin{macrocode}
+\cs_new:Npn \driver_pdf_version_minor: { 0 }
+% \end{macrocode}
+% \end{macro}
+%
% \begin{macrocode}
%</dvisvgm>
% \end{macrocode}
diff --git a/l3kernel/l3drivers.dtx b/l3kernel/l3drivers.dtx
index 3659389..4a84372 100644
--- a/l3kernel/l3drivers.dtx
+++ b/l3kernel/l3drivers.dtx
@@ -548,6 +548,15 @@
% be set only once.
% \end{function}
%
+% \begin{function}[EXP]{\driver_pdf_version_minor:}
+% \begin{syntax}
+% \cs{driver_pdf_version_minor:}
+% \end{syntax}
+% Expands to the current value of the minor version of PDF being created, a
+% non-negative integer. Where a value is not available at the \TeX{} run
+% level, the result is $0$.
+% \end{function}
+%
% \end{documentation}
%
% \begin{implementation}
diff --git a/l3kernel/testfiles/m3expl001.luatex.tlg b/l3kernel/testfiles/m3expl001.luatex.tlg
index 2d440dd..e271f7f 100644
--- a/l3kernel/testfiles/m3expl001.luatex.tlg
+++ b/l3kernel/testfiles/m3expl001.luatex.tlg
@@ -6476,6 +6476,7 @@ Defining \driver_pdf_compresslevel:n on line ...
Defining \driver_pdf_objects_enable: on line ...
Defining \driver_pdf_objects_disable: on line ...
Defining \__driver_pdf_objectlevel:n on line ...
+Defining \driver_pdf_version_minor: on line ...
)
Defining \__expl_status_pop:w on line ...
Defining \l__expl_status_stack_tl on line ...
diff --git a/l3kernel/testfiles/m3expl001.ptex.tlg b/l3kernel/testfiles/m3expl001.ptex.tlg
index d3f9b29..e73c7e9 100644
--- a/l3kernel/testfiles/m3expl001.ptex.tlg
+++ b/l3kernel/testfiles/m3expl001.ptex.tlg
@@ -6525,6 +6525,7 @@ Defining \__driver_pdf_object_write_stream:nnnn on line ...
Defining \driver_pdf_compresslevel:n on line ...
Defining \driver_pdf_objects_enable: on line ...
Defining \driver_pdf_objects_disable: on line ...
+Defining \driver_pdf_version_minor: on line ...
)
Defining \__expl_status_pop:w on line ...
Defining \l__expl_status_stack_tl on line ...
diff --git a/l3kernel/testfiles/m3expl001.tlg b/l3kernel/testfiles/m3expl001.tlg
index a0746c1..cc82402 100644
--- a/l3kernel/testfiles/m3expl001.tlg
+++ b/l3kernel/testfiles/m3expl001.tlg
@@ -6817,6 +6817,7 @@ Defining \driver_pdf_compresslevel:n on line ...
Defining \driver_pdf_objects_enable: on line ...
Defining \driver_pdf_objects_disable: on line ...
Defining \__driver_pdf_objectlevel:n on line ...
+Defining \driver_pdf_version_minor: on line ...
)
Defining \__expl_status_pop:w on line ...
Defining \l__expl_status_stack_tl on line ...
diff --git a/l3kernel/testfiles/m3expl001.uptex.tlg b/l3kernel/testfiles/m3expl001.uptex.tlg
index 925b311..3599220 100644
--- a/l3kernel/testfiles/m3expl001.uptex.tlg
+++ b/l3kernel/testfiles/m3expl001.uptex.tlg
@@ -6822,6 +6822,7 @@ Defining \__driver_pdf_object_write_stream:nnnn on line ...
Defining \driver_pdf_compresslevel:n on line ...
Defining \driver_pdf_objects_enable: on line ...
Defining \driver_pdf_objects_disable: on line ...
+Defining \driver_pdf_version_minor: on line ...
)
Defining \__expl_status_pop:w on line ...
Defining \l__expl_status_stack_tl on line ...
diff --git a/l3kernel/testfiles/m3expl001.xetex.tlg b/l3kernel/testfiles/m3expl001.xetex.tlg
index 10f2ff0..2b01155 100644
--- a/l3kernel/testfiles/m3expl001.xetex.tlg
+++ b/l3kernel/testfiles/m3expl001.xetex.tlg
@@ -6501,6 +6501,7 @@ Defining \__driver_pdf_object_write_stream:nnnn on line ...
Defining \driver_pdf_compresslevel:n on line ...
Defining \driver_pdf_objects_enable: on line ...
Defining \driver_pdf_objects_disable: on line ...
+Defining \driver_pdf_version_minor: on line ...
)
Defining \__expl_status_pop:w on line ...
Defining \l__expl_status_stack_tl on line ...
diff --git a/l3kernel/testfiles/m3expl003.luatex.tlg b/l3kernel/testfiles/m3expl003.luatex.tlg
index 2d440dd..e271f7f 100644
--- a/l3kernel/testfiles/m3expl003.luatex.tlg
+++ b/l3kernel/testfiles/m3expl003.luatex.tlg
@@ -6476,6 +6476,7 @@ Defining \driver_pdf_compresslevel:n on line ...
Defining \driver_pdf_objects_enable: on line ...
Defining \driver_pdf_objects_disable: on line ...
Defining \__driver_pdf_objectlevel:n on line ...
+Defining \driver_pdf_version_minor: on line ...
)
Defining \__expl_status_pop:w on line ...
Defining \l__expl_status_stack_tl on line ...
diff --git a/l3kernel/testfiles/m3expl003.ptex.tlg b/l3kernel/testfiles/m3expl003.ptex.tlg
index d3f9b29..e73c7e9 100644
--- a/l3kernel/testfiles/m3expl003.ptex.tlg
+++ b/l3kernel/testfiles/m3expl003.ptex.tlg
@@ -6525,6 +6525,7 @@ Defining \__driver_pdf_object_write_stream:nnnn on line ...
Defining \driver_pdf_compresslevel:n on line ...
Defining \driver_pdf_objects_enable: on line ...
Defining \driver_pdf_objects_disable: on line ...
+Defining \driver_pdf_version_minor: on line ...
)
Defining \__expl_status_pop:w on line ...
Defining \l__expl_status_stack_tl on line ...
diff --git a/l3kernel/testfiles/m3expl003.tlg b/l3kernel/testfiles/m3expl003.tlg
index a0746c1..cc82402 100644
--- a/l3kernel/testfiles/m3expl003.tlg
+++ b/l3kernel/testfiles/m3expl003.tlg
@@ -6817,6 +6817,7 @@ Defining \driver_pdf_compresslevel:n on line ...
Defining \driver_pdf_objects_enable: on line ...
Defining \driver_pdf_objects_disable: on line ...
Defining \__driver_pdf_objectlevel:n on line ...
+Defining \driver_pdf_version_minor: on line ...
)
Defining \__expl_status_pop:w on line ...
Defining \l__expl_status_stack_tl on line ...
diff --git a/l3kernel/testfiles/m3expl003.uptex.tlg b/l3kernel/testfiles/m3expl003.uptex.tlg
index 925b311..3599220 100644
--- a/l3kernel/testfiles/m3expl003.uptex.tlg
+++ b/l3kernel/testfiles/m3expl003.uptex.tlg
@@ -6822,6 +6822,7 @@ Defining \__driver_pdf_object_write_stream:nnnn on line ...
Defining \driver_pdf_compresslevel:n on line ...
Defining \driver_pdf_objects_enable: on line ...
Defining \driver_pdf_objects_disable: on line ...
+Defining \driver_pdf_version_minor: on line ...
)
Defining \__expl_status_pop:w on line ...
Defining \l__expl_status_stack_tl on line ...
diff --git a/l3kernel/testfiles/m3expl003.xetex.tlg b/l3kernel/testfiles/m3expl003.xetex.tlg
index 10f2ff0..2b01155 100644
--- a/l3kernel/testfiles/m3expl003.xetex.tlg
+++ b/l3kernel/testfiles/m3expl003.xetex.tlg
@@ -6501,6 +6501,7 @@ Defining \__driver_pdf_object_write_stream:nnnn on line ...
Defining \driver_pdf_compresslevel:n on line ...
Defining \driver_pdf_objects_enable: on line ...
Defining \driver_pdf_objects_disable: on line ...
+Defining \driver_pdf_version_minor: on line ...
)
Defining \__expl_status_pop:w on line ...
Defining \l__expl_status_stack_tl on line ...
More information about the latex3-commits
mailing list