[latex3-commits] [git/LaTeX3-latex3-latex3] master: Provide a path to alter logged graphics name for epstopdf (fdaf170)

Joseph Wright joseph.wright at morningstar2.co.uk
Sun May 12 22:17:09 CEST 2019


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/fdaf170573965a5fc1f5fb8bed61373f22ffb923

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

commit fdaf170573965a5fc1f5fb8bed61373f22ffb923
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun May 12 21:17:09 2019 +0100

    Provide a path to alter logged graphics name for epstopdf


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

fdaf170573965a5fc1f5fb8bed61373f22ffb923
 l3experimental/l3graphics/l3graphics.dtx |   13 ++++++++++---
 l3kernel/l3drivers-graphics.dtx          |    1 +
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/l3experimental/l3graphics/l3graphics.dtx b/l3experimental/l3graphics/l3graphics.dtx
index 66717ba..66bd00d 100644
--- a/l3experimental/l3graphics/l3graphics.dtx
+++ b/l3experimental/l3graphics/l3graphics.dtx
@@ -93,6 +93,11 @@
 %   height and width are significant, but this is driver-dependent.
 % \end{variable}
 %
+% \begin{variable}{\l_graphics_name_bool}
+%   The name of a graphics file being loaded: usually the same as the
+%   input file name, but may be altered by some drivers.
+% \end{variable}
+%
 % \begin{function}
 %   {
 %     \graphics_bb_save:n, \graphics_bb_save:x,
@@ -477,8 +482,9 @@
 %    \end{macrocode}
 % \end{variable}
 %
-% \begin{variable}{\l_@@_name_tl}
+% \begin{variable}{\l_graphics_name_tl, \l_@@_name_tl}
 %    \begin{macrocode}
+\tl_new:N \l_graphics_name_tl
 \tl_new:N \l_@@_name_tl
 %    \end{macrocode}
 % \end{variable}
@@ -597,12 +603,13 @@
     \mode_leave_vertical:
     \cs_if_exist:cTF { driver_graphics_include_ #1 :n }
       {
+        \tl_set_eq:NN \l_graphics_name_tl \l_@@_name_tl
         \exp_args:NnV \use:c { driver_graphics_getbb_ #1 :n }
           \l_@@_name_tl
-        \seq_gput_right:NV \g_@@_record_seq \l_@@_name_tl
+        \seq_gput_right:NV \g_@@_record_seq \l_graphics_name_tl
 %<*package>
         \clist_if_exist:NT \@filelist
-          { \exp_args:NV \@addtofilelist \l_@@_name_tl }
+          { \exp_args:NV \@addtofilelist \l_graphics_name_tl }
 %</package>
         \bool_if:NTF \l_graphics_draft_bool
           { \@@_include_auxiii:n }
diff --git a/l3kernel/l3drivers-graphics.dtx b/l3kernel/l3drivers-graphics.dtx
index d783d0a..96ac66b 100644
--- a/l3kernel/l3drivers-graphics.dtx
+++ b/l3kernel/l3drivers-graphics.dtx
@@ -258,6 +258,7 @@
             \sys_shell_now:n
               { repstopdf ~ #2 ~ #1 }
           }
+        \tl_set:Nn \l_graphics_name_tl {#1}
         \driver_graphics_getbb_pdf:n {#1}
       }
     \cs_new_protected:Npn \driver_graphics_include_eps:n #1





More information about the latex3-commits mailing list