texlive[52007] Master/texmf-dist/tex/generic/tex4ht/ooffice.4ht: eps

commits+karl at tug.org commits+karl at tug.org
Sun Sep 1 23:23:42 CEST 2019


Revision: 52007
          http://tug.org/svn/texlive?view=revision&revision=52007
Author:   karl
Date:     2019-09-01 23:23:42 +0200 (Sun, 01 Sep 2019)
Log Message:
-----------
eps image support, tex4ht r597

Revision Links:
--------------
    http://tug.org/svn/texlive?view=revision&revision=597

Modified Paths:
--------------
    trunk/Master/texmf-dist/tex/generic/tex4ht/ooffice.4ht

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/ooffice.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/ooffice.4ht	2019-08-31 23:59:56 UTC (rev 52006)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/ooffice.4ht	2019-09-01 21:23:42 UTC (rev 52007)
@@ -1,4 +1,4 @@
-% ooffice.4ht (2019-08-20-14:31), generated from tex4ht-ooffice.tex
+% ooffice.4ht (2019-09-01-14:21), generated from tex4ht-ooffice.tex
 % Copyright 2009-2019 TeX Users Group
 % Copyright 2001-2009 Maarten Wisse, James Naughton, Eitan M. Gurari
 %
@@ -17,7 +17,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2019-08-20-14:31}
+\immediate\write-1{version 2019-09-01-14:21}
 
   \exit:ifnot{Preamble,% 
 algorithmicx,% 
@@ -6946,9 +6946,29 @@
 
 
 \NewConfigure{Ghostscript}{1}
+\Configure{Ghostscript}{rungs}
+
+\NewConfigure{EpsConvert}{1}
+\Configure{EpsConvert}{"\a:Ghostscript\space -dSAFER    -dBATCH    -dNOPAUSE    -dEPSCrop    -r120  -sDEVICE=pngalpha -sOutputFile='\Gin at base.png' '\Gin at base.eps' "}
+
+\Configure{graphics*}
+   {eps}
+   {\openin15=\csname Gin at base\endcsname\PictExt\relax%
+   \ifeof15%
+   \Needs{\a:EpsConvert}%
+   \fi%
+   \closein15%
+   \def\Gin at ext{\PictExt}% fix to get correct extension for the generated png file
+   \expandafter\getImgFile\expandafter{\Gin at base}{\PictExt}
+   \Picture[IMG]{{\imgBase\PictExt} \ifx\noBoundingBox\UnDefined
+   svg:width="\the\Gin at req@width"
+   svg:height="\the\Gin at req@height"
+\fi
+}}
+
 \NewConfigure{PdfConvert}{2}
-\Configure{Ghostscript}{rungs}
 \Configure{PdfConvert}{png}{"\a:Ghostscript\space -q -dNOPAUSE -dBATCH -sDEVICE=pngalpha -r300 \ifx\Gin at page\@empty\else -dFirstPage='\Gin at page'  -dLastPage='\Gin at page'\fi\space -sOutputFile='\Gin at base-\Gin at page.\a:PdfConvert' \Gin at base.pdf"}
+
 \Configure{graphics*}
    {pdf}
    {\ifdefined\Gin at page\else\def\Gin at page{1}\fi%



More information about the tex-live-commits mailing list