I am using AUCTeX on Emacs. When invoking preview.el with e.g. C-c C-p C-p I obtain previews of external figures (figure environment with .ps files), but not of TikZ pictures.
Is it possible to obtain previews of figures drawn with TikZ?
I am using AUCTeX on Emacs. When invoking preview.el with e.g. C-c C-p C-p I obtain previews of external figures (figure environment with .ps files), but not of TikZ pictures.
Is it possible to obtain previews of figures drawn with TikZ?
With
(eval-after-load "preview"
'(add-to-list 'preview-default-preamble "\\PreviewEnvironment{tikzpicture}" t)
)
in your .emacs file, you can include the tikzpicture environments in the preview building process.
preview-default-preamble is successfully changed? Load a TeX file and do C-h v preview-default-preamble. It should give you something like preview-default-preamble is a variable defined in preview.el. Its value is ("\\RequirePackage[" ("," . preview-default-option-list) "]{preview}[2004/11/05]" "\\PreviewEnvironment{tikzpicture}")
– sebschub
May 07 '13 at 12:54