summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tagpdf/tagpdf.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/tagpdf/tagpdf.dtx')
-rw-r--r--macros/latex/contrib/tagpdf/tagpdf.dtx57
1 files changed, 11 insertions, 46 deletions
diff --git a/macros/latex/contrib/tagpdf/tagpdf.dtx b/macros/latex/contrib/tagpdf/tagpdf.dtx
index be718ec36d..d9550ab7a7 100644
--- a/macros/latex/contrib/tagpdf/tagpdf.dtx
+++ b/macros/latex/contrib/tagpdf/tagpdf.dtx
@@ -92,7 +92,7 @@
% \begin{macrocode}
%<@@=tag>
%<*package>
-\ProvidesExplPackage {tagpdf} {2022-08-24} {0.97}
+\ProvidesExplPackage {tagpdf} {2022-12-22} {0.98}
{ A package to experiment with pdf tagging }
\bool_if:nF
@@ -118,7 +118,7 @@
% \end{macrocode}
%<*debug>
% \begin{macrocode}
-\ProvidesExplPackage {tagpdf-debug} {2022-08-24} {0.97}
+\ProvidesExplPackage {tagpdf-debug} {2022-12-22} {0.98}
{ debug code for tagpdf }
\@ifpackageloaded{tagpdf}{}{\PackageWarning{tagpdf-debug}{tagpdf~not~loaded,~quitting}\endinput}
% \end{macrocode}
@@ -159,7 +159,7 @@
% \end{macrocode}
% \begin{macrocode}
%<*base>
-\ProvidesExplPackage {tagpdf-base} {2022-08-24} {0.97}
+\ProvidesExplPackage {tagpdf-base} {2022-12-22} {0.98}
{part of tagpdf - provide base, no-op versions of the user commands }
%</base>
% \end{macrocode}
@@ -180,47 +180,6 @@
}
%</base>
% \end{macrocode}
-% \section{Temporary code}
-% This is code which will be removed when proper support exists in LaTeX
-% It writes only dictionaries!
-% \subsection{Faster object writing}
-% \begin{macrocode}
-%<*package>
-\cs_if_free:NT \pdf_object_write:nnn
- {
- \cs_new_protected:Npn \pdf_object_new:n #1
- { \pdf_object_new:nn{#1}{dict} }
- \cs_new_protected:Npn \pdf_object_write:nnn #1#2#3
- {
- \pdf_object_write:nn {#1}{#3}
- }
- \str_if_eq:VnT \c_sys_backend_str {pdftex}
- {
- \cs_set_protected:Npn \pdf_object_write:nnn #1#2#3
- {
- \tex_immediate:D \tex_pdfobj:D
- useobjnum ~
- \int_use:c
- { c__pdf_backend_object_ \tl_to_str:n {#1} _int }
- { << ~ \exp_not:n {#3} ~ >> }
- }
- }
- \str_if_eq:VnT \c_sys_backend_str {luatex}
- {
- \cs_set_protected:Npn \pdf_object_write:nnn #1#2#3
- {
- \tex_immediate:D \tex_pdfextension:D obj ~
- useobjnum ~
- \int_use:c
- { c__pdf_backend_object_ \tl_to_str:n {#1} _int }
- { << ~ \exp_not:n {#3} ~ >> }
- }
- }
- }
-\cs_generate_variant:Nn \pdf_object_write:nnn {nnx}
-
-%</package>
-% \end{macrocode}
% \subsection{a LastPage label}
% See also issue \#2 in Accessible-xref
@@ -276,7 +235,10 @@
% \begin{variable}
% {
% \l_@@_tmpa_tl,
-% \l_@@_tmpb_tl
+% \l_@@_tmpb_tl,
+% \l_@@_get_tmpc_tl,
+% \l_@@_get_parent_tmpa_tl
+% \l_@@_get_parent_tmpb_tl
% \l_@@_tmpa_str,
% \l_@@_tmpa_prop,
% \l_@@_tmpa_seq,
@@ -290,6 +252,9 @@
% \begin{macrocode}
\tl_new:N \l_@@_tmpa_tl
\tl_new:N \l_@@_tmpb_tl
+\tl_new:N \l_@@_get_tmpc_tl
+\tl_new:N \l_@@_get_parent_tmpa_tl
+\tl_new:N \l_@@_get_parent_tmpb_tl
\str_new:N \l_@@_tmpa_str
\prop_new:N \l_@@_tmpa_prop
\seq_new:N \l_@@_tmpa_seq
@@ -386,7 +351,7 @@
\cs_generate_variant:Nn \pdffile_embed_stream:nnn {nxx,oxx}
\cs_generate_variant:Nn \prop_gput:Nnn {Nxx,Nen}
\cs_generate_variant:Nn \prop_put:Nnn {Nxx}
-\cs_generate_variant:Nn \prop_item:Nn {No}
+\cs_generate_variant:Nn \prop_item:Nn {No,Ne}
\cs_generate_variant:Nn \ref_label:nn { nv }
\cs_generate_variant:Nn \seq_set_split:Nnn{Nne}
\cs_generate_variant:Nn \str_set_convert:Nnnn {Nonn, Noon, Nnon }