# latex,emacs学习记录1

https://www.zhihu.com/question/19954023

TeXLive + Emacs + AUCTex + SumatraPDF。

1.下载macTex

emacs:  http://emacsformacosx.com/

2.下aucTex

3.

Go to the Auctex directory, configure with the command:

./configure --with-emacs=/Applications/Emacs.app/Contents/MacOS/Emacs --with-lispdir=/Applications/Emacs.app/Contents/Resources/site-lisp --with-texmf-dir=/usr/local/texlive/texmf-local


Execute:

make; sudo make install


to install the elisp files inside the Emacs.app, the info files to /usr/local/share/info, etc.

Edit your ~/.emacs file to load Auctex/preview-latex, and point Emacs to your Latex executables:

(setenv "PATH" (concat "/usr/texbin:/usr/local/bin:" (getenv "PATH")))
(setq exec-path (append '("/usr/texbin" "/usr/local/bin") exec-path))


People sometimes suggest that Sumatra should be available for some other operating system: Linux, Mac, Android etc.

This won't happen.

The first reason is that current developers don't know how to write software for those other platforms.

Second reason is that it would mean writing the whole program from scratch for a new platform.

Sumatra is tightly integrated with and optimized for Windows. Making a version for another operating system is not a matter of making a few changes here and there but writing all the UI code from scratch i.e. redoing years of development that went into Sumatra.

SumatraPDF is an open-source project so anyone is free to take our source code and use as much of it as they want to create equivalent for some other operating system, but we're unlikely to do it ourselves.

http://www.360doc.com/content/13/0117/11/2886802_260681908.shtml    emacs -nw 1hello.c 可以在终端打开emacs. open -a preview 2hello.pdf  可以用preview 打开pdf