# HG changeset patch # User HIROSE Yuuji # Date 1515077551 -32400 # Node ID ebed0ead1eab2e61bfda206777cc1303f0a2558b # Parent 46f02e576ee1f6fed8068d61439fca3b73329702 Add a command line using convert to pdf2png setting. diff -r 46f02e576ee1 -r ebed0ead1eab yatexprc.el --- a/yatexprc.el Thu Jan 04 22:47:54 2018 +0900 +++ b/yatexprc.el Thu Jan 04 23:52:31 2018 +0900 @@ -448,7 +448,10 @@ "convert -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"))) + "rm -f tmp.pdf")) + ((YaTeX-executable-find "convert") + (list "convert -trim -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.")