Function: preview-dvisvgm-command

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

Signature

(preview-dvisvgm-command &optional CMD)

Documentation

Return a shell command for running dvisvgm.

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

You may set the variable preview-dvi*-command to preview-dvisvgm-command and set preview-dvi*-image-type to svg to produce svg images instead of png ones.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/preview.el
(defun preview-dvisvgm-command (&optional cmd)
  "Return a shell command for running dvisvgm.
CMD can be used to override the command line which is used as a basis.

You may set the variable `preview-dvi*-command' to
`preview-dvisvgm-command' and set `preview-dvi*-image-type' to
`svg' to produce svg images instead of png ones."
  (let* ((scale (* (/ (preview-hook-enquiry preview-scale)
                      (preview-get-magnification))
                   (with-current-buffer TeX-command-buffer
                     (if (bound-and-true-p text-scale-mode)
                         (expt text-scale-mode-step text-scale-mode-amount)
                       1.0)))))
    (with-current-buffer TeX-command-buffer
      (concat
       (TeX-command-expand
        (or cmd
            "dvisvgm --no-fonts %d --page=- --output=\"%m/prev%%3p.svg\""))
       (format " --scale=%g " scale)))))