Variable: preview-image-creators

preview-image-creators is a customizable variable defined in preview.el.

Value

((dvi*
  (open preview-gs-open preview-dvi*-process-setup)
  (place preview-gs-place)
  (close preview-dvi*-close))
 (png
  (open preview-gs-open)
  (place preview-gs-place)
  (close preview-gs-close))
 (jpeg
  (open preview-gs-open)
  (place preview-gs-place)
  (close preview-gs-close))
 (pnm
  (open preview-gs-open)
  (place preview-gs-place)
  (close preview-gs-close))
 (tiff
  (open preview-gs-open)
  (place preview-gs-place)
  (close preview-gs-close)))

Documentation

Define functions for generating images.

These functions get called in the process of generating inline images of the specified type. The open function is called at the start of a rendering pass, the place function for placing every image, the close function at the end of the pass. Look at the documentation of the various functions used here for the default settings, and at the function preview-call-hook through which those are called. Additional argument lists specified in here are passed to the functions before any additional arguments given to preview-call-hook.

Not all of these image types may be supported by your copy of Ghostscript, or by your copy of Emacs.

This variable was added, or its default value changed, in auctex version 14.2.0.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/preview.el
(defcustom preview-image-creators
  '((dvi*
     (open preview-gs-open preview-dvi*-process-setup)
     (place preview-gs-place)
     (close preview-dvi*-close))
    (png (open preview-gs-open)
         (place preview-gs-place)
         (close preview-gs-close))
    (jpeg (open preview-gs-open)
          (place preview-gs-place)
          (close preview-gs-close))
    (pnm (open preview-gs-open)
         (place preview-gs-place)
         (close preview-gs-close))
    (tiff (open preview-gs-open)
          (place preview-gs-place)
          (close preview-gs-close)))
  "Define functions for generating images.
These functions get called in the process of generating inline
images of the specified type.  The open function is called
at the start of a rendering pass, the place function for
placing every image, the close function at the end of
the pass.  Look at the documentation of the various
functions used here for the default settings, and at
the function `preview-call-hook' through which those are
called.  Additional argument lists specified in here
are passed to the functions before any additional
arguments given to `preview-call-hook'.

Not all of these image types may be supported by your copy
of Ghostscript, or by your copy of Emacs."
  :group 'preview-gs
  :type '(alist :key-type (symbol :tag "Preview's image type")
                :value-type
                (alist :tag "Handler" :key-type (symbol :tag "Operation:")
                       :value-type (list :tag "Handler"
                                         (function :tag "Handler function")
                                         (repeat :tag "Additional \
function args" :inline t sexp))
                       :options (open place close)))
  :package-version '(auctex . "14.2.0"))