[latex3-commits] [git/LaTeX3-latex3-pdfresources] splitting: added bdc-direct backend, replaced \special (6cdd2d1)
Ulrike Fischer
fischer at troubleshooting-tex.de
Fri Jul 3 00:46:43 CEST 2020
Repository : https://github.com/latex3/pdfresources
On branch : splitting
Link : https://github.com/latex3/pdfresources/commit/6cdd2d1ddebadbc9e3235df1a662ef976e595459
>---------------------------------------------------------------
commit 6cdd2d1ddebadbc9e3235df1a662ef976e595459
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Fri Jul 3 00:46:43 2020 +0200
added bdc-direct backend, replaced \special
>---------------------------------------------------------------
6cdd2d1ddebadbc9e3235df1a662ef976e595459
l3backend-pdf-extra.dtx | 1 +
pdfresources.dtx | 26 ++++++++++++++++++++++----
2 files changed, 23 insertions(+), 4 deletions(-)
diff --git a/l3backend-pdf-extra.dtx b/l3backend-pdf-extra.dtx
index 81ddcd0..3de6962 100644
--- a/l3backend-pdf-extra.dtx
+++ b/l3backend-pdf-extra.dtx
@@ -640,6 +640,7 @@
% \begin{variable}{\g_@@_backend_EmbeddedFiles_seq,\g_@@_backend_EmbeddedFiles_named_prop}
% The sequence will hold the content of the array that is pushed out at then
% end (not with dvips), the prop holds the obj names-names relation.
+% \end{variable}
% \begin{macrocode}
%<*drivers>
\seq_new:N \g_@@_backend_EmbeddedFiles_seq
diff --git a/pdfresources.dtx b/pdfresources.dtx
index 6cef4aa..0c3bb2f 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -362,20 +362,24 @@
%
\cs_set_protected:Npn \@@_backend_bdc:nn #1 #2 % #1 eg. Span, #2: object name
{
- \special {ps:~mark~/#1~\@@_backend_object_ref:n{#2}~/BDC~pdfmark}
+ \__pdf_backend_pdfmark:x{/#1~\@@_backend_object_ref:n{#2}~/BDC}
}
\cs_set_protected:Npn \@@_backend_bdc:n #1 % #1 eg. Span,
{
- \special {ps:~mark~/#1~\@@_backend_object_last:~/BDC~pdfmark}
+ \__pdf_backend_pdfmark:x{/#1~\@@_backend_object_last:~/BDC}
}
\cs_set_protected:Npn \@@_backend_emc:
{
- \special {ps:~mark~/EMC~pdfmark} %
+ \__pdf_backend_pdfmark:n{/EMC} %
}
\cs_set_protected:Npn \@@_backend_bmc:n #1
{
- \special {ps:~mark~/#1~/BMC~pdfmark} %
+ \__pdf_backend_pdfmark:n{/#1~/BMC} %
}
+\cs_set_protected:Npn \@@_backend_bdc_direct:nn #1 #2
+ {
+ \__pdf_backend_pdfmark:n{/#1~<<#2>>~/BDC}
+ }
\cs_new_protected:Npn \@@_backend_PageResources_gpush:n #1 {}
%</dvips>
@@ -428,6 +432,10 @@
{
\__kernel_backend_literal:n {pdf:code~/#1~BMC} %pdfbase
}
+\cs_set_protected:Npn \@@_backend_bdc_direct:nn #1 #2
+ {
+ \__kernel_backend_literal_page:n {pdf:code~ /#1~<<#2>>~BDC }
+ }
\cs_set_protected:Npn \@@_backend_emc:
{
\__kernel_backend_literal:n {pdf:code~EMC} %pdfbase
@@ -505,6 +513,10 @@
{
\__kernel_backend_literal_page:n { /#1~BMC }
}
+ \cs_set_protected:Npn \@@_backend_bdc_direct:nn #1 #2
+ {
+ \__kernel_backend_literal_page:n { /#1~<<#2>>~BDC }
+ }
\cs_set_protected:Npn \@@_backend_emc:
{
\__kernel_backend_literal_page:n { EMC }
@@ -592,6 +604,11 @@
{
\__kernel_backend_literal_page:n { /#1~BMC }
}
+ \cs_set_protected:Npn \@@_backend_bdc_direct:nn #1 #2
+ {
+ \__kernel_backend_literal_page:n { /#1~<<#2>>~BDC }
+ }
+
\cs_set_protected:Npn \@@_backend_emc:
{
\__kernel_backend_literal_page:n { EMC }
@@ -1953,4 +1970,5 @@ function l3kernel.pdf.object_ref (objname)
end
%</lua>
% \end{macrocode}
+% \newpage
% \PrintIndex
More information about the latex3-commits
mailing list.