[latex3-commits] [git/LaTeX3-latex3-pdfresources] backendtest: corrected specials after discussion with alex (ce802f5)

Ulrike Fischer fischer at troubleshooting-tex.de
Thu Jun 27 10:08:17 CEST 2019


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

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

commit ce802f57056fb78ce084a92740a1166f07aba84b
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu Jun 27 10:08:17 2019 +0200

    corrected specials after discussion with alex


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

ce802f57056fb78ce084a92740a1166f07aba84b
 experiments/bdc-properties.tex | 22 ++++++++++------------
 1 file changed, 10 insertions(+), 12 deletions(-)

diff --git a/experiments/bdc-properties.tex b/experiments/bdc-properties.tex
index da7c6f2..6175697 100644
--- a/experiments/bdc-properties.tex
+++ b/experiments/bdc-properties.tex
@@ -55,32 +55,31 @@ end
 % dvips is easy: create an object, and reference it in the bdc
 % ghostscript will then automatically replace it by a name
 % and add the name to the /Properties dict
-% first special from pdfbase.sty, second from von accsupp:
+% special variant von accsupp https://chat.stackexchange.com/transcript/message/50831812#50831812
 
 \bool_if:nT {\sys_if_engine_pdftex_p: && !\sys_if_output_pdf_p: }
  {
   \cs_set_protected:Npn \__pdf_backend_bdc:nn #1 #2 % #1 eg. Span, #2: object name
    {
-     %\special{ps:~SDict~begin~mark~/#1~\__pdf_backend_object_ref:n{#2}~/BDC~pdfmark~end}
-     \special{ps:[/#1~\__pdf_backend_object_ref:n{#2}~BDC~pdfmark} %]
+     \special{ps:~mark~/#1~\__pdf_backend_object_ref:n{#2}~BDC~pdfmark} 
    }
   \cs_set_protected:Npn \__pdf_backend_emc:
    {
-    %\special{ps:~SDict~begin~mark~/EMC~pdfmark~end}
-    \special{ps:[/EMC~pdfmark} %]
+    \special{ps:~mark~/EMC~pdfmark} %
    }
   \cs_new_protected:Npn \__pdf_backend_PageN_Resources_gpush:n #1 {}
  }
 
 \int_new:N  \g__pdf_backend_name_int
 %xetex has so create the entries in the /Properties manually (like the other backends)
+% use pdfbase special https://chat.stackexchange.com/transcript/message/50832016#50832016
 \sys_if_engine_xetex:T
 {
  \cs_set_protected:Npn \__pdf_backend_bdc:nn #1 #2 % #1 eg. Span, #2: object name
    {
      \int_gincr:N \g__pdf_backend_name_int
-     %\special{pdf:code~#1/l3pdf\int_use:N\g__pdf_backend_name_int\c_space_tl BDC}
-     \special{pdf:content~/#1/l3pdf\int_use:N\g__pdf_backend_name_int\c_space_tl BDC}
+     \special{pdf:code~/#1/l3pdf\int_use:N\g__pdf_backend_name_int\c_space_tl BDC}
+     %\special{pdf:content~/#1/l3pdf\int_use:N\g__pdf_backend_name_int\c_space_tl BDC}
      \special{
         pdf:put~@resources~
         <<
@@ -91,12 +90,11 @@ end
           >>
          >>
        }
-     %\special{ps:~SDict~begin~mark~/#1~\__pdf_backend_object_ref:n{#2}~/BDC~pdfmark~end}
-   }
+    }
   \cs_set_protected:Npn \__pdf_backend_emc:
    {
-    %\special{pdf:code~EMC}  %pdfbase
-    \special{pdf:content~EMC}% accsupp
+    \special{pdf:code~EMC}  %pdfbase
+    %\special{pdf:content~EMC}% accsupp
    }
   \cs_new_protected:Npn \__pdf_backend_PageN_Resources_gpush:n #1 {}
 }
@@ -112,7 +110,7 @@ end
      \exp_args:Nx\tex_latelua:D
       {
        l3kernel.pdf.Page_Resources_Properties_gput
-        ( tex.count["c at page"],
+        ( tex.count["g__pdf_abspage_int"],
           "l3pdf\int_use:N\g__pdf_backend_name_int",
           "\__pdf_backend_object_ref:n{#2}"
         )





More information about the latex3-commits mailing list