[latex3-commits] [git/LaTeX3-latex3-pdfresources] splitting: working on bdc .... (ce94a82)

Ulrike Fischer fischer at troubleshooting-tex.de
Fri Jul 3 19:19:43 CEST 2020


Repository : https://github.com/latex3/pdfresources
On branch  : splitting
Link       : https://github.com/latex3/pdfresources/commit/ce94a8208ff0e9b315bfff38e91a97596f3c575d

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

commit ce94a8208ff0e9b315bfff38e91a97596f3c575d
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Fri Jul 3 19:19:43 2020 +0200

    working on bdc ....


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

ce94a8208ff0e9b315bfff38e91a97596f3c575d
 l3pdfmeta.dtx    |  5 ++++-
 pdfresources.dtx | 19 ++++++++++++++++++-
 2 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/l3pdfmeta.dtx b/l3pdfmeta.dtx
index 207156b..0eab65c 100644
--- a/l3pdfmeta.dtx
+++ b/l3pdfmeta.dtx
@@ -100,7 +100,10 @@
   {
     \cs_if_eq:NNTF \documentclass \@twoclasseserror
       { \msg_error:nn { pdf }{ setup-after-documentclass } }
-      { \keys_set:nn  { pdf / setup } { #1 } }
+      {
+        \bool_gset_true:N \g_@@_Core_active_bool
+        \keys_set:nn  { pdf / setup } { #1 }
+      }
   }
 
 \msg_new:nnn {pdf}{unknown-standard}{The~standard~'#1'~is~unknown~and~has~been~ignored}
diff --git a/pdfresources.dtx b/pdfresources.dtx
index 0c3bb2f..08d96c7 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -90,6 +90,13 @@
 %</package>
 %    \end{macrocode}
 % \section{Preparation/helper Code}
+% \begin{variable}{\g_@@_Core_active_bool}
+% This boolean will control the activation of the management code.
+% It is used in the hooks, and in some backend files.
+% \cs{DeclareDocumentMetadata} should set it to true
+%    \begin{macrocode}
+\bool_new:N \g_@@_Core_active_bool
+%    \end{macrocode}
 %^^A still needed:
 %^^A \pdf at strcmp??
 %^^A \pdf at escapestring?? \pdfescapestring
@@ -649,15 +656,25 @@
 % \end{macro}
 %
 % \subsubsection{BDC and Properties  / management}
+% \begin{macro}{\pdf_bdc:nn}
+% \begin{macro}{\pdf_bdc:n}
+% \begin{macro}{\pdf_bdc_direct:nn}
+% \begin{macro}{\pdf_bmc:n}
+% \begin{macro}{\pdf_emc:}
 %    \begin{macrocode}
 %<*package>
 \cs_new_protected:Npn  \pdf_bdc:nn #1 #2 { \@@_backend_bdc:nn { #1 }{ #2 } }
+\cs_new_protected:Npn  \pdf_bdc_direct:nn #1 #2 { \@@_backend_bdc_direct:nn { #1 }{ #2 } }
 \cs_new_protected:Npn  \pdf_bdc:n #1     { \@@_backend_bdc:n  { #1 } }
 \cs_new_protected:Npn  \pdf_bmc:n #1     { \@@_backend_bmc:n  { #1 } }
 \cs_new_protected:Npn  \pdf_emc:         { \@@_backend_emc: }
 %</package>
 %    \end{macrocode}
-%
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
 % \subsection{Form XObject (pdfxform)}
 % \begin{NOTE}{UF}
 %  - As in dvi mode the xform is immediate, this is done for pdftex/luatex too.





More information about the latex3-commits mailing list.