2

By preview-latex on can render latex formulae inside a tex buffer. The package px package renders latex formular inside an arbitrary buffer (see https://emacs.stackexchange.com/a/219/).

A similar question: How to render latex expressions (not necessarily formulae) inside buffer? For example to render something like \textbf{some text...}.

5
  • Turn on tex macros. Commented Jul 20, 2015 at 22:30
  • @Dan How to turn tex macro? I tried (add-hook 'LaTeX-mode-hook 'turn-on-tex-macros) with no effect. Commented Jul 21, 2015 at 5:22
  • Am away from my computer for a few days so can't check myself, but look in the auctex manual. Commented Jul 21, 2015 at 10:54
  • 1
    @Dan Thanks. I found it! Putting (require 'tex-fold) (add-hook 'LaTeX-mode-hook 'TeX-fold-mode) in .emacs then M-x TeX-fold-buffer can do what I was looking for. (Note the command is M-x TeX-fold-buffer not M-x tex-fold-buffer). Commented Jul 22, 2015 at 9:14
  • Great! Go ahead and post that as the answer. Commented Jul 22, 2015 at 10:27

1 Answer 1

1

Putting

(require 'tex-fold) (add-hook 'LaTeX-mode-hook 'TeX-fold-mode) 

in .emacs then M-x TeX-fold-buffer (or the shortcut C-c C-o C-b) can do what I was looking for.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.