In this article I will show how to set up the XEmacs (which is my preferred editor in such things like editing..) with the AucTeX and RefTeX mode. These packages are very helpful if you want to edit LaTeX documents.
AucTeX is an auxiliary package to provide easy to use commands for editing the LaTeX documents. The RefTeX package can be seen as an additional mode to AucTeX which extends it to easy navigation and referencing tools. It provides an overview over the created sections and subsections and manages the references in figures, (external) bibliography files and anything else. Multiple documents in a LaTeX project are supported.
To use the packages (modes) you have to install the auctex package with your preferred system package manager (synaptic, aptitude, yast, apt-get, etc.). The RefTex mode is already a build-in mode in your XEmacs (try
in the XEmacs window).To load the modes every time you open an LaTeX document in your XEmacs editor, you have to add the following lines to your XEmacs configuration file in .xemacs/custom.el:
;enable AUCTEX mode (require 'tex-site) ;added by myself (setq Tex-auto-save t) (setq Tex-parse-self t) ;concerning insertion and references (autoload 'reftex-mode "reftex" "RefTeX Minor Mode" t) (autoload 'turn-on-reftex "reftex" "RefTeX Minor Mode" nil) (autoload 'reftex-citation "reftex-cite" "Make citation" nil) (autoload 'reftex-index-phrase-mode "reftex-index" "Phrase mode" t) (add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode (add-hook 'latex-mode-hook 'turn-on-reftex) ; with Emacs latex mode ;;; end for reftex ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (autoload 'turn-on-bib-cite "bib-cite") (add-hook 'LaTeX-mode-hook 'turn-on-bib-cite) ;;; end for bib-cite;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (add-hook 'LaTeX-mode-hook 'turn-on-auto-fill)
If the file does not exist, create them by hand.
I have uploaded two reference cards to use the XEmacs in general and the AucTeX and RefTex modes while editing the LaTeX documents. See below.
file | file size | comments |
---|---|---|
A2pdf.sh | 545 B | none |
A2ps.sh | 445 B | none |
XEmacs_quickref.pdf | 80 KB | featured by this article |
auctex-ref.pdf | 96.25 KB | featured by this article |
createIEEEPDF.sh | 622 B | none |
createWinVid.sh | 800 B | none |
ctags.zip | 241 B | none |
vpnclient-linux-2.6.19+-rev1.diff | 3.54 KB | none |