Function: preview-dvipng-command

preview-dvipng-command is a byte-compiled function defined in preview.el.

Signature

(preview-dvipng-command &optional CMD)

Documentation

Return a shell command for running dvipng.

CMD can be used to override the command line which is used as a basis.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/preview.el
(defun preview-dvipng-command (&optional cmd)
  "Return a shell command for running dvipng.
CMD can be used to override the command line which is used as a basis."
  (let* ((res (/ (* (car preview-resolution)
                    (preview-hook-enquiry preview-scale))
                 (preview-get-magnification)))
         (resolution  (format " -D%d " res))
         (colors (preview-dvipng-color-string preview-colors res)))
    (with-current-buffer TeX-command-buffer
      (concat (TeX-command-expand
               (or cmd "dvipng -picky -noghostscript %d -o %m/prev%%03d.png"))
              " " colors resolution))))