[latex3-commits] [latex3/pdfresources] wtpdfdeclaration: use current date, key to disable (ed1f856)

github at latex-project.org github at latex-project.org
Mon Mar 25 10:51:15 CET 2024


Repository : https://github.com/latex3/pdfresources
On branch  : wtpdfdeclaration
Link       : https://github.com/latex3/pdfresources/commit/ed1f85699dcb19609fcfb62aadae8aa9868a876a

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

commit ed1f85699dcb19609fcfb62aadae8aa9868a876a
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon Mar 25 10:51:15 2024 +0100

    use current date, key to disable


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

ed1f85699dcb19609fcfb62aadae8aa9868a876a
 l3pdfmeta.dtx | 35 +++++++++++++++++++++++++++++++----
 1 file changed, 31 insertions(+), 4 deletions(-)

diff --git a/l3pdfmeta.dtx b/l3pdfmeta.dtx
index 6b78b51..92da1d3 100644
--- a/l3pdfmeta.dtx
+++ b/l3pdfmeta.dtx
@@ -1294,8 +1294,35 @@
          \@@_xmp_wtpdf_reuse_declaration:
        }        
     },    
-   xmp  .bool_gset:N = \g_@@_xmp_bool
+   xmp  .choice:,
+   xmp / true  .code:n = { \bool_gset_true:N \g_@@_xmp_bool },
+   xmp / false .code:n = { \bool_gset_false:N \g_@@_xmp_bool},
+   xmp .default:n = true,
+%    \end{macrocode}
+% These keys allow to disable or force the wtpdf declarations. 
+% Currently the content can not be changed and once they have been disabled there
+% are gone. This will perhaps change.
+%    \begin{macrocode}
+   xmp / wtpdf .code:n = 
+    {
+      \keys_set:nn {@@/xmp}{#1}
+    },
  }
+\keys_define:nn {@@/xmp}
+ {
+   reuse .choice:,
+   reuse / true .code:n = \@@_xmp_wtpdf_reuse_declaration:,
+   reuse / false .code:n =
+    {
+      \cs_set_eq:NN \@@_xmp_wtpdf_reuse_declaration: \prg_do_nothing:
+    },
+   accessibility .choice:, 
+   accessibility / true .code:n = \@@_xmp_wtpdf_accessibility_declaration:, 
+   accessibility /false .code:n = 
+    {
+      \cs_set_eq:NN \@@_xmp_wtpdf_accessibility_declaration: \prg_do_nothing:
+    },  
+  } 
 %    \end{macrocode}
 % XMP debugging option
 %    \begin{macrocode}
@@ -2903,9 +2930,9 @@
 %    \begin{macrocode}
 \cs_new:Npn \@@_xmp_iso_today:
   {
-    \c_sys_year_int-
-    \int_compare:nNnT {\c_sys_month_int} < {10}{0} \c_sys_month_int -
-    \int_compare:nNnT {\c_sys_day_int}   < {10}{0} \c_sys_day_int
+    \int_use:N\c_sys_year_int-
+    \int_compare:nNnT {\c_sys_month_int} < {10}{0} \int_use:N\c_sys_month_int -
+    \int_compare:nNnT {\c_sys_day_int}   < {10}{0} \int_use:N\c_sys_day_int
   }
 \cs_new_protected:Npn \@@_xmp_wtpdf_reuse_declaration:
  {





More information about the latex3-commits mailing list.