Skip to content

Prelude LaTeX

Overview

This module provides a comprehensive LaTeX editing setup powered by AUCTeX, the premier TeX/LaTeX editing package for Emacs.

Packages

Configuration

Prelude sets the following AUCTeX defaults:

  • Auto-save and auto-parse of TeX files are enabled
  • PDF mode is the default output format
  • Multi-file support: TeX-master is set to nil, so AUCTeX will ask for the master file
  • Auto-fill mode is enabled for line wrapping
  • Abbrev mode is enabled for common LaTeX abbreviations
  • Smartparens is enabled for delimiter matching

macOS

On macOS, Prelude configures the open command as the default viewer for DVI, PDF, and HTML output.

Fast Math Entry

Prelude supports two methods for fast math symbol entry, controlled by the prelude-latex-fast-math-entry variable:

  • LaTeX-math-mode (default) - AUCTeX's built-in math mode, activated with ` as a prefix key
  • cdlatex - CDLaTeX mode for even faster input
  • nil - disable fast math entry

To switch to CDLaTeX, add to your personal config:

(setq prelude-latex-fast-math-entry 'cdlatex)