[latex3-commits] [latex3/pdfresources] develop: Add \LogDocumentProperties (f46454f)

github at latex-project.org github at latex-project.org
Wed Sep 11 19:15:26 CEST 2024


Repository : https://github.com/latex3/pdfresources
On branch  : develop
Link       : https://github.com/latex3/pdfresources/commit/f46454f76dee809805c50aa14c0bf286395785ea

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

commit f46454f76dee809805c50aa14c0bf286395785ea
Author: Victor Westerhuis <victor.westerhuis at alliander.com>
Date:   Wed Sep 11 15:28:06 2024 +0200

    Add \LogDocumentProperties


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

f46454f76dee809805c50aa14c0bf286395785ea
 CHANGELOG.md  |  3 +++
 ltdocinit.dtx | 14 +++++++++++---
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4f99cf0..5f26320 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,9 @@ this project uses date-based 'snapshot' version identifiers.
 
 ## [Unreleased]
 
+### Added
+ - ltdocinit.dtx: add \LogDocumentProperties
+
 ### Fixed 
  - colorspace-patches-tmp-ltx.sty: fixes hook use, issue #78
  
diff --git a/ltdocinit.dtx b/ltdocinit.dtx
index 0e5a73c..366bcf5 100644
--- a/ltdocinit.dtx
+++ b/ltdocinit.dtx
@@ -197,11 +197,12 @@
 %   stream.  The \meta{token list variable} is assigned locally.
 % \end{function}
 % 
-% \begin{function}{\ShowDocumentProperties}
+% \begin{function}{\ShowDocumentProperties,\LogDocumentProperties}
 % \begin{syntax}
-%  \cs{ShowDocumentProperties}
+%  \cs{ShowDocumentProperties}\\
+%  \cs{LogDocumentProperties}
 % \end{syntax}
-% This show the current content of the container.
+% This shows/logs the current content of the container.
 % \end{function}
 %
 % \begin{thebibliography}{9}
@@ -324,6 +325,13 @@
         \prop_map_function:NN \g_@@_documentproperties_prop \msg_show_item:nn
       }
   }
+\NewDocumentCommand\LogDocumentProperties {}
+  {
+    \msg_log:nne {pdfmanagement}{show-properties}
+      {
+        \prop_map_function:NN \g_@@_documentproperties_prop \msg_show_item:nn
+      }
+  }
 %    \end{macrocode}
 % \end{macro}
 %    \begin{macrocode}





More information about the latex3-commits mailing list.