Skip to content

preview-latex when not using LaTeX

B.6.1 Does preview-latex work with PDFLaTeX?

Yes, as long as you use AUCTeX’s own PDFLaTeX mode and have not messed with ‘TeX-command-list’.

B.6.2 Does preview-latex work with ‘elatex’?

No problem here. If you configure your AUCTeX to use ‘elatex’, or simply have ‘latex’ point to ‘elatex’, this will work fine. Modern TeX distributions use eTeX for LaTeX, anyway.

B.6.3 Does preview-latex work with ConTeXt?

In short, no. The ‘preview’ package is LaTeX-dependent. Adding support for other formats requires volunteers.

B.6.4 Does preview-latex work with plain TeX?

Again, no. Restructuring the ‘preview’ package for ‘plain’ operation would be required. Volunteers welcome.

In some cases you might get around by making a wrapper pseudo-Master file looking like the following:

latex
\documentclass{article}
\usepackage{plain}
\begin{document}
\begin{plain}
\input myplainfile
\end{plain}
\end{document}