diff options
author | Karl Berry <karl@freefriends.org> | 2019-09-01 21:23:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-09-01 21:23:42 +0000 |
commit | 6c2b37784436216910ca9511232762e43883439d (patch) | |
tree | 5880fb5e98459f236679b4987e4198a89a66b033 /Master/texmf-dist/tex/generic/tex4ht | |
parent | 5b7de9beebdfccb3d4193ce3bb383bb35b351ad0 (diff) |
eps image support, tex4ht r597
git-svn-id: svn://tug.org/texlive/trunk@52007 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht')
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/ooffice.4ht | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/ooffice.4ht b/Master/texmf-dist/tex/generic/tex4ht/ooffice.4ht index db66e7b53ff..e327e9872d4 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/ooffice.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/ooffice.4ht @@ -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 @@ style:display-name="Footnote anchor" style:family="text"> \NewConfigure{Ghostscript}{1} -\NewConfigure{PdfConvert}{2} \Configure{Ghostscript}{rungs} + +\NewConfigure{EpsConvert}{1} +\Configure{EpsConvert}{"\a:Ghostscript\space -dSAFER -dBATCH -dNOPAUSE -dEPSCrop -r120 -sDEVICE=pngalpha -sOutputFile='\Gin@base.png' '\Gin@base.eps' "} + +\Configure{graphics*} + {eps} + {\openin15=\csname Gin@base\endcsname\PictExt\relax% + \ifeof15% + \Needs{\a:EpsConvert}% + \fi% + \closein15% + \def\Gin@ext{\PictExt}% fix to get correct extension for the generated png file + \expandafter\getImgFile\expandafter{\Gin@base}{\PictExt} + \Picture[IMG]{{\imgBase\PictExt} \ifx\noBoundingBox\UnDefined + svg:width="\the\Gin@req@width" + svg:height="\the\Gin@req@height" +\fi +}} + +\NewConfigure{PdfConvert}{2} \Configure{PdfConvert}{png}{"\a:Ghostscript\space -q -dNOPAUSE -dBATCH -sDEVICE=pngalpha -r300 \ifx\Gin@page\@empty\else -dFirstPage='\Gin@page' -dLastPage='\Gin@page'\fi\space -sOutputFile='\Gin@base-\Gin@page.\a:PdfConvert' \Gin@base.pdf"} + \Configure{graphics*} {pdf} {\ifdefined\Gin@page\else\def\Gin@page{1}\fi% |