[latex3-commits] [git/LaTeX3-latex3-latex3] master: Finalise PDF dictionaries with pdfTeX/LuaTeX (e52fe0a)
Joseph Wright
joseph.wright at morningstar2.co.uk
Sat Sep 1 23:40:07 CEST 2018
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/e52fe0ac7a0fa59e16bdf29d2b6ef76f821b52b1
>---------------------------------------------------------------
commit e52fe0ac7a0fa59e16bdf29d2b6ef76f821b52b1
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Sat Sep 1 22:40:07 2018 +0100
Finalise PDF dictionaries with pdfTeX/LuaTeX
No dedicated hook at the moment, so use the \AtEndDocument one.
>---------------------------------------------------------------
e52fe0ac7a0fa59e16bdf29d2b6ef76f821b52b1
l3kernel/l3drivers.dtx | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/l3kernel/l3drivers.dtx b/l3kernel/l3drivers.dtx
index fcd34fe..f41bd4d 100644
--- a/l3kernel/l3drivers.dtx
+++ b/l3kernel/l3drivers.dtx
@@ -1752,6 +1752,19 @@
}
}
\cs_new:Npn \@@_pdf_dictionary_finalise:nn #1#2 { / #1 ~ #2 }
+\cs_if_exist:NTF \AtEndDocument
+ { \AtEndDocument { \@@_pdf_dictionary_finalise: } }
+ {
+ \cs_if_exist:NTF \everybye
+ {
+ \global \everybye \expandafter
+ {
+ \the \everybye
+ \@@_pdf_dictionary_finalise:
+ }
+ }
+ { \tl_gput_left:Nn \bye { \@@_pdf_dictionary_finalise: } }
+ }
% \end{macrocode}
% \end{macro}
% \end{macro}
More information about the latex3-commits
mailing list