changeset 526:8eb15c0f9627 dev

Preview image generation modified
author HIROSE Yuuji <yuuji@gentei.org>
date Sat, 24 Feb 2018 16:44:25 +0900
parents e0222b0ab207
children af4601ee3c6a
files yatexprc.el
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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")))

yatex.org