Posts mit dem Label auctex werden angezeigt. Alle Posts anzeigen
Posts mit dem Label auctex werden angezeigt. Alle Posts anzeigen

Sonntag, 1. Juni 2014

Change latex command when compiling inside emacs

Emacs adds the following comment commands into a multiple latex file to know which commands to use and to define the master file:
%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End:

In order to define the latex command e.g. include -shell-escape you have to add the following line before the End: command into the latex file:
%%% LaTeX-command: "latex -shell-escape" 

Freitag, 22. November 2013

emacs preview of texdocument pdflatex (auctex)

Show preview of latex formulas in emacs

1) install auctex with preview

2) add following to your .emacs file


(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)
(setq preview-gs-options '("-q" "-dNOSAFER" "-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted" "-dTextAlphaBits=4" "-dGraphicsAlphaBits=4"))

3) Compile the preview via:

Ctrl-c p-d

Example: