annotate man/auctex/intro.texi @ 131:869e1851236b xemacs-20-1p4

Import from CVS: tag xemacs-20-1p4
author cvs
date Mon, 13 Aug 2007 09:29:07 +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 @chapter 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 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
4 @TeX{} is, and the section is also available as a @file{README} file.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
5 It is @strong{not} an attempt to document AUC @TeX{}. Real
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
6 documentation for AUC @TeX{} is available in the rest of the manual,
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
7 which you can find in the @file{doc} directory.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
8
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
9 Read the @file{INSTALLATION} file for information about how to install
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
10 AUC @TeX{}. It is identical to the Installation chapter in the AUC
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
11 @TeX{} manual.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
12
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
13 If you are upgrading from the previous version of AUC @TeX{}, the
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
14 latest changes can be found in the @file{CHANGES} file. If you are
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
15 upgrading from an older version, read the History chapter in the AUC
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
16 @TeX{} manual.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
17
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
18 AUC @TeX{} is a comprehensive customizable integrated environment for
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
19 writing input files for La@TeX{} using GNU Emacs.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
20
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
21 AUC @TeX{} lets you run @TeX{}/La@TeX{} and other La@TeX{}-related
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
22 tools, such as a output filters or post processor from inside Emacs.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
23 Especially `running La@TeX{}' is interesting, as AUC @TeX{} lets you
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
24 browse through the errors @TeX{} reported, while it moves the cursor
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
25 directly to the reported error, and displays some documentation for that
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
26 particular error. This will even work when the document is spread over
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
27 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 `La@TeX{}-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 La@TeX{} 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
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
40 a 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 @section 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 AUC @TeX{} may automatically indent your document as you write it. By
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
55 pressing @key{lfd} instead of @key{ret} at the end of a line, the
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
56 current line is indented by two spaces according to the current
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
57 environment level, and the cursor is moved down one line. By pressing
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
58 @key{tab}, the current line is indented, and the cursor stays where it
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
59 is. The well-known Emacs feature @code{format-paragraph} (@kbd{M-q}) is
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
60 reimplemented especially for AUC @TeX{} to follow the indentation. A
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
61 special command @code{LaTeX-fill-buffer} lets you indent an entire
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
62 document like the well-known C utility indent (this time, only according
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
63 to the La@TeX{} structure @t{:-)}.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
64
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
65 @section 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 By studying your @samp{\documentstyle} command (in the top of your
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
68 document), and consulting a precompiled list of (La)@TeX{} symbols from
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
69 a large number of @TeX{} and La@TeX{} files, AUC @TeX{} is aware of the
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
70 La@TeX{} commands you should able to use in this particular document.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
71 This `knowledge' of AUC @TeX{} is used for two purposes.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
72
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
73 @enumerate
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
74 @item
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
75 To make you able to `complete' partly written La@TeX{} commands. You may
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
76 e.g. write @kbd{\renew} and press @kbd{M-@key{tab}}
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
77 (@code{TeX-complete-symbol}), and then AUC @TeX{} will complete the word
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
78 @samp{\renewcommand} for you. In case of ambiguity it will display a
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
79 list of possible completions.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
80 @item
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
81 To aid you inserting environments, that is \begin - \end pairs. This is
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
82 done by pressing C-c C-e (La@TeX{}-environment), and you will be
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
83 prompted for which `environment' to insert.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
84 @end enumerate
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
85
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
86 @section Editing your document
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
87
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
88 A number of more or less intelligent keyboard macros have been defined
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
89 to aid you editing your document. The most important are listed here
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
90 below.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
91
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
92 @table @code
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
93 @item LaTeX-environment
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
94 (@kbd{C-c C-e}) Insert a @samp{\begin@{@}} --- @samp{\end@{@}} pair as
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
95 described above.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
96 @item LaTeX-section
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
97 (@kbd{C-c C-s}) Insert one of @samp{\chapter}, @samp{\section}, etc.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
98 @item TeX-font
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
99 (@kbd{C-c C-f C-r}, @kbd{C-c C-f C-i}, @kbd{C-c C-f C-b}) Insert one of
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
100 @samp{@{\textrm @}}), @samp{@{\textit \/@}} @samp{@{\textbf @}} etc.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
101 @end table
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
102
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
103 A number of additional functions are available. But it would be far too
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
104 much to write about here. Refer to the rest of the AUC @TeX{}
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
105 documentation for further information.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
106
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
107 @section Running La@TeX{}
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 @code{TeX-command-master} (@kbd{C-c
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
110 C-c}) or @code{TeX-command-region} (@kbd{C-c C-r}) La@TeX{} is run on
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
111 either the entire current document or a given region of it. The Emacs
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
112 view is split in two, and the output of @TeX{} is printed in the second
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
113 half of the screen, as you may simultaneously continue editing your
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
114 document. In case @TeX{} found any errors when processing your input
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
115 you can call the function @code{TeX-next-error} (@kbd{C-c `}) which will
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
116 move the cursor to the first given error, and display a short
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
117 explanatory text along with the message @TeX{} gave. This procedure may
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
118 be repeated until all errors have been displayed. By pressing @kbd{C-c
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
119 C-w} (@code{TeX-toggle-debug-boxes}) you can toggle whether the browser
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
120 also should notify over-full/under-full 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 @code{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 @section 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 Along with AUC @TeX{} comes support for outline mode for Emacs, which
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
128 lets you browse the sectioning structure of your document, while you
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
129 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
130 functionality.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
131
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
132 @section Availability
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
133
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
134 The most recent version is always available by ftp at
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
135
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
136 @flushright
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
137 @samp{ftp://ftp.iesd.auc.dk/pub/emacs-lisp/auctex.tar.gz}
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
138 @end flushright
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 @samp{<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 @flushright
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
146 @samp{http://www.iesd.auc.dk/~amanda/auctex/}
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
147 @end flushright
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
148
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
149 @section Contacts
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
150
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
151 There has been established a mailing list for help, bug reports, feature
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
152 requests and general discussion about AUC @TeX{}. You're very welcome
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
153 to join. Traffic average at an article by day, but they come in bursts.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
154 If you are only interested in information on updates, you could refer to
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
155 the newsgroups @samp{comp.text.tex} and @samp{gnu.emacs.sources}.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
156
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
157 If you want to contact the AUC @TeX{} mailing list, send mail to
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
158 @samp{<auc-tex-request@@iesd.auc.dk>} in order to join. Articles should
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
159 be send to @samp{<auc-tex@@iesd.auc.dk>}.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
160
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
161 To contact the current maintainers of auc-@TeX{} directly, email
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
162 @samp{<auc-tex_mgr@@iesd.auc.dk>}.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
163
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
164 @example
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
165 AUC @TeX{} development
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
166 c/o Kresten Krab Thorup
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
167
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
168 Mathematics and Computer Science
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
169 University of Aalborg
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
170 DK 9000 Aalborg
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
171 Denmark
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
172 @end example
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
173
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
174