Posts mit dem Label emacs werden angezeigt. Alle Posts anzeigen
Posts mit dem Label emacs 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 show latex index (reftex)

View index of latex document in emacs

1) Make sure reftex is properly installed


2) Add this section to your .emacs file

(require 'reftex)
(setq reftex-plug-into-AUCTeX t)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex) 
(add-hook 'latex-mode-hook 'turn-on-reftex


2) Compile latex document


3) Showing the index in a new window


Ctrl-c =

Example:

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:


Sonntag, 28. Juli 2013

Hi

Hi,

I am a graduate student in the field of theoretical chemistry and with this blog I mostly just want to remember all the hacks I did for Gnuplot, Latex and all the other scripting languages I use.

Additionally I probably will put up a few setup files for gnuplot, latex, vmd, emacs and so on.

So if you are interested in that keep on looking =)

Best,

Koni