[latex3-commits] [git/LaTeX3-latex3-latex3] main: Standardise support for .ps files (ddc1d23e1)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Apr 12 14:12:40 CEST 2022


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/ddc1d23e1bdd80f1fbafc05f66661a88ab32817b

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

commit ddc1d23e1bdd80f1fbafc05f66661a88ab32817b
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Apr 12 13:12:40 2022 +0100

    Standardise support for .ps files
    
    Treated as .eps, so need to be single page.


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

ddc1d23e1bdd80f1fbafc05f66661a88ab32817b
 l3backend/l3backend-graphics.dtx | 27 +++++++++++++++++++--------
 1 file changed, 19 insertions(+), 8 deletions(-)

diff --git a/l3backend/l3backend-graphics.dtx b/l3backend/l3backend-graphics.dtx
index e23ef81c7..a495fce95 100644
--- a/l3backend/l3backend-graphics.dtx
+++ b/l3backend/l3backend-graphics.dtx
@@ -143,7 +143,7 @@
   {
     \seq_set_from_clist:Nn
       \l_graphics_search_ext_seq
-      { .pdf , .eps , .png , .jpg , .jpeg  }
+      { .pdf , .eps , .ps , .png , .jpg , .jpeg  }
   }
 %    \end{macrocode}
 % \end{variable}
@@ -282,9 +282,9 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% \begin{macro}{\@@_backend_getbb_eps:n}
+% \begin{macro}{\@@_backend_getbb_eps:n, \@@_backend_getbb_ps:n}
 % \begin{macro}{\@@_backend_getbb_eps:nm}
-% \begin{macro}{\@@_backend_include_eps:n}
+% \begin{macro}{\@@_backend_include_eps:n, \@@_backend_include_ps:n}
 % \begin{variable}
 %   {\l_@@_backend_dir_str, \l_@@_backend_name_str, \l_@@_backend_ext_str}
 %   EPS graphics may be included in \LuaTeX{}/pdfTeX{} by conversion to
@@ -314,6 +314,7 @@
           }
           {#1}
      }
+    \cs_new_eq:NN \@@_backend_getbb_ps:n \@@_backend_getbb_eps:n
     \cs_new_protected:Npn \@@_backend_getbb_eps:nn #1#2
       {
         \file_compare_timestamp:nNnT {#2} > {#1}
@@ -338,6 +339,7 @@
               }
           }
       }
+    \cs_new_eq:NN \@@_backend_include_ps:n \@@_backend_include_eps:n
   }
 %    \end{macrocode}
 % \end{variable}
@@ -379,7 +381,7 @@
 %
 % \begin{macro}
 %   {
-%     \@@_backend_getbb_eps:n ,
+%     \@@_backend_getbb_eps:n , \@@_backend_getbb_ps:n ,
 %     \@@_backend_getbb_jpg:n , \@@_backend_getbb_jpeg:n ,
 %     \@@_backend_getbb_pdf:n , \@@_backend_getbb_png:n  ,
 %     \@@_backend_getbb_bmp:n
@@ -683,7 +685,7 @@
   {
     \seq_set_from_clist:Nn
       \l_graphics_search_ext_seq
-      { .svg , .pdf , .eps , .png , .jpg , .jpeg }
+      { .svg , .pdf , .eps , .ps , .png , .jpg , .jpeg }
   }
 %    \end{macrocode}
 % \end{variable}
@@ -792,11 +794,14 @@
 % \end{macro}
 % \end{macro}
 %
-% \begin{macro}{\@@_backend_getbb_eps:n}
+% \begin{macro}{\@@_backend_getbb_eps:n, \@@_backend_getbb_ps:n}
 %   Simply use the generic function.
 %    \begin{macrocode}
 \@@_backend_loaded:n
-  { \cs_new_eq:NN \@@_backend_getbb_eps:n \@@_read_bb:n }
+  {
+    \cs_new_eq:NN \@@_backend_getbb_eps:n \@@_read_bb:n
+    \cs_new_eq:NN \@@_backend_getbb_ps:n \@@_read_bb:n
+  }
 %    \end{macrocode}
 % \end{macro}
 %
@@ -826,13 +831,19 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% \begin{macro}{\@@_backend_include_eps:n, \@@_backend_include_pdf:n}
+% \begin{macro}
+%   {
+%     \@@_backend_include_eps:n ,
+%     \@@_backend_include_ps:n  ,
+%     \@@_backend_include_pdf:n
+%   }
 % \begin{macro}{\@@_backend_include:nn}
 %   The special syntax is relatively clear here: remember we need PostScript
 %   sizes here. (This is the same as the \texttt{dvips} code.)
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_backend_include_eps:n #1
   { \@@_backend_include:nn { PSfile } {#1} }
+\cs_new_eq:NN \@@_backend_include_ps:n \@@_backend_include_eps:n
 \cs_new_protected:Npn \@@_backend_include_pdf:n #1
   { \@@_backend_include:nn { pdffile } {#1} }
 \cs_new_protected:Npn \@@_backend_include:nn #1#2





More information about the latex3-commits mailing list.