comparison yatexprc.el @ 513:ebed0ead1eab dev

Add a command line using convert to pdf2png setting.
author HIROSE Yuuji <yuuji@gentei.org>
date Thu, 04 Jan 2018 23:52:31 +0900
parents 551fcb1d22a0
children 8e0822416fc6
comparison
equal deleted inserted replaced
512:46f02e576ee1 513:ebed0ead1eab
446 "pdfcrop --clip %b.pdf tmp.pdf" 446 "pdfcrop --clip %b.pdf tmp.pdf"
447 (if (YaTeX-executable-find "convert") 447 (if (YaTeX-executable-find "convert")
448 "convert -density %d tmp.pdf %b.%f" 448 "convert -density %d tmp.pdf %b.%f"
449 ;; If we use sips, specify jpeg as format 449 ;; If we use sips, specify jpeg as format
450 "sips -s format jpeg -s dpiWidth %d -s dpiHeight %d %b.pdf --out %b.jpg") 450 "sips -s format jpeg -s dpiWidth %d -s dpiHeight %d %b.pdf --out %b.jpg")
451 "rm -f tmp.pdf"))) 451 "rm -f tmp.pdf"))
452 ((YaTeX-executable-find "convert")
453 (list "convert -trim -density %d %b.pdf %b.%f"))
454 )
452 "*Pipe line of command as a list to create image file from PDF. 455 "*Pipe line of command as a list to create image file from PDF.
453 See also doc-string of YaTeX-typeset-dvi2image-chain.") 456 See also doc-string of YaTeX-typeset-dvi2image-chain.")
454 457
455 (defvar YaTeX-typeset-dvi2image-chain 458 (defvar YaTeX-typeset-dvi2image-chain
456 (cond 459 (cond

yatex.org