Le 30/08/2013 10:30, Tassilo Horn a écrit :
> TeXnicien de Surface <[email protected]> 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.
Thank you for the answer.
I add some steps which were necessary with the git source I obtained
> 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
$ ./autogen.sh
more about the previous line in README.GIT
> $ ./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")
beware of the last line above if no Info-directory-list is defined for
your emacs (as is the case for me). By the way $INFOPATH seems not to be
recognized.
>
> (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
>
Once again, many thanks
--
Le TeXnicien de Surface
_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex