annotate lisp/auctex/README @ 161:28f395d8dc7a r20-3b7

Import from CVS: tag r20-3b7
author cvs
date Mon, 13 Aug 2007 09:42:26 +0200
parents 4103f0995bd7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
1 Introduction to AUC TeX
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
2 ***********************
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
3
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
4 This section of the AUC TeX manual gives a brief overview of what AUC
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
5 TeX is, and the section is also available as a `README' file. It is
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
6 *not* an attempt to document AUC TeX. Real documentation for AUC TeX
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
7 is available in the rest of the manual, which you can find in the `doc'
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
8 directory.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
9
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
10 Read the `INSTALLATION' file for information about how to install
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
11 AUC TeX. It is identical to the Installation chapter in the AUC TeX
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
12 manual.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
13
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
14 If you are upgrading from the previous version of AUC TeX, the
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
15 latest changes can be found in the `CHANGES' file. If you are
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
16 upgrading from an older version, read the History chapter in the AUC
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
17 TeX manual.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
18
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
19 AUC TeX is a comprehensive customizable integrated environment for
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
20 writing input files for LaTeX using GNU Emacs.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
21
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
22 AUC TeX lets you run TeX/LaTeX and other LaTeX-related tools, such
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
23 as a output filters or post processor from inside Emacs. Especially
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
24 `running LaTeX' is interesting, as AUC TeX lets you browse through the
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
25 errors TeX reported, while it moves the cursor directly to the reported
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
26 error, and displays some documentation for that particular error. This
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
27 will even work when the document is spread over several files.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
28
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
29 AUC TeX automatically indents your `LaTeX-source', not only as you
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
30 write it -- you can also let it indent and format an entire document.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
31 It has a special outline feature, which can greatly help you `getting an
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
32 overview' of a document.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
33
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
34 Apart from these special features, AUC TeX provides an large range of
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
35 handy Emacs macros, which in several different ways can help you write
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
36 your LaTeX documents fast and painless.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
37
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
38 All features of AUC TeX are documented using the GNU Emacs online
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
39 documentation system. That is, documentation for any command is just a
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
40 key click away!
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
41
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
42 AUC TeX is written entirely in Emacs-Lisp, and hence you can easily
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
43 add new features for your own needs. It was not made as part of any
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
44 particular employment or project (apart from the AUC TeX project
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
45 itself). AUC TeX is distributed under the `GNU Emacs General Public
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
46 License' and may therefore almost freely be copied and redistributed.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
47
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
48 The next sections are a short introduction to some `actual' features.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
49 For further information, refer to the build-in online documentation of
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
50 AUC TeX.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
51
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
52 Indentation and formatting
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
53 ==========================
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
54
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
55 AUC TeX may automatically indent your document as you write it. By
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
56 pressing lfd instead of ret at the end of a line, the current line is
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
57 indented by two spaces according to the current environment level, and
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
58 the cursor is moved down one line. By pressing tab, the current line
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
59 is indented, and the cursor stays where it is. The well-known Emacs
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
60 feature `format-paragraph' (`M-q') is reimplemented especially for AUC
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
61 TeX to follow the indentation. A special command `LaTeX-fill-buffer'
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
62 lets you indent an entire document like the well-known C utility indent
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
63 (this time, only according to the LaTeX structure :-).
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
64
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
65 Completion
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
66 ==========
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
67
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
68 By studying your `\documentstyle' command (in the top of your
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
69 document), and consulting a precompiled list of (La)TeX symbols from a
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
70 large number of TeX and LaTeX files, AUC TeX is aware of the LaTeX
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
71 commands you should able to use in this particular document. This
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
72 `knowledge' of AUC TeX is used for two purposes.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
73
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
74 1. To make you able to `complete' partly written LaTeX commands. You
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
75 may e.g. write `\renew' and press `M-tab' (`TeX-complete-symbol'),
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
76 and then AUC TeX will complete the word `\renewcommand' for you.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
77 In case of ambiguity it will display a list of possible
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
78 completions.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
79
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
80 2. To aid you inserting environments, that is \begin - \end pairs.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
81 This is done by pressing C-c C-e (LaTeX-environment), and you will
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
82 be prompted for which `environment' to insert.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
83
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
84 Editing your document
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
85 =====================
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
86
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
87 A number of more or less intelligent keyboard macros have been
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
88 defined to aid you editing your document. The most important are
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
89 listed here below.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
90
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
91 `LaTeX-environment'
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
92 (`C-c C-e') Insert a `\begin{}' -- `\end{}' pair as described
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
93 above.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
94
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
95 `LaTeX-section'
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
96 (`C-c C-s') Insert one of `\chapter', `\section', etc.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
97
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
98 `TeX-font'
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
99 (`C-c C-f C-r', `C-c C-f C-i', `C-c C-f C-b') Insert one of
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
100 `{\textrm }'), `{\textit \/}' `{\textbf }' etc.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
101
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
102 A number of additional functions are available. But it would be far
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
103 too much to write about here. Refer to the rest of the AUC TeX
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
104 documentation for further information.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
105
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
106 Running LaTeX
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
107 =============
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
108
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
109 When invoking on of the commands `TeX-command-master' (`C-c C-c') or
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
110 `TeX-command-region' (`C-c C-r') LaTeX is run on either the entire
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
111 current document or a given region of it. The Emacs view is split in
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
112 two, and the output of TeX is printed in the second half of the screen,
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
113 as you may simultaneously continue editing your document. In case TeX
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
114 found any errors when processing your input you can call the function
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
115 `TeX-next-error' (`C-c `') which will move the cursor to the first
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
116 given error, and display a short explanatory text along with the
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
117 message TeX gave. This procedure may be repeated until all errors have
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
118 been displayed. By pressing `C-c C-w' (`TeX-toggle-debug-boxes') you
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
119 can toggle whether the browser also should notify over-full/under-full
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
120 boxes or not.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
121
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
122 Once you've successfully formatted your document, you may preview or
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
123 print it by invoking `TeX-command-master' again.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
124
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
125 Outlines
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
126 ========
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
127
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
128 Along with AUC TeX comes support for outline mode for Emacs, which
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
129 lets you browse the sectioning structure of your document, while you
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
130 will still be able to use the full power of the rest of the AUC TeX
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
131 functionality.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
132
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
133 Availability
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
134 ============
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
135
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
136 The most recent version is always available by ftp at
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
137
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
138 `ftp://ftp.iesd.auc.dk/pub/emacs-lisp/auctex.tar.gz'
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
139
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
140 In case you don't have access anonymous ftp, you can get it by email
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
141 requests to `<ftpmail@decwrl.dec.com>'.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
142
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
143 WWW users may want to check out the AUC TeX page at
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
144
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
145 `http://www.iesd.auc.dk/~amanda/auctex/'
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
146
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
147 Contacts
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
148 ========
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
149
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
150 There has been established a mailing list for help, bug reports,
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
151 feature requests and general discussion about AUC TeX. You're very
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
152 welcome to join. Traffic average at an article by day, but they come
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
153 in bursts. If you are only interested in information on updates, you
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
154 could refer to the newsgroups `comp.text.tex' and `gnu.emacs.sources'.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
155
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
156 If you want to contact the AUC TeX mailing list, send mail to
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
157 `<auc-tex-request@iesd.auc.dk>' in order to join. Articles should be
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
158 send to `<auc-tex@iesd.auc.dk>'.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
159
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
160 To contact the current maintainers of auc-TeX directly, email
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
161 `<auc-tex_mgr@iesd.auc.dk>'.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
162
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
163 AUC TeX development
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
164 c/o Kresten Krab Thorup
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
165
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
166 Mathematics and Computer Science
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
167 University of Aalborg
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
168 DK 9000 Aalborg
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
169 Denmark
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
170