[tex4ht-commits] [SCM] tex4ht updated: r895 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Sat Mar 6 18:05:28 CET 2021
Author: michal_h21
Date: 2021-03-06 19:05:28 +0200 (Sat, 06 Mar 2021)
New Revision: 895
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-html4.tex
Log:
use graphics- density in image conversion
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2021-03-06 12:08:06 UTC (rev 894)
+++ trunk/lit/ChangeLog 2021-03-06 17:05:28 UTC (rev 895)
@@ -6,6 +6,9 @@
* tex4ht-4ht.tex (caption.4ht): prevent expansion of macros written to TOC
by the \caption command.
https://tug.org/pipermail/tex4ht/2021q1/002912.html
+ * tex4ht-html4.tex (html4.4ht): use graphics- option value in PDF end EPS
+ conversion.
+ https://tex.stackexchange.com/a/586096/2891
2021-03-04 Michal Hoftich <michal.h21 at gmail.com>
Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex 2021-03-06 12:08:06 UTC (rev 894)
+++ trunk/lit/tex4ht-html4.tex 2021-03-06 17:05:28 UTC (rev 895)
@@ -13744,6 +13744,9 @@
\Configure{ImageMagick}{convert}
\Configure{Ghostscript}{rungs}
+\ifx\gr:density\empty
+\gdef\gr:density{300}
+\fi
\NewConfigure{EpsConvert}{1}
\NewConfigure{PdfConvert}{2}
@@ -13757,8 +13760,8 @@
% it is better to use the following command. pdf2svg must be installed separately.
\Configure{EpsConvert}{"epstopdf "\Gin at base.eps" && pdf2svg "\Gin at base.pdf" "\Gin at base.svg""}
\else
-\Configure{PdfConvert}{png}{"\a:Ghostscript\space -q -dNOPAUSE -dBATCH -dusecropbox -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{EpsConvert}{"\a:Ghostscript\space -dSAFER -dBATCH -dNOPAUSE -dEPSCrop -r120 -sDEVICE=pngalpha -sOutputFile="\Gin at base.png" "\Gin at base.eps" "}
+\Configure{PdfConvert}{png}{"\a:Ghostscript\space -q -dNOPAUSE -dBATCH -dusecropbox -sDEVICE=pngalpha -r\gr:density\space \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{EpsConvert}{"\a:Ghostscript\space -dSAFER -dBATCH -dNOPAUSE -dEPSCrop -r\gr:density\space -sDEVICE=pngalpha -sOutputFile="\Gin at base.png" "\Gin at base.eps" "}
\fi
\Configure{graphics*}
{pdf}
More information about the tex4ht-commits
mailing list.