[tex4ht-commits] [SCM] tex4ht updated: r597 - trunk/lit

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Sun Sep 1 20:30:10 CEST 2019


Author: michal_h21
Date: 2019-09-01 21:30:10 +0300 (Sun, 01 Sep 2019)
New Revision: 597

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-ooffice.tex
Log:
Added support for EPS images

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2019-08-31 20:45:48 UTC (rev 596)
+++ trunk/lit/ChangeLog	2019-09-01 18:30:10 UTC (rev 597)
@@ -1,3 +1,7 @@
+2019-09-01 Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-ooffice.tex (ooffice.4ht): added support for the EPS images.
+
 2019-08-31 Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-html4.tex (html4.4ht),

Modified: trunk/lit/tex4ht-ooffice.tex
===================================================================
--- trunk/lit/tex4ht-ooffice.tex	2019-08-31 20:45:48 UTC (rev 596)
+++ trunk/lit/tex4ht-ooffice.tex	2019-09-01 18:30:10 UTC (rev 597)
@@ -1015,9 +1015,25 @@
 |<graphics default extensions|>
 
 \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} |<graphics dimensions|>}}
+
 \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 tex4ht-commits mailing list