最終更新日: 2017-05-13 土 23:06
ホーム | 文書トップ | 目次

AUCTeX インストール (過去の情報)

Table of Contents

公式ページ

ダウンロード

  • 上記から入手。(2011.07.30時点の最新は auctex-11.86.zip)

NTEmacs でのインストール

Emacs

MinGW

make & make install

  • msysのシェル(例 C:\usr\MinGW\msys\1.0\msys.bat) を実行する。
  • C:\usr\emacs にNTEmacsをインストールしていて、C:\usr\w32tex にW32TeXをインストールしている場合、下記のコマンドを実行する
$ ./configure --prefix=/c/usr/emacs --infodir=/c/usr/emacs/info --with-texmf-dir=/c/usr/w32tex/share/texmf
$ make
$ make install
  • configureの実行例
$ ./configure --prefix=/c/usr/emacs --infodir=/c/usr/emacs/info --with-texmf-dir=/c/usr/w32tex/share/texmf
checking for make... make
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /bin/install -c
checking for date in ChangeLog... 2010-02-21
checking for release in ChangeLog... 11.86
checking for emacs... /c/usr/emacs/bin/emacs
checking if /c/usr/emacs/bin/emacs is XEmacs... no
checking for Emacs prefix... "c:/usr/emacs"
checking if Emacs is recent enough... yes
checking for MULE support... yes
checking if build directory is valid... yes
checking where lisp files go... c:/usr/emacs/site-lisp
checking what file to use for auctex startup... c:/usr/emacs/site-lisp/auctex.el

checking where the package lisp files go... c:/usr/emacs/site-lisp/auctex
checking where the data files go... c:/usr/emacs/site-lisp/auctex
checking where the info files go... /c/usr/emacs/info
checking where automatically generated global style hooks go... ${localstatedir}/auctex
checking for tex... /c/usr/w32tex/bin/tex
checking for pdftex... /c/usr/w32tex/bin/pdftex
checking for dvips... /c/usr/w32tex/bin/dvips
checking for perl... /c/usr/Perl/bin//perl
checking for makeinfo... /bin/makeinfo
checking for texi2html... :
checking for texi2dvi... /bin/texi2dvi
checking for texi2pdf... /bin/texi2pdf
checking for install-info... /bin/install-info
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tex-site.el.out
config.status: creating doc/Makefile
config.status: creating auctex.el
=== configuring in preview (/c/home/wurly/source/auctex-11.86/preview)
configure: running /bin/sh ./configure --disable-option-checking '--prefix=/c/usr/emacs'  '--infodir=/c/usr/emacs/info' '--with-texmf-dir=/c/usr/w32tex/share/texmf' --cache-file=/dev/null --srcdir=.
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /bin/install -c
checking for /c/usr/emacs/bin/emacs... /c/usr/emacs/bin/emacs
checking if /c/usr/emacs/bin/emacs is XEmacs... no
checking for Emacs prefix... "c:/usr/emacs"
checking if Emacs is recent enough... yes
checking if build directory is valid... yes
checking where lisp files go... c:/usr/emacs/site-lisp
checking what file to use for preview startup... c:/usr/emacs/site-lisp/preview-latex.el
checking where the package lisp files go... c:/usr/emacs/site-lisp/auctex
checking where the data files go... c:/usr/emacs/site-lisp/auctex
checking for the location of AUCTeX's tex-site.el... ..
checking for gs... no
checking for GSWIN32C.EXE... no
checking for latex... /c/usr/w32tex/bin/latex
checking for pdflatex... /c/usr/w32tex/bin/pdflatex
checking for tex... /c/usr/w32tex/bin/tex
Preview will be placed in /c/usr/w32tex/share/texmf/tex/latex/preview
Preview docs will be placed in /c/usr/w32tex/share/texmf/doc/latex/styles
checking for texhash... /c/usr/w32tex/bin/texhash
checking for initexmf... /c/usr/w32tex/bin/texhash
checking for glaring installation conflicts... probably none
configure: creating ./config.status
config.status: creating Makefile
config.status: creating auto.el
config.status: creating latex/Makefile

Congratulations!  Configuration of preview is complete.


Congratulations!  Configuration of AUCTeX is complete.

Type "make" at the prompt to build.

.emacsの設定

AUCTeX 11.86 の場合

(require 'tex-site)
(require 'tex)

(setq TeX-default-mode 'japanese-Latex-mode)
(setq japanese-LaTeX-default-style "jsarticle")
(setq japanese-LaTeX-command-default "pLaTeX")
(setq kinsoku-limit 10)
(setq LaTeX-indent-level 4)
(setq LaTeX-item-indent 2)
(add-to-list 'TeX-view-program-list
             '("DVIviewer" "dvipdfmx.exe %o && \"C:/Program Files/Adobe/Acrobat 7.0/Reader/AcroRd32.exe\" %s.pdf"))
(setq TeX-view-program-selection '((output-dvi "DVIviewer")))

auctex 11.85 の場合

(require 'tex-site)
(require 'tex)

(setq TeX-default-mode 'japanese-Latex-mode)
(setq japanese-LaTeX-default-style "jsarticle")
(setq japanese-LaTeX-command-default "pLaTeX")
(setq kinsoku-limit 10)
(setq LaTeX-indent-level 4)
(setq LaTeX-item-indent 2)
(add-to-list 'TeX-output-view-style
             '("^dvi$" "." "dvipdfmx.exe %dS %d && \"C:/Program Files/Adobe/Reader 9.0/Reader/AcroRd32.exe\" %s.pdf" ))
ホーム | 文書トップ | 目次
Created by Emacs 27.1 (Org mode 9.3)