# HG changeset patch # User HIROSE Yuuji # Date 1519458265 -32400 # Node ID 8eb15c0f9627cc8b2942d6b4280ae143423f942e # Parent e0222b0ab207f0c4bc69260d0712b39da06e7e53 Preview image generation modified diff -r e0222b0ab207 -r 8eb15c0f9627 yatexprc.el --- a/yatexprc.el Sat Feb 24 16:42:28 2018 +0900 +++ b/yatexprc.el Sat Feb 24 16:44:25 2018 +0900 @@ -445,12 +445,12 @@ (list "pdfcrop --clip %b.pdf tmp.pdf" (if (YaTeX-executable-find "convert") - "convert -density %d tmp.pdf %b.%f" + "convert -alpha off -density %d tmp.pdf %b.%f" ;; If we use sips, specify jpeg as format "sips -s format jpeg -s dpiWidth %d -s dpiHeight %d %b.pdf --out %b.jpg") "rm -f tmp.pdf")) ((YaTeX-executable-find "convert") - (list "convert -trim -density %d %b.pdf %b.%f")) + (list "convert -trim -alpha off -density %d %b.pdf %b.%f")) ) "*Pipe line of command as a list to create image file from PDF. See also doc-string of YaTeX-typeset-dvi2image-chain.") @@ -461,6 +461,10 @@ (list (format "%s -E -o %%b.eps %%b.dvi" YaTeX-cmd-dvips) "convert -alpha off -density %d %b.eps %b.%f")) + ((YaTeX-executable-find YaTeX-dvipdf-command) + (list + (format "%s %%b.dvi" YaTeX-dvipdf-command) + "convert -trim -alpha off -density %d %b.pdf %b.%f")) ((and (equal YaTeX-use-image-preview "png") (YaTeX-executable-find "dvipng")) (list "dvipng %b.dvi")))