[latex3-commits] [git/LaTeX3-latex3-pdfresources] backendtest: start moving to dtx (87721eb)

Ulrike Fischer fischer at troubleshooting-tex.de
Sat Jun 29 11:44:20 CEST 2019


Repository : https://github.com/latex3/pdfresources
On branch  : backendtest
Link       : https://github.com/latex3/pdfresources/commit/87721ebb40f68e2874d4f1c9d504e15768d2aacf

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

commit 87721ebb40f68e2874d4f1c9d504e15768d2aacf
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Jun 29 11:44:20 2019 +0200

    start moving to dtx


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

87721ebb40f68e2874d4f1c9d504e15768d2aacf
 experiments/bdc-properties.tex | 60 +++++++++++++++++++++---------------------
 1 file changed, 30 insertions(+), 30 deletions(-)

diff --git a/experiments/bdc-properties.tex b/experiments/bdc-properties.tex
index 6175697..91bd29a 100644
--- a/experiments/bdc-properties.tex
+++ b/experiments/bdc-properties.tex
@@ -18,36 +18,36 @@
 \usepackage{luacode}
 % the following should latter get in the l3kernel table and be named
 % more sensibly. This here is only for testing
-\begin{luacode}
-l3kernel= l3kernel or {}
-l3kernel.__pdf      = l3kernel.__pdf or {}
-l3kernel.__pdf.Page = l3kernel.__pdf.Page or {}
-l3kernel.__pdf.Page.Resources = l3kernel.__pdf.Resources or {}
-l3kernel.__pdf.Page.Resources.Properties = l3kernel.__pdf.Page.Resources.Properties or {}
-l3kernel.pdf= l3kernel.pdf or {} -- for "public" functions
-
-local Properties= l3kernel.__pdf.Page.Resources.Properties
-
-local function __pdf_backend_PageN_Resources_gpush (page)
- local token=""
- if Properties[page] then
-  for name,value in pairs(Properties[page]) do
-   token = token .. "/"..name.." "..value
-  end
-  token = "/Properties <<"..token..">>"
- end
- -- add ExtGstate etc here ....
- return token
-end
-
--- the function is public, as I probably need it in tagpdf too ...
-function l3kernel.pdf.Page_Resources_Properties_gput (page,name,value) -- tex.count["g__pdf_abspage_int"]
- Properties[page] = Properties[page] or {}
- Properties[page][name]=value
- pdf.setpageresources(__pdf_backend_PageN_Resources_gpush (page))
-end
-
-\end{luacode}
+%\begin{luacode}
+%l3kernel= l3kernel or {}
+%l3kernel.__pdf      = l3kernel.__pdf or {}
+%l3kernel.__pdf.Page = l3kernel.__pdf.Page or {}
+%l3kernel.__pdf.Page.Resources = l3kernel.__pdf.Resources or {}
+%l3kernel.__pdf.Page.Resources.Properties = l3kernel.__pdf.Page.Resources.Properties or {}
+%l3kernel.pdf= l3kernel.pdf or {} -- for "public" functions
+%
+%local Properties= l3kernel.__pdf.Page.Resources.Properties
+%
+%local function __pdf_backend_PageN_Resources_gpush (page)
+% local token=""
+% if Properties[page] then
+%  for name,value in pairs(Properties[page]) do
+%   token = token .. "/"..name.." "..value
+%  end
+%  token = "/Properties <<"..token..">>"
+% end
+% -- add ExtGstate etc here ....
+% return token
+%end
+%
+%-- the function is public, as I probably need it in tagpdf too ...
+%function l3kernel.pdf.Page_Resources_Properties_gput (page,name,value) -- tex.count["g__pdf_abspage_int"]
+% Properties[page] = Properties[page] or {}
+% Properties[page][name]=value
+% pdf.setpageresources(__pdf_backend_PageN_Resources_gpush (page))
+%end
+%
+%\end{luacode}
 \fi
 
 \ExplSyntaxOn





More information about the latex3-commits mailing list