Original address http://zhw618.blogchina.com/3828692.html
Keywords: Emacs auctex
1. Download and install GNU Emacs
Is downloaded from the http://nqmacs.sf.net/This Place, 2005-06-26cvs .file name is emacs-22.0.50.1-20050626-w32.zip. Decompress to a directory, my is E:/Program/Emacs.
Double-click addpm.exe under/bindirectory. The installation is successful. the Start menu contains the GNU Emacs menu and the HKEY_LOCAL_MACHINE/software/GNU/Emacs key value in the registry. it should be noted that for windows. location of the Emacs configuration file. generally in the C:/root directory. if the system has the home environment variable, it is usually in the C:/document and setting/user name/directory... also, create a home path under the primary key Emacs in the registry. write the directory. so your. emacs can be placed in the specified path.
2. Install ctex
I installed the full version. CTeX-2.4.5-5-full this. Full version, save the time to really this little that. Did not choose winedt, use Emacs to replace it. Installed in D:/ctex.
3. Install auctex
The http://www.gnu.org/software/auctex/ is downloaded from this. It is currently 11.81 and has included preview-latex .. Next we will talk about installing auctex.
(1) download and install mingw + msys
Download msys and mingw from http://www.mingw.org. install mingw in C:/mingw, install msys, and specify the mingw path C:/mingw ). in this way, the installation is complete. next compilation and installation.
(2) Compile and install auctex
After several times, the preview-latex is not configured with configure, and an error occurs. Finally, the configuration passes through this writing.
./Configure -- prefix =/e/Program/Emacs
-- With-Emacs =/e/Program/Emacs/bin/emacs.exe
-- With-texmf-Dir =/D/ctex/texmf/tex/;/D/ctex/texmf///;/D/ctex/localtex
MF/tex/
Tell it the installation path, the path of Emacs, and some ctex paths respectively.
Then make and make install.
No. It's actually simple, right?
(3) Add the configuration file. emacs
Refer to this URL, write the following in the http://www.emacs.cn/Tex/AucTex configuration file and save it.
(Load "auctex. El" Nil T)
(Load "preview-latex.el" Nil T)
(Setq Tex-auto-save T)
(Setq Tex-Parse-self T)
(Setq-default Tex-master nil)
(Add-hook 'latex-mode-hook # 'latex-install-toolbar)
(Add-hook 'latex-mode-hook' turn-on-auto-fill)
(Add-hook 'latex-mode-call' turn-on-reftex)