auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] how to use the git repository to obtain the latest aucTeX?


From: Tassilo Horn
Subject: Re: [AUCTeX] how to use the git repository to obtain the latest aucTeX?
Date: Fri, 30 Aug 2013 10:30:10 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

TeXnicien de Surface <address@hidden> writes:

> I'd like to know (one of) the best way(s) to grab aucTeX on the git
> repository and install it somewhere on my machine.

Clone the git repository:

  $ cd ~/code # Whatever directory you wand
  $ git clone git://git.savannah.gnu.org/auctex.git

Now you have the directory ~/code/auctex/ that includes the auctex
source code.  Now build auctex:

  $ cd ~/code/auctex
  $ ./configure
  $ make

Now you have two choices: (1) install it system-wide using "sudo make
install", or (2) run it straight from the cloned directory.  In the
latter case, you might want to generate an info index using:

  $ cd ~/code/auctex/docs
  $ for x in *.info; do install-info --dir-file=dir $x;done

Now you have to configure emacs by putting this into your ~/.emacs:

--8<---------------cut here---------------start------------->8---
;; The next 4 lines only if you run auctex from the cloned
;; directory, i.e., you didn't "make install"
(setq TeX-data-directory "~/code/auctex/")
(add-to-list 'load-path "~/code/auctex/")
(add-to-list 'load-path "~/code/auctex/preview/")
(add-to-list 'Info-directory-list "~/code/auctex/doc")

(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)

;; Make AUCTeX aware of style files and multi-file documents
(setq TeX-parse-self t)
(setq TeX-auto-save t)
--8<---------------cut here---------------end--------------->8---

Now you are done.  From time to time, you might want to update the clone
using:

  $ cd ~/code/auctex
  $ git pull
  $ make

If you used option (1) above, remember to do a "make install"
afterwards, too.

Bye,
Tassilo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]