yatex
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 diff
1.1 --- a/yatexprc.el Sat Feb 24 16:42:28 2018 +0900 1.2 +++ b/yatexprc.el Sat Feb 24 16:44:25 2018 +0900 1.3 @@ -445,12 +445,12 @@ 1.4 (list 1.5 "pdfcrop --clip %b.pdf tmp.pdf" 1.6 (if (YaTeX-executable-find "convert") 1.7 - "convert -density %d tmp.pdf %b.%f" 1.8 + "convert -alpha off -density %d tmp.pdf %b.%f" 1.9 ;; If we use sips, specify jpeg as format 1.10 "sips -s format jpeg -s dpiWidth %d -s dpiHeight %d %b.pdf --out %b.jpg") 1.11 "rm -f tmp.pdf")) 1.12 ((YaTeX-executable-find "convert") 1.13 - (list "convert -trim -density %d %b.pdf %b.%f")) 1.14 + (list "convert -trim -alpha off -density %d %b.pdf %b.%f")) 1.15 ) 1.16 "*Pipe line of command as a list to create image file from PDF. 1.17 See also doc-string of YaTeX-typeset-dvi2image-chain.") 1.18 @@ -461,6 +461,10 @@ 1.19 (list 1.20 (format "%s -E -o %%b.eps %%b.dvi" YaTeX-cmd-dvips) 1.21 "convert -alpha off -density %d %b.eps %b.%f")) 1.22 + ((YaTeX-executable-find YaTeX-dvipdf-command) 1.23 + (list 1.24 + (format "%s %%b.dvi" YaTeX-dvipdf-command) 1.25 + "convert -trim -alpha off -density %d %b.pdf %b.%f")) 1.26 ((and (equal YaTeX-use-image-preview "png") 1.27 (YaTeX-executable-find "dvipng")) 1.28 (list "dvipng %b.dvi")))