[latex3-commits] [git/LaTeX3-latex3-latex3] master: Support PDF files with dvisvgm backend (88ea1b170)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Sep 4 14:49:07 CEST 2019


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

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

commit 88ea1b170067ab2e4b6c7be4bc7111a8f873cfa1
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Sep 4 13:49:07 2019 +0100

    Support PDF files with dvisvgm backend


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

88ea1b170067ab2e4b6c7be4bc7111a8f873cfa1
 l3backend/CHANGELOG.md           |  2 +-
 l3backend/l3backend-graphics.dtx | 14 ++++++++++----
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/l3backend/CHANGELOG.md b/l3backend/CHANGELOG.md
index 945fdbe62..7c1337db9 100644
--- a/l3backend/CHANGELOG.md
+++ b/l3backend/CHANGELOG.md
@@ -8,7 +8,7 @@ this project uses date-based 'snapshot' version identifiers.
 
 ### Added
 
-- Support for EPS files with `dvisvgm` backend
+- Support for EPS and PDF files with `dvisvgm` backend
 
 ### Fixed
 
diff --git a/l3backend/l3backend-graphics.dtx b/l3backend/l3backend-graphics.dtx
index 4db76799f..f44fa8d5b 100644
--- a/l3backend/l3backend-graphics.dtx
+++ b/l3backend/l3backend-graphics.dtx
@@ -595,15 +595,20 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% \begin{macro}{\@@_backend_include_eps:n}
-%  The special syntax is relatively clear here: remember we need PostScript
-%  sizes here. (This is the same as the \texttt{dvips} code.)
+% \begin{macro}{\@@_backend_include_eps: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_protected:Npn \@@_backend_include_pdf:n #1
+  { @@_backend_include:nn { pdffile } {#1} } 
+\cs_new_protected:Npn \@@_backend_include:nn #1#2
   {
     \__kernel_backend_literal:x
       {
-        PSfile = #1 \c_space_tl
+        #1 = #2 \c_space_tl
         llx = \dim_to_decimal_in_bp:n \l_graphics_llx_dim \c_space_tl
         lly = \dim_to_decimal_in_bp:n \l_graphics_lly_dim \c_space_tl
         urx = \dim_to_decimal_in_bp:n \l_graphics_urx_dim \c_space_tl
@@ -612,6 +617,7 @@
   }
 %    \end{macrocode}
 % \end{macro}
+% \end{macro}
 %
 % \begin{macro}{\@@_backend_include_png:n, \@@_backend_include_jpg:n}
 % \begin{macro}{\@@_backend_include_bitmap_quote:w}





More information about the latex3-commits mailing list