[tex4ht-commits] [SCM] tex4ht updated: r453 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Thu Nov 29 20:01:55 CET 2018
Author: michal_h21
Date: 2018-11-29 21:01:55 +0200 (Thu, 29 Nov 2018)
New Revision: 453
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-html4.tex
Log:
Made the gs command for pdf to png conversion configurable using \Configure{GhostScript}{rungs}
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2018-11-29 18:47:25 UTC (rev 452)
+++ trunk/lit/ChangeLog 2018-11-29 19:01:55 UTC (rev 453)
@@ -3,6 +3,8 @@
* tex4ht-html4.tex (html4.4ht): Added \Configure{AddJs} and
\Configure{AddCss} for external script and style sheet inclusion.
* tex4ht-html4.tex (html4.4ht): Added support for web fonts.
+ * tex4ht-html4.tex (html4.4ht): Made the GhostScript configuration for
+ actuall gs executable selection for the PDF to png conversion.
2018-11-24 Karl Berry <karl at freefriends.org>
Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex 2018-11-29 18:47:25 UTC (rev 452)
+++ trunk/lit/tex4ht-html4.tex 2018-11-29 19:01:55 UTC (rev 453)
@@ -13633,12 +13633,14 @@
\Picture[\a:GraphicsAlt]{{\Gin at base\PictExt} |<graphics dim|>}}
+\NewConfigure{GhostScript}{1}
\NewConfigure{PdfConvert}{2}
+\Configure{GhostScript}{rungs}
\edef\svg:ext{.svg}
\ifx\PictExt\svg:ext
\Configure{PdfConvert}{svg}{"pdf2svg '\Gin at base.pdf' '\Gin at base-\Gin at page.\a:PdfConvert' \Gin at page"}
\else
-\Configure{PdfConvert}{png}{"rungs -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{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"}
\fi
\Configure{graphics*}
{pdf}
More information about the tex4ht-commits
mailing list