annotate man/auctex/auc-tex.texi @ 123:c77884c6318d

Added tag r20-1b14 for changeset d2f30a177268
author cvs
date Mon, 13 Aug 2007 09:26:04 +0200
parents 4be1180a9e89
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1 \input texinfo
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2 @setfilename auctex
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
3 @settitle AUC TeX
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
4 @c footnotestyle separate
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
5 @c paragraphindent 2
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
6 @comment %**end of header
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
7 @iftex
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
8 @tolerance 10000
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
9 @end iftex
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
10
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
11 @c $Id: auc-tex.texi,v 1.1 1997/02/20 02:05:18 steve Exp $
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
12
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
13 @finalout
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
14 @titlepage
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
15 @title AUC @TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
16 @subtitle A much enhanced La@TeX{} mode for GNU Emacs.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
17 @subtitle Version 9.7
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
18
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
19 @author by Kresten Krab Thorup
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
20 @author updated for 6.1 to 9.7 by Per Abrahamsen
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
21 @page
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
22 @vskip 0pt plus 1filll
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
23 Copyright @copyright{} 1992 Kresten Krab Thorup @*
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
24 Copyright @copyright{} 1993, 1994,1995 Per Abrahamsen
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
25
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
26 Permission is granted to make and distribute verbatim copies of
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
27 this manual provided the copyright notice and this permission notice
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
28 are preserved on all copies.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
29
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
30 @ignore
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
31 Permission is granted to process this file through TeX and print the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
32 results, provided the printed document carries copying permission
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
33 notice identical to this one except for the removal of this paragraph
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
34 (this paragraph not being relevant to the printed manual).
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
35 @end ignore
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
36
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
37 Permission is granted to copy and distribute modified versions of this
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
38 manual under the conditions for verbatim copying, provided also that the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
39 section entitled ``Copying'' is included exactly as in the original, and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
40 provided that the entire resulting derived work is distributed under the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
41 terms of a permission notice identical to this one.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
42
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
43 Permission is granted to copy and distribute translations of this manual
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
44 into another language, under the above conditions for modified versions,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
45 except that this permission notice may be stated in a translation
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
46 approved by the Free Software Foundation.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
47 @end titlepage
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
48 @page
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
49
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
50 @ifinfo
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
51 @node top, Copying, (dir), (dir)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
52 @top AUC @TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
53
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
54 AUC @TeX{} is an integrated environment for editing La@TeX{} and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
55 @TeX{} files.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
56
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
57 This file documents AUC @TeX{} version 9.7.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
58
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
59 Although AUC @TeX{} contains a large number of features, there are no
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
60 reasons to despair. You can continue to write @TeX{} and La@TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
61 documents the way you are used to, and only start using the multiple
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
62 features in small steps. AUC @TeX{} is not monolithic, each feature
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
63 described in this manual is useful by itself, but together they provide
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
64 an environment where you will make very few LaTeX errors, and makes it
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
65 easy to find the errors that may slip through anyway.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
66
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
67 If you want to make AUC TeX aware of style files and multi-file
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
68 documents right away, insert the following in your @file{.emacs} file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
69 @lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
70 (setq TeX-auto-save t)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
71 (setq TeX-parse-self t)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
72 (setq-default TeX-master nil)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
73 @end lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
74
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
75 NOTE: This documentation is preliminary. It should however cover most
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
76 important points. Corrections or perhaps rewrites of sections
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
77 are VERY WELCOME.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
78
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
79 Kresten Krab Thorup (6.0) @*
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
80 Per Abrahamsen (later updates)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
81
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
82 There is a mailing list for discussion about AUC @TeX{} and announcement
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
83 of alpha releases, write to @samp{auc-tex-request@@sunsite.auc.dk} to join
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
84 it. Send contributions to @samp{auc-tex@@sunsite.auc.dk}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
85
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
86 Bug reports, suggestions for new features, and pleas for help should go
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
87 to either @samp{auc-tex_mgr@@iesd.auc.dk} (the AUC @TeX{} managers), or
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
88 to @samp{auc-tex@@sunsite.auc.dk} (the mailing list) if they might have
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
89 general interest. Please use the command @kbd{M-x
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
90 TeX-submit-bug-report} to report bugs if possible.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
91
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
92 @end ifinfo
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
93
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
94 @menu
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
95 * Copying:: Copying
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
96 * Introduction:: Why AUC @TeX{} is good for you.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
97 * Frequently Used Commands:: Inserting Frequently Used Commands
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
98 * Advanced Features:: Advanced Editing Features
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
99 * Formatting:: Formatting and Printing
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
100 * Multifile:: Multifile Documents
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
101 * Parsing Files:: Automatic Parsing of @TeX{} files.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
102 * I18n:: Internationalization
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
103 * Automatic:: Automatic Customization
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
104 * Style Files:: Writing Your own Style Support
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
105 * Installation:: How to install AUC @TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
106 * History:: The History of AUC @TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
107 * Projects:: Wishlist
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
108 * Credit:: Credit
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
109 * Key Index:: Key Index
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
110 * Function Index:: Function Index
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
111 * Variable Index:: Variable Index
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
112 * Concept Index:: Concept Index
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
113
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
114 @end menu
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
115
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
116 @node Copying, Introduction, top, top
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
117 @unnumbered Copying
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
118 @cindex Copying
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
119 @cindex Copyright
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
120 @cindex GPL
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
121 @cindex General Public License
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
122 @cindex License
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
123 @cindex Free
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
124 @cindex Free software
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
125 @cindex Distribution
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
126 @cindex Right
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
127 @cindex Warranty
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
128
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
129 (This text stolen from the @TeX{}info 2.16 distribution).
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
130
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
131 The programs currently being distributed that relate to AUC @TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
132 include lisp files for GNU Emacs. These programs are @dfn{free}; this
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
133 means that everyone is free to use them and free to redistribute them on
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
134 a free basis. The AUC @TeX{} related programs are not in the public
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
135 domain; they are copyrighted and there are restrictions on their
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
136 distribution, but these restrictions are designed to permit everything
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
137 that a good cooperating citizen would want to do. What is not allowed
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
138 is to try to prevent others from further sharing any version of these
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
139 programs that they might get from you.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
140
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
141 Specifically, we want to make sure that you have the right to give
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
142 away copies of the programs that relate to AUC @TeX{}, that you receive
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
143 source code or else can get it if you want it, that you can change these
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
144 programs or use pieces of them in new free programs, and that you know
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
145 you can do these things.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
146
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
147 To make sure that everyone has such rights, we have to forbid you to
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
148 deprive anyone else of these rights. For example, if you distribute
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
149 copies of the AUC @TeX{} related programs, you must give the recipients all
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
150 the rights that you have. You must make sure that they, too, receive or
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
151 can get the source code. And you must tell them their rights.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
152
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
153 Also, for our own protection, we must make certain that everyone finds
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
154 out that there is no warranty for the programs that relate to AUC @TeX{}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
155 If these programs are modified by someone else and passed on, we want
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
156 their recipients to know that what they have is not what we distributed,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
157 so that any problems introduced by others will not reflect on our
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
158 reputation.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
159
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
160 The precise conditions of the licenses for the programs currently
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
161 being distributed that relate to AUC @TeX{} are found in the General
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
162 Public Licenses that accompany them.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
163
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
164 @node Introduction, Frequently Used Commands, Copying, top
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
165 @include intro.texi
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
166
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
167 @node Frequently Used Commands, Advanced Features, Introduction, top
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
168 @chapter Inserting Frequently Used Commands
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
169
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
170 The most commonly used commands/macros of AUC @TeX{} are those which
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
171 simply insert templates for often used @TeX{} and/or La@TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
172 constructs, like font changes, handling of environments, etc.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
173 These features are very simple, and easy to learn, and help you
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
174 avoiding stupid mistakes like mismatched braces, or
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
175 @samp{\begin@{@}}-@samp{\end@{@}} pairs.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
176
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
177 @menu
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
178 * Quotes:: Inserting double quotes
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
179 * Font Specifiers:: Inserting Font Specifiers
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
180 * Sectioning:: Inserting chapters, sections, etc.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
181 * Environments:: Inserting Environment Templates
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
182 @end menu
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
183
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
184 @node Quotes, Font Specifiers, Frequently Used Commands, Frequently Used Commands
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
185 @section Insertion of Quotes, Dollars, and Braces
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
186
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
187 @cindex Quotes
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
188 @cindex Double quotes
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
189 @cindex Braces
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
190 @cindex Brackets
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
191 @cindex Dollars
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
192 @cindex Math mode delimiters
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
193 @cindex Matching dollar signs
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
194 @cindex Display math mode
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
195
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
196 In @TeX{} literal double quotes @samp{"like this"} are seldom used,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
197 instead two single quotes are used @samp{``like this''}. To help you
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
198 insert these efficiently, AUC @TeX{} allows you to continue to press
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
199 @kbd{"} to insert two single quotes. To get a literal double quote,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
200 press @kbd{"} twice.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
201
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
202 @deffn Command TeX-insert-quote @var{count}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
203 @kindex "
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
204 (@kbd{"}) Insert the appropriate quote marks for TeX.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
205
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
206 Inserts the value of @code{TeX-open-quote} (normally @samp{``}) or
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
207 @code{TeX-close-quote} (normally @samp{''}) depending on the context.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
208 With prefix argument, always inserts @samp{"} characters.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
209 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
210
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
211 @defopt TeX-open-quote
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
212 String inserted by typing @kbd{"} to open a quotation.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
213 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
214
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
215 @defopt TeX-close-quote
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
216 String inserted by typing @kbd{"} to open a quotation.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
217 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
218
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
219 If you include the style file @file{german} @code{TeX-open-quote} and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
220 @code{TeX-close-quote} will both be set to @samp{"}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
221
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
222 In AUC @TeX{}, dollar signs should match like they do in @TeX{}. This
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
223 has been partially implemented, we assume dollar signs always match
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
224 within a paragraph. The first @samp{$} you insert in a paragraph will
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
225 do nothing special. The second @samp{$} will match the first. This
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
226 will be indicated by moving the cursor temporarily over the first dollar
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
227 sign. If you enter a dollar sign that matches a double dollar sign
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
228 @samp{$$} AUC @TeX{} will automatically insert two dollar signs. If you
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
229 enter a second dollar sign that matches a single dollar sign, the single
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
230 dollar sign will automatically be converted to a double dollar sign.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
231
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
232 @deffn Command TeX-insert-dollar @var{arg}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
233 @kindex $
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
234 (@kbd{$}) Insert dollar sign.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
235
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
236 Show matching dollar sign if this dollar sign end the @TeX{} math mode.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
237 Ensure double dollar signs match up correctly by inserting extra
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
238 dollar signs when needed.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
239
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
240 With optional @var{arg}, insert that many dollar signs.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
241 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
242
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
243 To avoid unbalanced braces, it is useful to insert them pairwise. You
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
244 can do this by typing @kbd{C-c @{}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
245
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
246 @deffn Command TeX-insert-braces
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
247 @kindex C-c @{
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
248 (@kbd{C-c @{}) Make a pair of braces and position the cursor
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
249 to type inside of them.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
250 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
251
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
252 @node Font Specifiers, Sectioning, Quotes, Frequently Used Commands
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
253 @section Inserting Font Specifiers
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
254
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
255 @cindex Fonts
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
256 @cindex Font macros
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
257 @cindex Changing font
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
258 @cindex Specifying a font
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
259
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
260 Perhaps the most used keyboard commands of AUC @TeX{} are the short-cuts
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
261 available for easy insertion of font changing macros. They all put the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
262 font change inside a @TeX{} group, a practice that help preventing
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
263 subtle errors. The most significant advantage of using these command
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
264 instead of typing it in yourself, is that the braces will always match
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
265 correctly.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
266
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
267 If you give an argument (that is, type @kbd{C-u}) to the font command,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
268 the innermost font will be replaced, i.e. the font in the @TeX{} group
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
269 around point will be changed. The following table shows the available
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
270 commands, with @code{@point{}} indicating the position where the text
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
271 will be inserted.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
272
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
273 @table @kbd
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
274 @item C-c C-f C-r
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
275 @kindex C-c C-f C-r
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
276 @cindex @code{\textrm}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
277 Insert roman @r{@{\textrm @point{}@}} text.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
278
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
279 @item C-c C-f C-b
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
280 @kindex C-c C-f C-b
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
281 @cindex @code{\textbf}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
282 Insert @b{bold face} @samp{@{\textbf @point{}@}} text.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
283
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
284 @item C-c C-f C-i
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
285 @kindex C-c C-f C-i
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
286 @cindex @code{\textit}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
287 Insert @i{italics} @samp{@{\textit @point{}\/@}} text.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
288
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
289 @item C-c C-f C-e
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
290 @kindex C-c C-f C-e
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
291 @cindex @code{\emph}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
292 Insert @i{emphasized} @samp{@{\emph @point{}\/@}} text.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
293
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
294 @item C-c C-f C-s
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
295 @kindex C-c C-f C-s
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
296 @cindex @code{\textsl}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
297 Insert @i{slanted} @samp{@{\textsl @point{}\/@}} text.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
298
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
299 @item C-c C-f C-t
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
300 @kindex C-c C-f C-t
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
301 @cindex @code{\texttt}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
302 Insert @t{typewriter} @samp{@{\texttt @point{}@}} text.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
303
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
304 @item C-c C-f C-c
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
305 @kindex C-c C-f C-c
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
306 @cindex @code{\textsc}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
307 Insert @sc{small caps} @samp{@{\textsc @point{}@}} text.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
308
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
309 @item C-c C-f C-d
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
310 @kindex C-c C-f C-c
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
311 @cindex Deleting fonts
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
312 Delete the innermost font specification containing point.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
313
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
314 @end table
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
315
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
316 @deffn Command TeX-font @var{arg}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
317 @kindex C-c C-f
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
318 (@kbd{C-c C-f}) Insert template for font change command.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
319
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
320 If @var{replace} is not nil, replace current font. @var{what}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
321 determines the font to use, as specified by @code{TeX-font-list}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
322 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
323
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
324 @defopt TeX-font-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
325 List of fonts used by TeX-font.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
326
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
327 Each entry is a list with three elements. The first element is the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
328 key to activate the font. The second element is the string to insert
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
329 before point, and the third element is the string to insert after
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
330 point. An optional fourth element means always replace if not nil.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
331 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
332
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
333 @node Sectioning, Environments, Font Specifiers, Frequently Used Commands
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
334 @section Inserting chapters, sections, etc.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
335 @cindex Sectioning
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
336 @cindex Sections
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
337 @cindex Chapters
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
338 @cindex @code{\chapter}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
339 @cindex @code{\section}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
340 @cindex @code{\subsection}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
341 @cindex @code{\label}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
342
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
343 Insertion of sectioning macros, that is @samp{\chapter},
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
344 @samp{\section}, @samp{\subsection}, etc. and accompanying
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
345 @samp{\label}'s may be eased by using @kbd{C-c C-s}. This command is
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
346 highly customizable, the following describes the default behavior.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
347
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
348 When invoking you will be asked for a section macro to insert. An
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
349 appropriate default is automatically selected by AUC @TeX{}, that is
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
350 either: at the top of the document; the top level sectioning for that
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
351 document style, and any other place: The same as the last occurring
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
352 sectioning command.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
353
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
354 Next, you will be asked for the actual name of that section, and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
355 last you will be asked for a label to be associated with that section.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
356 The label will be prefixed by the value specified in
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
357 @code{LaTeX-section-hook}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
358
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
359 @deffn Command LaTeX-section @var{arg}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
360 @kindex C-c C-s
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
361 (@kbd{C-c C-s}) Insert a sectioning command.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
362
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
363 Determine the type of section to be inserted, by the argument
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
364 @var{arg}.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
365
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
366 @itemize @bullet
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
367 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
368 If @var{arg} is nil or missing, use the current level.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
369 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
370 If @var{arg} is a list (selected by C-u), go downward one level.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
371 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
372 If @var{arg} is negative, go up that many levels.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
373 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
374 If @var{arg} is positive or zero, use absolute level:
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
375 @itemize +
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
376 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
377 0 : part
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
378 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
379 1 : chapter
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
380 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
381 2 : section
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
382 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
383 3 : subsection
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
384 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
385 4 : subsubsection
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
386 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
387 5 : paragraph
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
388 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
389 6 : subparagraph
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
390 @end itemize
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
391 @end itemize
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
392
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
393 The following variables can be set to customize the function.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
394
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
395 @vtable @code
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
396 @item LaTeX-section-hook
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
397 Hooks to be run when inserting a section.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
398 @item LaTeX-section-label
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
399 Prefix to all section references.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
400 @end vtable
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
401
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
402 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
403
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
404 The precise behavior of @code{LaTeX-section} is defined by the contents
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
405 of @code{LaTeX-section-hook}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
406
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
407 @defopt LaTeX-section-hook
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
408 List of hooks to run when a new section is inserted.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
409
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
410 The following variables are set before the hooks are run
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
411
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
412 @table @var
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
413 @item level
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
414 Numeric section level, default set by prefix arg to @code{LaTeX-section}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
415 @item name
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
416 Name of the sectioning command, derived from @var{level}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
417 @item title
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
418 The title of the section, default to an empty string.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
419 @item toc
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
420 Entry for the table of contents list, default nil.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
421 @item done-mark
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
422 Position of point afterwards, default nil meaning after the inserted
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
423 text.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
424 @end table
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
425
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
426 A number of hooks are already defined. Most likely, you will be able to
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
427 get the desired functionality by choosing from these hooks.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
428
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
429 @ftable @code
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
430 @item LaTeX-section-heading
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
431 Query the user about the name of the sectioning command. Modifies
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
432 @var{level} and @var{name}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
433 @item LaTeX-section-title
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
434 Query the user about the title of the section. Modifies @var{title}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
435 @item LaTeX-section-toc
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
436 Query the user for the toc entry. Modifies @var{toc}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
437 @item LaTeX-section-section
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
438 Insert La@TeX{} section command according to @var{name}, @var{title},
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
439 and @var{toc}. If @var{toc} is nil, no toc entry is inserted. If
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
440 @var{toc} or @var{title} are empty strings, @var{done-mark} will be
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
441 placed at the point they should be inserted.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
442 @item LaTeX-section-label
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
443 Insert a label after the section command. Controlled by the variable
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
444 @code{LaTeX-section-label}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
445 @end ftable
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
446
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
447 To get a full featured @code{LaTeX-section} command, insert
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
448
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
449 @lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
450 (setq LaTeX-section-hook
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
451 '(LaTeX-section-heading
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
452 LaTeX-section-title
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
453 LaTeX-section-toc
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
454 LaTeX-section-section
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
455 LaTeX-section-label))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
456 @end lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
457
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
458 in your @file{.emacs} file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
459 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
460
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
461 The behavior of @code{LaTeX-section-label} is determined by the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
462 variable @code{LaTeX-section-label}.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
463
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
464 @defopt LaTeX-section-label
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
465 Default prefix when asking for a label.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
466
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
467 If it is a string, it is used unchanged for all kinds of sections.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
468 If it is nil, no label is inserted.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
469 If it is a list, the list is searched for a member whose car is equal
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
470 to the name of the sectioning command being inserted. The cdr is then
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
471 used as the prefix. If the name is not found, or if the cdr is nil,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
472 no label is inserted.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
473
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
474 @cindex Prefix for labels
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
475 @cindex Label prefix
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
476 @cindex Labels
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
477 By default, chapters have a prefix of @samp{cha:} while sections and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
478 subsections have a prefix of @samp{sec:}. Labels are not automatically
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
479 inserted for other types of sections.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
480 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
481
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
482 @node Environments, , Sectioning, Frequently Used Commands
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
483 @section Inserting Environment Templates
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
484 @cindex Environments
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
485 @cindex @samp{\begin}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
486 @cindex @samp{\end}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
487
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
488 A large apparatus is available that supports insertions of environments,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
489 that is @samp{\begin@{@}} --- @samp{\end@{@}} pairs.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
490
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
491 AUC @TeX{} is aware of most of the actual environments available in a
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
492 specific document. This is achieved by examining your
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
493 @samp{\documentstyle} command, and consulting a precompiled list of
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
494 environments available in a large number of styles.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
495
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
496 You insert an environment with @kbd{C-c C-e}, and select an environment
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
497 type. Depending on the environment, AUC @TeX{} may ask more questions
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
498 about the optional parts of the selected environment type. With
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
499 @kbd{C-u C-c C-e} you will change the current environment.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
500
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
501 @deffn Command LaTeX-environment @var{arg}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
502 @kindex C-c C-e
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
503 (@kbd{C-c C-e}) AUC @TeX{} will prompt you for an environment
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
504 to insert. At this prompt, you may press @key{TAB} or @key{SPC} to
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
505 complete a partially written name, and/or to get a list of available
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
506 environments. After selection of a specific environment AUC @TeX{} may
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
507 prompt you for further specifications.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
508
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
509 If the optional argument @var{arg} is not-nil (i.e. you have given a
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
510 prefix argument), the current environment is modified and no new
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
511 environment is inserted.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
512 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
513
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
514 As a default selection, AUC @TeX{} will suggest the environment last
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
515 inserted or, as the first choice the value of the variable
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
516 @code{LaTeX-default-environment}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
517
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
518 @defopt LaTeX-default-environment
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
519 Default environment to insert when invoking @samp{LaTeX-environment}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
520 first time.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
521 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
522
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
523 If the document is empty, or the cursor is placed at the top of the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
524 document, AUC @TeX{} will default to insert a `document' environment.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
525
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
526 Most of these are described further in the following sections, and you
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
527 may easily specify more, as described in `Customizing environments'.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
528
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
529 @menu
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
530 * Floats:: Floats
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
531 * Itemize-like:: Itemize-like
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
532 * Tabular-like:: Tabular-like
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
533 * Customizing environments:: Customizing environments
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
534 @end menu
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
535
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
536 You can close the current environment with @kbd{C-c ]}, but we suggest
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
537 that you use @kbd{C-c C-e} to insert complete environments instead.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
538
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
539 @deffn Command LaTeX-close-environment
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
540 @kindex C-c ]
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
541 (@kbd{C-c ]}) Insert an @samp{\end} that matches the current environment.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
542 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
543
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
544 @node Floats, Itemize-like, Environments, Environments
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
545 @subsection Floats
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
546 @cindex Floats
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
547 @cindex Figures
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
548 @cindex Figure environment
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
549 @cindex Tables
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
550 @cindex Table environment
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
551
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
552 Figures and tables (i.e., floats) may also be inserted using AUC @TeX{}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
553 After choosing either `figure' or `table' in the environment list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
554 described above, you will be prompted for a number of additional things.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
555
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
556 @table @var
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
557 @item float-to
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
558 This field is the option of float environments that controls how they are
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
559 placed in the final document. In La@TeX{} this is a sequence of the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
560 letters @samp{htbp} as described in the La@TeX{} manual. The value will
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
561 default to the value of @code{LaTeX-float}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
562 @vindex LaTeX-float
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
563
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
564 @item caption
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
565 This is the caption of the float.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
566
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
567 @item label
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
568 The label of this float. The label will have a default prefix, which is
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
569 controlled by the variables @code{LaTeX-figure-label} and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
570 @code{LaTeX-table-label}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
571 @vindex LaTeX-figure-label
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
572 @vindex LaTeX-table-label
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
573 @cindex Prefix for labels
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
574 @cindex Label prefix
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
575 @cindex Labels
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
576 @end table
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
577
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
578 Moreover, in the case of a `figure' environment, you will be asked if
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
579 you want to insert a `center' environment inside the figure.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
580
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
581 @defopt LaTeX-float
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
582 Default placement for floats.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
583 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
584
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
585 @defopt LaTeX-figure-label
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
586 Prefix to use for figure labels.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
587 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
588
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
589 @defopt LaTeX-table-label
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
590 Prefix to use for table labels.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
591 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
592
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
593 @node Itemize-like, Tabular-like, Floats, Environments
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
594 @subsection Itemize-like
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
595 @cindex Itemize
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
596 @cindex Enumerates
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
597 @cindex Descriptions
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
598 @cindex Items
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
599 @cindex \item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
600
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
601 In an itemize-like environment, nodes (i.e., @samp{\item}s) may be
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
602 inserted using @kbd{C-c @key{LFD}}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
603
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
604 @deffn Command LaTeX-insert-item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
605 @kindex C-c @key{LFD}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
606 (@kbd{C-c @key{LFD}}) Close the current item, move to the next line and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
607 insert an appropriate @samp{\item} for the current environment. That is,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
608 `itemize' and `enumerate' will have @samp{\item } inserted, while
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
609 `description' will have @samp{\item[]} inserted.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
610 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
611
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
612 @node Tabular-like, Customizing environments, Itemize-like, Environments
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
613 @subsection Tabular-like
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
614
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
615 When inserting Tabular-like environments, that is, `tabular' `array'
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
616 etc., you will be prompted for a template for that environment.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
617
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
618 @node Customizing environments, , Tabular-like, Environments
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
619 @subsection Customizing environments
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
620
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
621 @xref{Adding Environments}, for how to customize the list of known
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
622 environments.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
623
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
624 @node Advanced Features, Formatting, Frequently Used Commands, top
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
625 @chapter Advanced Editing Features
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
626 @cindex Advanced features
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
627
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
628 The previous chapter described how to write the main body of the text
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
629 easily and with a minimum of errors. In this chapter we will describe
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
630 some features for entering more specialized sorts of text, and for
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
631 indenting and navigating through the document.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
632
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
633 @menu
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
634 * Mathematics:: Entering Mathematics
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
635 * Completion:: Completion
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
636 * Commenting:: Commenting
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
637 * Marking and formatting:: Marking, Formatting and Indenting
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
638 * Outline:: Hiding text
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
639 @end menu
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
640
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
641 @node Mathematics, Completion, Advanced Features, Advanced Features
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
642 @section Entering Mathematics
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
643 @cindex Mathematics
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
644 @cindex Symbols
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
645 @cindex Abbreviations
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
646
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
647 @TeX{} is written by a mathematician, and has always contained good
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
648 support for formatting mathematical text. AUC @TeX{} supports this
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
649 tradition, by offering a special minor mode for entering text with many
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
650 mathematic symbols. You can enter this mode by typing @kbd{C-c
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
651 ~}.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
652
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
653 @deffn Command LaTeX-math-mode
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
654 @kindex C-c ~
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
655 (@kbd{C-c ~}) Toggle LaTeX-math-mode. This is a minor mode rebinding
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
656 the key @code{LaTeX-math-abbrev-prefix} to allow easy typing of
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
657 mathematical symbols. @kbd{`} will read a character from the keyboard,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
658 and insert the symbol as specified in @code{LaTeX-math-list}. If given a
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
659 prefix argument, the symbol will be surrounded by dollar signs.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
660 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
661
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
662 You can use another prefix key (instead of @kbd{`}) by setting the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
663 variable LaTeX-math-abbrev-prefix.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
664
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
665 @defopt LaTeX-math-abbrev-prefix
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
666 A string containing the prefix of @code{LaTeX-math-mode} commands;
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
667 This value defaults to @kbd{`}. @refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
668 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
669
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
670 The variable @code{LaTeX-math-list} holds the actual mapping.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
671
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
672 @defopt LaTeX-math-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
673 A list containing key command mappings to use in @code{LaTeX-math-mode}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
674 The car of each element is the key and the cdr is the macro name.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
675 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
676
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
677 The AUC @TeX{} distributions includes a reference card for
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
678 @code{LaTeX-math-mode} with a list of all math mode commands.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
679
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
680 @node Completion, Commenting, Mathematics, Advanced Features
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
681 @section Completion
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
682 @cindex Completion
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
683 @cindex Expansion
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
684 @cindex Macro expansion
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
685 @cindex Macro completion
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
686 @cindex Macro arguments
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
687 @cindex Arguments to @TeX{} macros
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
688
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
689 Emacs lisp programmers probably know the @code{lisp-complete-symbol}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
690 command, usually bound to @kbd{M-@key{TAB}}. Users of the wonderful
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
691 ispell mode know and love the @code{ispell-complete-word} command from
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
692 that package. Similarly, AUC @TeX{} has a @code{TeX-complete-symbol}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
693 command, usually bound to @kbd{M-@key{TAB}}. Using
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
694 @code{LaTeX-complete-symbol} makes it easier to type and remember the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
695 names of long La@TeX{} macros.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
696
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
697 In order to use @code{TeX-complete-symbol}, you should write a backslash
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
698 and the start of the macro. Typing @kbd{M-@key{TAB}} will now
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
699 complete as much of the macro, as it unambiguously can. For example, if
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
700 you type `@samp{\renewc}' and then `@kbd{M-@key{TAB}}, it will expand
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
701 to `@samp{\renewcommand}'.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
702
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
703 @deffn Command TeX-complete-symbol
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
704 @kindex M-@key{TAB}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
705 (@kbd{M-@key{TAB}}) Complete @TeX{} symbol before point.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
706 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
707
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
708 A more direct way to insert a macro is with @code{TeX-insert-macro},
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
709 bound to @kbd{C-c C-m}. It has the advantage over completion that it
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
710 knows about the argument of most standard La@TeX{} macros, and will
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
711 prompt for them. It also knows about the type of the arguments, so it
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
712 will for example give completion for the argument to @samp{\include}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
713 Some examples are listed below.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
714
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
715 @deffn Command TeX-insert-macro
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
716 @kindex C-c C-m
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
717 (@kbd{C-c C-m}) Prompt (with completion) for the name of a @TeX{} macro,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
718 and if AUC @TeX{} knows the macro, prompt for each argument.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
719 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
720
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
721 As a default selection, AUC @TeX{} will suggest the macro last inserted
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
722 or, as the first choice the value of the variable
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
723 @code{TeX-default-macro}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
724
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
725 @defopt TeX-default-macro
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
726 Default macro to insert when invoking @code{TeX-insert-macro} first time.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
727 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
728
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
729 A faster alternative is to bind the function @code{TeX-electric-macro}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
730 to @samp{\}. This can be done by setting the variable @code{TeX-electric-escape}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
731
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
732 @defopt TeX-electric-escape
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
733 If this is non-nil when AUC @TeX{} is loaded, the @TeX{} escape
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
734 character @samp{\} will be bound to @code{TeX-electric-macro}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
735 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
736
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
737 The difference between @code{TeX-insert-macro} and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
738 @code{TeX-electric-macro} is that space will complete and exit from the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
739 minibuffer in @code{TeX-electric-macro}. Use @key{TAB} if you merely
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
740 want to complete.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
741
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
742 @deffn Command TeX-electric-macro
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
743 Prompt (with completion) for the name of a @TeX{} macro,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
744 and if AUC @TeX{} knows the macro, prompt for each argument.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
745 Space will complete and exit.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
746 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
747
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
748 By default AUC @TeX{} will put an empty set braces @samp{@{@}} after a
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
749 macro with no arguments to stop it from eating the next whitespace.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
750 This can be stopped by entering @code{LaTeX-math-mode},
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
751 @pxref{Mathematics}, or by setting @code{TeX-insert-braces} to nil
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
752
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
753 @defopt TeX-insert-braces
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
754 If non-nil, append a empty pair of braces after inserting a macro.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
755 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
756
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
757 Completions work because AUC @TeX{} can analyze @TeX{} files, and store
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
758 symbols in emacs lisp files for later retrieval. @xref{Automatic}, for
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
759 more information.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
760
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
761 @cindex \cite, completion of
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
762 @cindex Bib@TeX{}, completion
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
763 @cindex cite, completion of
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
764 @cindex bibliography, completion
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
765 @cindex citations, completion of
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
766 @cindex \label, completion
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
767 @cindex \ref, completion
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
768 @cindex labels, completion of
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
769 AUC @TeX{} will also make completion for many macro arguments, for
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
770 example existing labels when you enter a @samp{\ref} macro with
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
771 @code{TeX-insert-macro} or @code{TeX-electric-macro}, and Bib@TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
772 entries when you enter a @samp{\cite} macro. For this kind of
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
773 completion to work, parsing must be enabled as described in
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
774 @pxref{Parsing Files}. For @samp{\cite} you must also make sure that
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
775 the Bib@TeX{} files have been saved at least once after you enabled
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
776 automatic parsing on save, and that the basename of the Bib@TeX{} file
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
777 does not conflict with the basename of one of @TeX{} files.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
778
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
779 @node Commenting, Marking and formatting, Completion, Advanced Features
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
780 @section Commenting
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
781
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
782 It is often necessary to comment out temporarily a region of @TeX{} or
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
783 La@TeX{} code. This can be done with the commands @kbd{C-c ;} and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
784 @kbd{C-c %}. @kbd{C-c ;} will comment out all lines in the current
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
785 region, while @kbd{C-c %} will comment out the current paragraph. To
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
786 uncomment, simply type @kbd{C-u - C-c ;} to uncomment all lines in the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
787 region, or @kbd{C-u - C-c %} uncomment all comment lines around point.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
788
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
789 By default, these commands will insert or remove a single @samp{%}. To
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
790 insert more than one, give an argument. @kbd{C-u 5 C-c %} will add five
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
791 @samp{%} to each line, while @kbd{C-u - 5 C-c %} will remove up to 5
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
792 @samp{%} from each line.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
793
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
794 @deffn Command TeX-comment-region @var{count}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
795 @kindex C-c ;
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
796 (@kbd{C-c ;}) Add or remove @samp{%} from the beginning of each line in
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
797 the current region, as specified by @var{count}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
798 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
799
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
800 @deffn Command TeX-comment-paragraph @var{count}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
801 @kindex C-c %
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
802 (@kbd{C-c %}) Add or remove @samp{%} from the beginning of each line in
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
803 the current paragraph, as specified by @var{count}. When removing
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
804 @samp{%}'s the paragraph is considered to consist of all preceding and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
805 succeeding lines starting with a @samp{%}, until the first non-comment
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
806 line.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
807 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
808
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
809 @node Marking and formatting, Outline, Commenting, Advanced Features
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
810 @section Marking, Formatting and Indenting
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
811 @cindex Formatting
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
812 @cindex Filling
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
813 @cindex Indenting
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
814 @cindex Reformatting
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
815 @cindex Reindenting
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
816
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
817 AUC @TeX{} contains very advanced handling of indentation and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
818 reformatting of the La@TeX{} source. If you have already tried AUC
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
819 @TeX{} with @code{auto-fill-mode} enabled, you may have noted that the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
820 source is automatically indented and formatted as you write it. More
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
821 over, AUC @TeX{} is able to format sections of text on demand.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
822
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
823 It is important to realize, that AUC @TeX{} comes with `formatting' in
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
824 two fashions. Either letting @TeX{} format the file, or letting AUC
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
825 @TeX{} make the ASCII document look better.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
826
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
827 Indentation is done by La@TeX{} environments and by @TeX{} groups, that
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
828 is the body of an environment is indented by the value of
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
829 @code{LaTeX-indent-level} (default 2). Also, items of an `itemize-like'
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
830 environment are indented by the value of @code{LaTeX-item-indent},
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
831 default @minus{}2. This indentation makes it easier to see the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
832 structure of the document, and to catch errors such as a missing close
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
833 brace. Thus, the indentation is done for precisely the same reasons
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
834 that you would indent ordinary computer programs.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
835 @vindex LaTeX-indent-level
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
836 @vindex LaTeX-item-indent
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
837
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
838 The following is a short sample of an itemize environment indented by
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
839 AUC @TeX{}. If more environment are nested, they are indented
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
840 `accumulated' just like most programming languages usually are seen
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
841 indented in nested constructs.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
842
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
843 @example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
844 \begin@{itemize@}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
845 \item Insertion of templates for logical-structural compositions such as
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
846 environments and sections.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
847 \item Hot-keys for easy access to certain often used constructs, e.g.,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
848 font changes, accented letters, and mathematical symbols.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
849 \item Running application programs (such as \TeX), and then parsing
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
850 the output so that errors in the document may be located
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
851 easily.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
852 \item Support for multi-file documents.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
853 \item Online help for \AllTeX\ error messages.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
854 \item Outlining\Dash i.e., manipulating the document as a composition
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
855 of nested/sequential logical constructs.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
856 \item Instant formatting and indentation of the \ascii-document in
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
857 order to make it easier to read.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
858 \item `Completion' (and thereby spell-checking) of partially written
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
859 control sequences.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
860 \end@{itemize@}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
861 @end example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
862
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
863 You can format and indent single lines, paragraphs, environments, or
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
864 sections.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
865
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
866 @table @kbd
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
867 @item @key{TAB}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
868 @kindex @key{TAB}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
869 @findex LaTeX-indent-line
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
870 @code{LaTeX-indent-line} will indent the current line.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
871
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
872 @item @key{LFD}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
873 @kindex @key{LFD}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
874 @code{reindent-then-newline-and-indent} indents the current line, and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
875 then inserts a new line (much like @key{RET}) and move the cursor to an
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
876 appropriate position by the left margin.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
877
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
878 @item M-q
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
879 @kindex M-q
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
880 Alias for @kbd{C-c C-q C-p}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
881
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
882 @item C-c C-q C-p
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
883 @kindex C-c C-q C-p
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
884 @findex LaTeX-fill-paragraph
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
885 @code{LaTeX-fill-paragraph} will reformat or `fill' the current
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
886 paragraph.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
887
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
888 @item C-c C-q C-e
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
889 @kindex C-c C-q C-e
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
890 @findex LaTeX-fill-environment
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
891 @code{LaTeX-fill-environment} will reformat or `fill' the current
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
892 environment. This may e.g. be the `document' environment, in which case
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
893 the entire document will be formatted.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
894
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
895 @item C-c C-q C-s
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
896 @kindex C-c C-q C-s
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
897 @findex LaTeX-fill-section
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
898 @code{LaTeX-fill-section} will reformat or `fill' the current
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
899 logical sectional unit.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
900
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
901 @item M-g
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
902 @kindex M-g
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
903 Alias for @kbd{C-c C-q C-r}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
904
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
905 @item C-c C-q C-r
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
906 @kindex C-c C-q C-r
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
907 @findex LaTeX-fill-region
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
908 @code{LaTeX-fill-region} will format or `fill' the current region.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
909 @end table
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
910
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
911 @strong{Warning:} The formatting cannot handle tabular-like
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
912 environments. Those will be completely messed-up if you try to format
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
913 them.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
914
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
915 @defopt LaTeX-indent-level
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
916 Number of spaces to add to the indentation for each @samp{\begin} not
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
917 matched by a @samp{\end}.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
918 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
919
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
920 @defopt LaTeX-item-indent
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
921 Number of spaces to add to the indentation for @samp{\item}'s in list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
922 environments.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
923 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
924
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
925 @defopt TeX-brace-indent-level
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
926 Number of spaces to add to the indentation for each @samp{@{} not
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
927 matched by a @samp{@}}.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
928 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
929
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
930 @node Outline, , Marking and formatting, Advanced Features
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
931 @section Outlining the Document
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
932 @cindex Outlining
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
933 @cindex Headers
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
934 @cindex Sections
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
935 @cindex Overview
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
936 @cindex Folding
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
937
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
938 GNU Emacs earlier than version 19.19 does not have a useful outline
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
939 mode. If you want to use outlines with old versions of emacs, please
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
940 get the file @file{outln-18.el} from
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
941 @file{sunsite.auc.dk:/packages/auctex/outln-18.el}. It is a port of the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
942 Emacs 19.19 outline mode to Emacs 18 and Lucid Emacs.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
943
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
944 AUC @TeX{} supports the standard outline minor mode using La@TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
945 sectioning commands as header lines. @xref{Outline Mode, , Outline
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
946 Mode, emacs, GNU Emacs Manual}. By default
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
947 @code{outline-minor-mode} will use the prefix key @kbd{C-c} which is
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
948 also used by AUC @TeX{}, so it is suggested that you choose another
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
949 prefix key by inserting
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
950
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
951 @lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
952 (setq outline-minor-mode-prefix "\C-c\C-o") ; Or whatever...
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
953 @end lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
954
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
955 in your @file{.emacs} file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
956
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
957 You can add your own headings by setting the variable
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
958 @code{TeX-outline-extra}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
959
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
960 @defvar TeX-outline-extra
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
961 List of extra @TeX{} outline levels.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
962
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
963 Each element is a list with two entries. The first entry is the regular
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
964 expression matching a header, and the second is the level of the header.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
965 A @samp{^} is automatically prepended to the regular expressions in the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
966 list, so they must match text at the beginning of the line.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
967
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
968 See @code{LaTeX-section-list} for existing header levels.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
969 @end defvar
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
970
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
971 The following example add @samp{\item} and @samp{\bibliography} headers,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
972 with @samp{\bibliography} at the same outline level as @samp{\section},
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
973 and @samp{\item} being below @samp{\subparagraph}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
974
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
975 @example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
976 (setq TeX-outline-extra
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
977 '(("[ \t]*\\\\\\(bib\\)?item\\b" 7)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
978 ("\\\\bibliography\\b" 2)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
979 @end example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
980
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
981 You may want to check out the unbundled @file{out-xtra} package for even
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
982 better outline support. It is available from your favorite emacs lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
983 archive.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
984
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
985 @node Formatting, Multifile, Advanced Features, top
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
986 @chapter Formatting and Printing
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
987
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
988 The most powerful features of AUC @TeX{} may be those allowing you to
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
989 run (La)@TeX{} and other external commands like Bib@TeX{} and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
990 @code{makeindex} from within Emacs, viewing and printing the results,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
991 and moreover allowing you to @emph{debug} your documents.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
992
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
993 @menu
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
994 * Commands:: Invoking external commands.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
995 * Debugging:: Debugging @TeX{} and La@TeX{} output.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
996 * Checking:: Checking the document.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
997 * Control:: Controlling the processes.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
998 @end menu
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
999
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1000 @node Commands, Debugging, Formatting, Formatting
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1001 @section Executing Commands
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1002 @cindex Formatting
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1003 @cindex Running La@TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1004 @cindex Running @TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1005 @cindex La@TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1006 @cindex @TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1007 @cindex Running commands
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1008 @cindex Default command
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1009 @cindex Header
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1010 @cindex Trailer
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1011 @cindex Setting the header
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1012 @cindex Setting the trailer
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1013 @cindex Region
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1014 @cindex Region file
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1015 @cindex Setting the default command
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1016 @cindex Commands
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1017 @cindex External Commands
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1018 @cindex Indexing
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1019 @cindex Making an index
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1020 @cindex Running @code{makeindex}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1021 @cindex @code{makeindex}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1022 @cindex Bib@TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1023 @cindex Bibliography
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1024 @cindex Literature
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1025 @cindex Running Bib@TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1026 @cindex Making a bibliography
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1027 @cindex Printing
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1028 @cindex Writing to a printer
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1029 @cindex Viewing
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1030 @cindex Previewing
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1031 @cindex Starting a previewer
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1032
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1033 Formatting the document with @TeX{} or La@TeX{}, viewing with a
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1034 previewer, printing the document, running Bib@TeX{}, making an index, or
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1035 checking the document with @code{lacheck} or @code{chktex} all require
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1036 running an external command.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1037
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1038 There are two ways to run an external command, you can either run it on
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1039 all of the current documents with @code{TeX-command-master}, or on the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1040 current region with @code{TeX-command-region}.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1041
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1042 @deffn Command TeX-command-master
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1043 @kindex C-c C-c
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1044 (@kbd{C-c C-c}) Query the user for a command, and run it on the master
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1045 file associated with the current buffer. The name of the master file is
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1046 controlled by the variable @code{TeX-master}. The available commands are
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1047 controlled by the variable @code{TeX-command-list}.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1048 @vindex TeX-master
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1049 @vindex TeX-command-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1050 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1051
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1052 @xref{Installation} for a discussion about @code{TeX-command-list} and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1053 @ref{Multifile} for a discussion about @code{TeX-master}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1054
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1055 @deffn Command TeX-command-region
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1056 @kindex C-c C-r
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1057 (@kbd{C-c C-r}) Query the user for a command, and run it on the ``region
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1058 file''. Some commands (typically those invoking @TeX{} or La@TeX{})
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1059 will write the current region into the region file, after extracting the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1060 header and tailer from the master file. If mark is not active, use the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1061 old region. The name of the region file is controlled by the variable
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1062 @code{TeX-region}. The name of the master file is controlled by the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1063 variable @code{TeX-master}. The header is all text up to the line
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1064 matching the regular expression @code{TeX-header-end}. The trailer is
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1065 all text from the line matching the regular expression
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1066 @code{TeX-trailer-start}. The available commands are controlled by the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1067 variable @code{TeX-command-list}.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1068 @vindex TeX-region
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1069 @vindex TeX-header-end
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1070 @vindex TeX-trailer-start
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1071 @vindex TeX-master
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1072 @vindex TeX-command-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1073 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1074
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1075 AUC @TeX{} will allow one process for each document, plus one process
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1076 for the region file to be active at the same time. Thus, if you are
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1077 editing @var{n} different documents, you can have @var{n} plus one
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1078 processes running at the same time. If the last process you started was
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1079 on the region, the commands described in @ref{Debugging} and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1080 @ref{Control} will work on that process, otherwise they will work on the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1081 process associated with the current document.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1082
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1083 @defopt TeX-region
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1084 The name of the file for temporarily storing the text when formatting
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1085 the current region.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1086 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1087
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1088 @defopt TeX-header-end
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1089 A regular expression matching the end of the header. By default, this
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1090 is @samp{\begin@{document@}} in La@TeX{} mode and @samp{%**end of
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1091 header} in @TeX{} mode.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1092 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1093
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1094 @defopt TeX-trailer-start
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1095 A regular expression matching the start of the trailer. By default,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1096 this is @samp{\end@{document@}} in La@TeX{} mode and @samp{\bye} in
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1097 @TeX{} mode.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1098 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1099
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1100 AUC @TeX{} will try to guess what command you want to invoke, but by
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1101 default it will assume that you want to run @TeX{} in @TeX{} mode and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1102 La@TeX{} in La@TeX{} mode. You can overwrite this by setting the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1103 variable @code{TeX-command-default}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1104
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1105 @defopt TeX-command-default
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1106 The default command to run in this buffer. Must be an entry in
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1107 @code{TeX-command-list}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1108 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1109
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1110 If you want to overwrite the values of @code{TeX-header-end},
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1111 @code{TeX-trailer-start}, or @code{TeX-command-default}, you can do that
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1112 for all files by setting them in either @code{TeX-mode-hook},
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1113 @code{plain-TeX-mode-hook}, or @code{LaTeX-mode-hook}. To overwrite
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1114 them for a single file, define them as file variables (@pxref{File
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1115 Variables,,,emacs,The Emacs Editor}). You do this by putting special
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1116 formatted text near the end of the file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1117 @cindex Variables
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1118 @cindex File Variables
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1119 @cindex Local Variables
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1120
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1121 @example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1122 % Local Variables:
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1123 % TeX-header-end: "% End-Of-Header"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1124 % TeX-trailer-start: "% Start-Of-Trailer"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1125 % TeX-command-default: "SliTeX"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1126 % End:
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1127 @end example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1128
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1129 AUC @TeX{} will try to save any buffers related to the document, and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1130 check if the document needs to be reformatted. If the variable
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1131 @code{TeX-save-query} is non-nil, AUC @TeX{} will query before saving
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1132 each file. By default AUC @TeX{} will check emacs buffers associated
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1133 with files in the current directory, in one of the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1134 @code{TeX-macro-private} directories, and in the @code{TeX-macro-global}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1135 directories. You can change this by setting the variable
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1136 @code{TeX-check-path}.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1137
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1138 @defopt TeX-check-path
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1139 Directory path to search for dependencies.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1140
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1141 If nil, just check the current file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1142 Used when checking if any files have changed.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1143 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1144
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1145 @node Debugging, Checking, Commands, Formatting
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1146 @section Catching the errors
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1147 @cindex Debugging
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1148 @cindex Errors
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1149 @cindex Parsing errors
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1150 @cindex Parsing TeX output
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1151 @cindex Next error
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1152 @cindex Parsing LaTeX errors
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1153 @cindex Overfull boxes
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1154 @cindex Bad boxes
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1155 @cindex Wonderful boxes
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1156
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1157 Once you've formatted your document you may `debug' it, i.e. browse
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1158 through the errors (La)@TeX{} reported.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1159
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1160 @deffn Command TeX-next-error
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1161 @kindex C-c `
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1162 (@kbd{C-c `}) Go to the next error reported by @TeX{}. The view will
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1163 be split in two, with the cursor placed as close as possible to the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1164 error in the top view. In the bottom view, the error message will be
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1165 displayed along with some explanatory text.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1166 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1167
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1168 Normally AUC @TeX{} will only report real errors, but you may as well
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1169 ask it to report `bad boxes' as well.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1170
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1171 @deffn Command TeX-toggle-debug-bad-boxes
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1172 @kindex C-c C-w
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1173 (@kbd{C-c C-w}) Toggle whether AUC @TeX{} should stop at bad boxes
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1174 (i.e. over/under full boxes) as well as at normal errors.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1175 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1176
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1177 As default, AUC @TeX{} will display that special @samp{*help*} buffer
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1178 containing the error reported by @TeX{} along with the documentation.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1179 There is however an `expert' option, which allows you to display the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1180 real @TeX{} output.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1181
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1182 @defopt TeX-display-help
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1183 When non-nil AUC @TeX{} will automatically display a help text whenever
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1184 an error is encountered using @code{TeX-next-error} (@kbd{C-c `}).
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1185 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1186
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1187 @node Checking, Control, Debugging, Formatting
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1188 @section Checking for problems
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1189 @cindex Checking
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1190 @cindex @code{lacheck}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1191 @cindex @code{chktex}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1192 @cindex Finding errors
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1193 @cindex Running @code{lacheck}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1194 @cindex Running @code{chktex}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1195 @cindex Style
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1196 @cindex Problems
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1197
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1198 Running @TeX{} or La@TeX{} will only find regular errors in the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1199 document, not examples of bad style. Furthermore, description of the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1200 errors may often be confusing. The utility @code{lacheck} can be used
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1201 to find style errors, such as forgetting to escape the space after an
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1202 abbreviation or using @samp{...} instead of @samp{\ldots} and many other
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1203 problems like that. You start @code{lacheck} with @kbd{C-c C-c C h e c
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1204 k @key{RET}}. The result will be a list of errors in the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1205 @samp{*compilation*} buffer. You can go through the errors with
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1206 @kbd{C-x `} (@code{next-error}, @pxref{Compilation,,,emacs,The Emacs
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1207 Editor}), which will move point to the location of the next
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1208 error.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1209
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1210 Another newer program which can be used to find errors is @code{chktex}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1211 It is much more configurable than @code{lacheck}, but doesn't find all
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1212 the problems @code{lacheck} does, at least in its default configuration.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1213 You must install the programs before using them, and for @code{chktex}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1214 you must also modify @code{TeX-command-list}. You can get
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1215 @code{lacheck} from @file{<URL:ftp://sunsite.auc.dk/pub/text/lacheck/>}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1216 or alternatively @code{chktex} from
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1217 @file{<URL:ftp://ftp.dante.de/pub/tex/support/chktex/>}. Search for
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1218 `chktex' in @file{tex.el} to see how to switch between them.@refill They
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1219 are
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1220
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1221 @node Control, , Checking, Formatting
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1222 @section Controlling the output
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1223 @cindex Controlling the output
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1224 @cindex Output
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1225 @cindex Redisplay output
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1226 @cindex Processes
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1227 @cindex Killing a process
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1228 @cindex Finding the master file
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1229 @cindex Master file
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1230 @cindex Stopping a process
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1231 @cindex Current file
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1232 @cindex Finding the current file
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1233
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1234 A number of commands are available for controlling the output of an
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1235 application running under AUC @TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1236
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1237 @deffn Command TeX-kill-job
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1238 @kindex C-c C-k
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1239 (@kbd{C-c C-k}) Kill currently running external application.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1240 This may be either of @TeX{}, La@TeX{}, previewer Bib@TeX{} etc.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1241 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1242
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1243 @deffn Command TeX-recenter-output-buffer
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1244 @kindex C-c C-l
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1245 (@kbd{C-c C-l}) Recenter the output buffer so that the bottom line is
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1246 visible.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1247 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1248
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1249 @deffn Command TeX-home-buffer
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1250 @kindex C-c ^
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1251 (@kbd{C-c ^}) Go to the `master' file in the document associated with
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1252 the current buffer, or if already there, to the file where the current
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1253 process was started.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1254 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1255
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1256 @node Multifile, Parsing Files, Formatting, top
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1257 @chapter Multifile Documents
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1258 @cindex Multifile Documents
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1259 @cindex Documents
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1260 @cindex Documents with multiple files
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1261 @cindex Multiple Files
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1262 @cindex Many Files
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1263 @cindex Including
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1264 @cindex \include
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1265 @cindex Inputing
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1266 @cindex \input
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1267 @cindex Master file
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1268
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1269 You may wish spread a document over many files (as you are likely to do if
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1270 there are multiple authors, or if you have not yet discovered the power
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1271 of the outline commands (@pxref{Outline})). This can be done by having a
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1272 ``master'' file in which you include the various files with the @TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1273 macro @samp{\input} or the La@TeX{} macro @samp{\include}. These
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1274 files may also include other files themselves. However, to format the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1275 document you must run the commands on the top level master file.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1276
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1277 When you, for example, ask AUC @TeX{} to run a command on the master file,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1278 it has no way of knowing the name of the master file. By default,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1279 it will assume that the current file is the master file. If you insert
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1280 the following in your @file{.emacs} file AUC @TeX{} will use a more
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1281 advanced algorithm.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1282
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1283 @lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1284 (setq-default TeX-master nil) ; Query for master file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1285 @end lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1286
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1287 If AUC @TeX{} finds the line indicating the end of the header in a
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1288 master file (@code{TeX-header-end}), it can figure out for itself that
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1289 this is a master file. Otherwise, it will ask for the name of the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1290 master file associated with the buffer. To avoid asking you again, AUC
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1291 @TeX{} will automatically insert the name of the master file as a file
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1292 variable (@pxref{File Variables,,,emacs,The Emacs Editor}). You can
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1293 also insert the file variable yourself, by putting the following text at
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1294 the end of your files.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1295 @findex TeX-header-end
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1296
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1297 @example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1298 % Local Variables:
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1299 % TeX-master: "master"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1300 % End:
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1301 @end example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1302
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1303 You should always set this variable to the name of the top level document. If
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1304 you always use the same name for your top level documents, you can set
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1305 @code{TeX-master} in your @file{.emacs} file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1306
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1307 @lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1308 (setq-default TeX-master "master") ; All master files called "master".
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1309 @end lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1310
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1311 @defopt TeX-master
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1312 The master file associated with the current buffer. If the file being
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1313 edited is actually included from another file, then you can tell AUC @TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1314 the name of the master file by setting this variable. If there are
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1315 multiple levels of nesting, specify the top level file.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1316
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1317 If this variable is @code{nil}, AUC @TeX{} will query you for the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1318 name.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1319
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1320 If the variable is @code{t}, then AUC @TeX{} will assume the file is a master
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1321 file itself.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1322
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1323 If the variable is @code{shared}, then AUC @TeX{} will query for the name,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1324 but will not change the file.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1325
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1326 It is suggested that you use the File Variables (@pxref{File
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1327 Variables,,,emacs,The Emacs Editor}) to set this variable permanently
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1328 for each file.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1329 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1330
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1331 @defopt TeX-one-master
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1332 Regular expression matching ordinary TeX files.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1333
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1334 You should set this variable to match the name of all files, for which
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1335 it is a good idea to append a @code{TeX-master} file variable entry
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1336 automatically. When AUC @TeX{} adds the name of the master file as a
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1337 file variable, it does not need to ask next time you edit the file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1338
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1339 If you dislike AUC @TeX{} automatically modifying your files, you can
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1340 set this variable to @samp{"<none>"}. By default, AUC @TeX{} will modify
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1341 any file with an extension of @samp{.tex}.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1342 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1343
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1344 AUC @TeX{} keeps track of macros, environments, labels, and style
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1345 files that are used in a given document. For this to work with
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1346 multifile documents, AUC @TeX{} has to have a place to put the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1347 information about the files in the document. This is done by having an
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1348 @file{auto} subdirectory placed in the directory where your document is
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1349 located. Each time you save a file, AUC @TeX{} will write information
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1350 about the file into the @file{auto} directory. When you load a file,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1351 AUC @TeX{} will read the information in the @file{auto} directory
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1352 about the file you loaded @emph{and the master file specified by
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1353 @code{TeX-master}}. Since the master file (perhaps indirectly) includes
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1354 all other files in the document, AUC @TeX{} will get information from
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1355 all files in the document. This means that you will get from each file,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1356 for example, completion for all labels defined anywhere in the document.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1357
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1358 AUC TeX will create the @file{auto} directory automatically if
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1359 @code{TeX-auto-save} is non-nil. Without it, the files in the document
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1360 will not know anything about each other, except for the name of the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1361 master file. @xref{Automatic Local}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1362
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1363 @deffn Command TeX-save-document
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1364 @kindex C-c C-d
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1365 (@kbd{C-c C-d}) Save all buffers known to belong to the current document.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1366 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1367
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1368 @defopt TeX-save-query
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1369 If non-nil, then query the user before saving each file with
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1370 @code{TeX-save-document}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1371 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1372
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1373
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1374 @node Parsing Files, I18n, Multifile, top
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1375 @chapter Automatic Parsing of @TeX{} files.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1376 @cindex Parsing @TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1377 @cindex Automatic Parsing
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1378 @cindex Tabs
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1379 @cindex Tabify
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1380 @cindex Untabify
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1381
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1382 AUC @TeX{} depends heavily on being able to extract information from the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1383 buffers by parsing them. Since parsing the buffer can be somewhat slow,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1384 the parsing is initially disabled. You are encouraged to enable them by
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1385 adding the following lines to your @file{.emacs} file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1386
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1387 @lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1388 (setq TeX-parse-self t) ; Enable parse on load.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1389 (setq TeX-auto-save t) ; Enable parse on save.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1390 @end lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1391
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1392 The later command will make AUC @TeX{} store the parsed information in
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1393 an @file{auto} subdirectory in the directory each time the @TeX{} files
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1394 are stored, @pxref{Automatic Local}. If AUC @TeX{} finds the pre-parsed
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1395 information when loading a file, it will not need to reparse the buffer.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1396 The information in the @file{auto} directory is also useful for
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1397 multifile documents @pxref{Multifile}, since it allows each file to
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1398 access the parsed information from all the other files in the document.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1399 This is done by first reading the information from the master file, and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1400 then recursively the information from each file stored in the master
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1401 file.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1402
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1403 The variables can also be done on a per file basis, by changing the file
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1404 local variables.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1405
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1406 @example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1407 % Local Variables:
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1408 % TeX-parse-self: t
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1409 % TeX-auto-save: t
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1410 % End:
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1411 @end example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1412
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1413 Even when you have disabled the automatic parsing, you can force the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1414 generation of style information by pressing @kbd{C-c C-n}. This is
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1415 often the best choice, as you will be able to decide when it is
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1416 necessary to reparse the file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1417
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1418 @defopt TeX-parse-self
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1419 Parse file after loading it if no style hook is found for it.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1420 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1421
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1422 @defopt TeX-auto-save
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1423 Automatically save style information when saving the buffer.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1424 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1425
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1426 @deffn Command TeX-normal-mode @var{arg}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1427 @kindex C-c C-n
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1428 (@kbd{C-c C-n}) Remove all information about this buffer, and apply the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1429 style hooks again. Save buffer first including style information. With
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1430 optional argument, also reload the style hooks.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1431 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1432
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1433 When AUC TeX saves your buffer, it will by default convert all tabs in
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1434 your buffer into spaces. To disable this behaviour, insert the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1435 following in your @file{.emacs} file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1436
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1437 @lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1438 (setq TeX-auto-untabify nil)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1439 @end lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1440
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1441 @defopt TeX-auto-untabify
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1442 Automatically remove all tabs from a file before saving it.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1443 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1444
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1445 Instead of disabling the parsing entirely, you can also speed it
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1446 significantly up by limiting the information it will search for (and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1447 store) when parsing the buffer. You can do this by setting the default
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1448 values for the buffer local variables @code{TeX-auto-regexp-list} and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1449 @code{TeX-auto-parse-length} in your @file{.emacs} file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1450
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1451 @lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1452 ;; Only parse \documentstyle information.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1453 (setq-default TeX-auto-regexp-list 'LaTeX-auto-minimal-regexp-list)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1454 ;; The documentstyle command is usually near the beginning.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1455 (setq-default TeX-auto-parse-length 2000)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1456 @end lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1457
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1458 This example will speed the parsing up significantly, but AUC @TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1459 will no longer be able to provide completion for labels, macros,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1460 environments, or bibitems specified in the document, nor will it know
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1461 what files belong to the document.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1462
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1463 These variables can also be specified on a per file basis, by changing
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1464 the file local variables.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1465
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1466 @example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1467 % Local Variables:
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1468 % TeX-auto-regexp-list: TeX-auto-full-regexp-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1469 % TeX-auto-parse-length: 999999
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1470 % End:
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1471 @end example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1472
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1473 @defopt TeX-auto-regexp-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1474 List of regular expressions used for parsing the current file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1475 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1476
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1477 @defopt TeX-auto-parse-length
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1478 Maximal length of TeX file that will be parsed.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1479 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1480
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1481 The pre-specified lists of regexps are defined below. You can use these
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1482 before loading AUC @TeX{} by quoting them, as in the example above.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1483
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1484 @defvr Constant TeX-auto-empty-regexp-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1485 Parse nothing
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1486 @end defvr
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1487
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1488 @defvr Constant LaTeX-auto-minimal-regexp-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1489 Only parse documentstyle.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1490 @end defvr
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1491
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1492 @defvr Constant LaTeX-auto-label-regexp-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1493 Only parse La@TeX{} labels.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1494 @end defvr
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1495
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1496 @defvr Constant LaTeX-auto-regexp-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1497 Parse common La@TeX{} commands.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1498 @end defvr
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1499
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1500 @defvr Constant plain-TeX-auto-regexp-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1501 Parse common plain @TeX{} commands.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1502 @end defvr
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1503
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1504 @defvr Constant TeX-auto-full-regexp-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1505 Parse all @TeX{} and La@TeX{} commands that AUC @TeX{} can use.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1506 @end defvr
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1507
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1508 @node I18n, Automatic, Parsing Files, top
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1509 @chapter Internationalization
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1510 @cindex Internationalization
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1511 @cindex Character set
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1512 @cindex National letters
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1513
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1514 There are several problems associated with editing non-English @TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1515 with GNU Emacs. Modern versions of GNU Emacs and @TeX{} are usable for
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1516 European (Latin, Cyrillic, Greek) based languages, but special versions
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1517 of TeX and Emacs are needed for Korean, Japanese, and Chinese.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1518
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1519 @menu
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1520 * European:: Using AUC @TeX{} for European languages.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1521 * Japanese:: Japanese @TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1522 @end menu
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1523
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1524 @node European, Japanese, I18n, I18n
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1525 @section Using AUC @TeX{} for European languages.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1526 @cindex Europe
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1527 @cindex European Characters
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1528 @cindex ISO 8859 Latin 1
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1529 @cindex Latin 1
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1530 @cindex ISO 8859 Latin 2
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1531 @cindex Latin 2
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1532 @cindex ANSI
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1533 @cindex Denmark
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1534 @cindex Danish
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1535 @cindex Holland
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1536 @cindex Dutch
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1537 @cindex Germany
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1538 @cindex Poland
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1539
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1540 First you will need a way to write non-ASCII characters. You can either
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1541 use macros, or teach @TeX{} about the ISO character sets. I prefer the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1542 later, it has the advantage that the usual the standard emacs word
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1543 movement and case change commands will work.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1544
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1545
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1546 With LaTeX2e, just add @samp{\usepackage[latin1]@{inputenc@}}. With older
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1547 LaTeX versions, try:
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1548
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1549 @table @file
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1550 @item isolatin1.sty
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1551 Support for ISO 8859 Latin 1. Available by ftp from the host
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1552 @t{ftp.uni-stuttgart.de} as
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1553 @file{/pub/tex/macros/latex/contrib/misc/isolatin1.sty}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1554
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1555 @item latin2.sty
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1556 Support for ISO 8859 Latin 2. Available by ftp from the host
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1557 @t{ftp.uni-stuttgart.de} as
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1558 @file{/pub/tex/macros/latex/contrib/latin2.sty}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1559 @end table
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1560
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1561 To be able to display non-ASCII characters you will need an appropriate
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1562 font and a version of GNU Emacs capable of displaying 8-bit characters.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1563 I believe all emacs versions except plain Emacs 18 are capable of this.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1564 For GNU Emacs 19, @pxref{European Display,,,emacs, The GNU Emacs
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1565 Editor}. Other relevant packages are:
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1566
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1567 @table @file
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1568 @item remap
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1569 Supports lots of different 7-bit and 8-bit character sets for GNU Emacs
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1570 19. Mostly useful if you have seldomly used character sets, or need to
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1571 use different character set for keyboard, buffer, and display. An
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1572 overkill if you just need ISO 8859 Latin 1. Currently in alpha test,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1573 but available by ftp from the host @t{ftp.iesd.auc.dk} in
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1574 @file{/packages/auctex/}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1575
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1576 To get dead keys for @TeX{}, install remap and insert the following in
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1577 your @file{.emacs} or @file{site-start.el} file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1578
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1579 @lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1580 (require 'remap)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1581
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1582 (defvar all-dead-keys "~'`^"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1583 "Dead keys used by remap")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1584
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1585 (remap-define-map "Dead Key"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1586 (apply 'append (mapcar 'remap-dead-map all-dead-keys)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1587
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1588 (remap-define-map "TeX Dead Key"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1589 (remap-map "Dead Key" (remap-add "Ascii" "~TeX")))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1590
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1591 (setq remap-setup-alist
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1592 '(("7-bit" "Raw" "L1" "US" "Ctrl" "~TeX")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1593 ("8-bit" "Raw" "L1" "L1" "Ctrl" "Raw")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1594 ("Dead/7" "Dead Key" "L1" "US" "Ctrl" "~TeX")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1595 ("Dead/8" "Dead Key" "L1" "L1" "Ctrl" "Raw")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1596 ("TeX" "TeX Dead Key" "L1" "US" "Ctrl" "Raw")))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1597 @end lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1598
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1599 You can now enable TeX dead keys with
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1600 @example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1601 @kbd{M-x remap-setup-choose RET TeX RET}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1602 @end example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1603 @end table
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1604
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1605 A compromise is to use use an European character set when editing the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1606 file, and convert to @TeX{} macros when reading and writing the files.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1607
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1608 @table @file
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1609 @item iso-tex.el
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1610 @cindex @file{iso-tex.el}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1611 This file automatically converts between ISO 8859 Latin 1 encoding and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1612 La@TeX{} encodings of West European characters. It is available by ftp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1613 from @t{aida.intellektik.informatik.th-darmstadt.de} in the directory
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1614 @file{/pub/gene/Emacs}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1615 @item iso-cvt.el
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1616 @cindex @file{iso-cvt.el}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1617 Much like @file{iso-tex.el} but is bundled with Emacs 19.23 and later.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1618
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1619 @item x-compose.el
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1620 @cindex @file{x-compose.el}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1621 Similar package bundled with new versions of XEmacs.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1622
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1623 @end table
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1624
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1625 AUC @TeX{} supports style files for several languages. Each style file
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1626 may modify some AUC @TeX{} to better support the language, and will run
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1627 a language specific hook that will allow you to for example change
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1628 ispell dictionary, or run code to change the keyboard remapping. The
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1629 following will for example choose a Danish dictionary for documents
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1630 including the @file{dk.sty} file. This requires parsing to be enabled,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1631 @pxref{Parsing Files}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1632
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1633 @lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1634 (add-hook 'TeX-language-dk-hook
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1635 (function (lambda () (ispell-change-dictionary "danish"))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1636 @end lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1637
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1638 The following style files are recognized.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1639 @table @file
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1640 @item dk
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1641 Runs style hook @code{TeX-language-dk-hook}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1642
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1643 @item dutch
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1644 Runs style hook @code{TeX-language-nl-hook}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1645
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1646 @item german
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1647 Runs style hook @code{TeX-language-de-hook}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1648 Gives @samp{"} word syntax and makes the @key{"} key insert a literal
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1649 @samp{"}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1650
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1651 @item plfonts
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1652 @itemx plhb
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1653 Runs style hook @code{TeX-language-pl-hook}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1654 Gives @samp{"} word syntax and makes the @key{"} key insert a literal
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1655 @samp{"}. Pressing @key{"} twice will insert @samp{"<} or @samp{">}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1656 depending on context.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1657 @end table
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1658
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1659 @node Japanese, , European, I18n
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1660 @section Japanese @TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1661 @cindex Japan
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1662 @cindex Japanese
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1663 @cindex Nippon
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1664 @cindex NEMACS
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1665 @cindex MULE
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1666 @cindex j@TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1667 @cindex jLa@TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1668
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1669 To write Japanese text with AUC @TeX{} you need to have versions of
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1670 @TeX{} and Emacs that support Japanese. There exist at least two
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1671 variants of @TeX{} for Japanese text, and AUC @TeX{} can be used with
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1672 both, as well as with the two Japanese-aware Emacses, NEMACS and MULE.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1673
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1674 To use the Japanese TeX variants, simply enter @code{japanese-tex-mode},
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1675 @code{japanese-latex-mode}, or @code{japanese-slitex-mode}, and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1676 everything should work. If not, send mail to Shinji Kobayashi
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1677 (@samp{<koba@@flab.fujitsu.co.jp>}, who kindly donated the code for
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1678 supporting Japanese in AUC @TeX{}. None of the primary AUC @TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1679 maintainers understand Japanese, so they can not help you.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1680
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1681 @node Automatic, Style Files, I18n, top
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1682 @chapter Automatic Customization
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1683 @cindex Automatic Customization
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1684 @cindex Extracting @TeX{} symbols
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1685 @cindex Automatic
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1686 @cindex @file{auto} directories.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1687 @cindex Parsing @TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1688 @cindex @TeX{} parsing
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1689 @cindex Generating symbols
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1690
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1691 Since AUC @TeX{} is so highly customizable, it makes sense that it is able
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1692 to customize itself. The automatic customization consists of scanning
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1693 @TeX{} files and extracting symbols, environments, and things like that.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1694
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1695 The automatic customization is done on three different levels. The
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1696 global level is the level shared by all users at your site, and consists
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1697 of scanning the standard @TeX{} style files, and any extra styles added
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1698 locally for all users on the site. The private level deals with those
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1699 style files you have written for your own use, and use in different
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1700 documents. You may have a @file{~/lib/TeX/} directory where you store
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1701 useful style files for your own use. The local level is for a specific
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1702 directory, and deals with writing customization for the files for your
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1703 normal @TeX{} documents.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1704
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1705 If compared with the environment variable @code{TEXINPUTS}, the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1706 global level corresponds to the directories built into @TeX{}. The
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1707 private level corresponds to the directories you add yourself, except for
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1708 @file{.}, which is the local level.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1709
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1710 @menu
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1711 * Automatic Global:: Automatic Customization for the Site
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1712 * Automatic Private:: Automatic Customization for a User
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1713 * Automatic Local:: Automatic Customization for a Directory
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1714 @end menu
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1715
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1716 By default AUC @TeX{} will search for customization files in all the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1717 global, private, and local style directories, but you can also set the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1718 path directly. This is useful if you for example want to add another
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1719 person's style hooks to your path. Please note that all matching files
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1720 found in @code{TeX-style-path} are loaded, and all hooks defined in the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1721 files will be executed.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1722
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1723 @defopt TeX-style-path
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1724 List of directories to search for AUC @TeX{} style files.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1725 Each must end with a slash.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1726 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1727
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1728 By default, when AUC @TeX{} searches a directory for files, it will
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1729 recursively search through subdirectories.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1730
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1731 @defopt TeX-file-recurse
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1732 If not nil, search @TeX{} directories recursively.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1733 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1734
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1735 By default, AUC @TeX{} will ignore files name @file{.}, @file{..},
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1736 @file{SCCS}, @file{RCS}, and @file{CVS}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1737
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1738 @defopt TeX-ignore-file
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1739 Regular expression matching file names to ignore.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1740
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1741 These files or directories will not be considered when searching for
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1742 @TeX{} files in a directory.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1743 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1744
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1745 @node Automatic Global, Automatic Private, Automatic, Automatic
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1746 @section Automatic Customization for the Site
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1747 @cindex Global style hook directory
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1748 @cindex Global macro directory
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1749 @cindex Site macro directory
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1750 @cindex Global @TeX{} macro directory
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1751 @cindex Site @TeX{} macro directory
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1752 @cindex Global directories
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1753 @cindex Site information
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1754
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1755 Assuming that the automatic customization at the global level was done
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1756 when AUC @TeX{} was installed, your choice is now: will you use it? If
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1757 you use it, you will benefit by having access to all the symbols and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1758 environments available for completion purposes. The drawback is slower
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1759 load time when you edit a new file and perhaps too many confusing
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1760 symbols when you try to do a completion.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1761
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1762 You can disable the automatic generated global style hooks by setting
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1763 the variable @code{TeX-auto-global} to nil.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1764
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1765 @defopt TeX-macro-global
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1766 Directories containing the site's @TeX{} style files.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1767 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1768
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1769 @defopt TeX-style-global
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1770 Directory containing hand generated @TeX{} information.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1771 Must end with a slash.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1772
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1773 These correspond to @TeX{} macros shared by all users of a site.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1774 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1775
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1776 @defopt TeX-auto-global
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1777 Directory containing automatically generated information.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1778
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1779 For storing automatic extracted information about the @TeX{} macros
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1780 shared by all users of a site.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1781 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1782
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1783 @node Automatic Private, Automatic Local, Automatic Global, Automatic
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1784 @section Automatic Customization for a User
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1785 @cindex Private style hook directory
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1786 @cindex Private macro directory
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1787 @cindex Personal macro directory
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1788 @cindex Private @TeX{} macro directory
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1789 @cindex Personal @TeX{} macro directory
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1790 @cindex Private directories
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1791 @cindex Personal information
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1792
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1793 You should specify where you store your private @TeX{} macros, so AUC
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1794 @TeX{} can extract their information. The extracted information will go
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1795 to the directories listed in @code{TeX-auto-private}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1796
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1797 Use @kbd{M-x TeX-auto-generate} to extract the information.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1798
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1799 @defopt TeX-macro-private
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1800 Directories where you store your personal @TeX{} macros.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1801 Each must end with a slash.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1802
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1803 This defaults to the directories listed in the @samp{TEXINPUTS} and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1804 @samp{BIBINPUTS} environment variables.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1805 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1806
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1807 @defopt TeX-auto-private
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1808 List of directories containing automatically generated information.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1809 Must end with a slash.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1810
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1811 These correspond to the personal @TeX{} macros.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1812 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1813
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1814 @deffn Command TeX-auto-generate @var{TEX} @var{AUTO}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1815 (@kbd{M-x TeX-auto-generate}) Generate style hook for @var{TEX} and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1816 store it in @var{AUTO}. If @var{TEX} is a directory, generate style
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1817 hooks for all files in the directory.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1818 @end deffn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1819
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1820 @defopt TeX-style-private
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1821 List of directories containing hand generated information.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1822 Must end with a slash.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1823
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1824 These correspond to the personal @TeX{} macros.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1825 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1826
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1827 @node Automatic Local, , Automatic Private, Automatic
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1828 @section Automatic Customization for a Directory
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1829 @cindex Local style hooks
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1830 @cindex Updating style hooks
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1831 @cindex Automatic updating style hooks
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1832 @cindex Local style hooks
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1833 @cindex Local style directory
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1834
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1835 AUC @TeX{} can update the style information about a file each time you
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1836 save it, and it will do this if the directory @code{TeX-auto-local}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1837 exist. @code{TeX-auto-local} is by default set to @samp{"auto/"}, so
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1838 simply creating an @file{auto} directory will enable automatic saving of
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1839 style information.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1840
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1841 The advantage of doing this is that macros, labels, etc. defined in any
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1842 file in a multifile document will be known in all the files in the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1843 document. The disadvantage is that saving will be slower. To disable,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1844 set @code{TeX-auto-local} to nil.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1845
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1846 @defopt TeX-style-local
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1847 Directory containing hand generated @TeX{} information.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1848 Must end with a slash.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1849
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1850 These correspond to @TeX{} macros found in the current directory.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1851 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1852
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1853 @defopt TeX-auto-local
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1854 Directory containing automatically generated @TeX{} information.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1855 Must end with a slash.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1856
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1857 These correspond to @TeX{} macros found in the current directory.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1858 @end defopt
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1859
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1860 @node Style Files, Installation, Automatic, top
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1861 @chapter Writing Your own Style Support
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1862 @cindex Style files
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1863 @cindex Style hooks
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1864 @cindex @file{style}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1865
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1866 @xref{Automatic} for a discussion about automatically generated global,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1867 private, and local style files. The hand generated style files are
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1868 equivalent, except that they by default are found in @file{style}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1869 directories instead of @file{auto} directories.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1870
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1871 @menu
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1872 * Simple Style:: A Simple Style File
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1873 * Adding Macros:: Adding Support for Macros
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1874 * Adding Environments:: Adding Support for Environments
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1875 * Adding Other:: Adding Other Information
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1876 * Hacking the Parser:: Automatic Extraction of New Things
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1877 @end menu
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1878
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1879 If you write some useful support for a public @TeX{} style file, please
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1880 send it to us.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1881
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1882 @node Simple Style, Adding Macros, Style Files, Style Files
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1883 @section A Simple Style File
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1884 @cindex @file{book.el}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1885 @cindex Sample style file
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1886 @cindex Style file
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1887 @cindex Example of a style file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1888 @cindex Style hook
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1889 @cindex Adding a style hook
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1890
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1891 Here is a simple example of a style file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1892
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1893 @lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1894 ;;; book.el - Special code for book style.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1895
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1896 (TeX-add-style-hook "book"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1897 (function (lambda () (setq LaTeX-largest-level
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1898 (LaTeX-section-level ("chapter"))))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1899
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1900 @end lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1901
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1902 This file specifies that the largest kind of section in a LaTeX document
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1903 using the book document style is chapter. The interesting thing to
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1904 notice is that the style file defines an (anonymous) function, and adds it
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1905 to the list of loaded style hooks by calling @code{TeX-add-style-hook}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1906
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1907 The first time the user indirectly tries to access some style specific
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1908 information, such as the largest sectioning command available, the style
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1909 hooks for all files directly or indirectly read by the current document
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1910 is executed. The actual files will only be evaluated once, but the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1911 hooks will be called for each buffer using the style file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1912
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1913 @defun TeX-add-style-hook @var{style} @var{hook}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1914 Add @var{hook} to the list of functions to run when we use the @TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1915 file @var{style}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1916 @end defun
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1917
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1918 @node Adding Macros, Adding Environments, Simple Style, Style Files
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1919 @section Adding Support for Macros
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1920 @cindex Adding macros
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1921 @cindex Macros, adding
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1922 @cindex Defining macros in style hooks
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1923
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1924 The most common thing to define in a style hook is new symbols (@TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1925 macros). Most likely along with a description of the arguments to the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1926 function, since the symbol itself can be defined automatically.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1927
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1928 Here are a few examples from @file{latex.el}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1929
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1930 @lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1931 (TeX-add-style-hook "latex"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1932 (function
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1933 (lambda ()
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1934 (TeX-add-symbols
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1935 '("arabic" TeX-arg-counter)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1936 '("label" TeX-arg-define-label)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1937 '("ref" TeX-arg-label)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1938 '("newcommand" TeX-arg-define-macro [ "Number of arguments" ] t)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1939 '("newtheorem" TeX-arg-define-environment
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1940 [ TeX-arg-environment "Numbered like" ]
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1941 t [ TeX-arg-counter "Within counter" ])))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1942 @end lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1943
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1944 @defun TeX-add-symbols @var{symbol} @dots{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1945 Add each @var{symbol} to the list of known symbols.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1946 @end defun
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1947
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1948 Each argument to @code{TeX-add-symbols} is a list describing one symbol.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1949 The head of the list is the name of the symbol, the remaining elements
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1950 describe each argument.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1951
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1952 If there are no additional elements, the symbol will be inserted with
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1953 point inside braces. Otherwise, each argument of this function should
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1954 match an argument of the @TeX{} macro. What is done depends on the argument
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1955 type.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1956
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1957 If a macro is defined multiple times, AUC @TeX{} will chose the one with
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1958 the longest definition (i.e. the one with the most arguments).
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1959
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1960 Thus, to overwrite
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1961 @example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1962 '("tref" 1) ; one argument
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1963 @end example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1964 you can specify
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1965 @example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1966 '("tref" TeX-arg-label ignore) ; two arguments
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1967 @end example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1968
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1969 @code{ignore} is a function that does not do anything, so when you
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1970 insert a @samp{tref} you will be prompted for a label and no more.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1971
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1972 @table @code
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1973 @item string
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1974 Use the string as a prompt to prompt for the argument.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1975
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1976 @item number
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1977 Insert that many braces, leave point inside the first.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1978
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1979 @item nil
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1980 Insert empty braces.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1981
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1982 @item t
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1983 Insert empty braces, leave point between the braces.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1984
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1985 @item other symbols
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1986 Call the symbol as a function. You can define your
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1987 own hook, or use one of the predefined argument hooks.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1988
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1989 @item list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1990 If the car is a string, insert it as a prompt and the next
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1991 element as initial input. Otherwise, call the car of the list with
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1992 the remaining elements as arguments.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1993
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1994 @item vector
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1995 Optional argument. If it has more than one element, parse it
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1996 as a list, otherwise parse the only element as above. Use square
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1997 brackets instead of curly braces, and is not inserted on empty user
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1998 input.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1999 @end table
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2000
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2001 A lot of argument hooks have already been defined. The first argument to
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2002 all hooks is a flag indicating if it is an optional argument. It is up
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2003 to the hook to determine what to do with the remaining arguments, if
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2004 any. Typically the next argument is used to overwrite the default
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2005 prompt.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2006
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2007 @ftable @code
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2008 @item TeX-arg-conditional
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2009 Implements if EXPR THEN ELSE. If EXPR evaluates to true, parse THEN as an
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2010 argument list, else parse ELSE as an argument list.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2011
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2012 @item TeX-arg-literal
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2013 Insert its arguments into the buffer. Used for specifying extra syntax
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2014 for a macro.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2015
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2016 @item TeX-arg-free
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2017 Parse its arguments but use no braces when they are inserted.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2018
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2019 @item TeX-arg-eval
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2020 Evaluate arguments and insert the result in the buffer.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2021
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2022 @item TeX-arg-file
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2023 Prompt for a tex or sty filename, and use it without the extension. Run
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2024 the file hooks defined for it.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2025
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2026 @item TeX-arg-label
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2027 Prompt for a label completing with known labels.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2028
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2029 @item TeX-arg-macro
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2030 Prompt for a @TeX{} macro with completion.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2031
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2032 @item TeX-arg-environment
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2033 Prompt for a La@TeX{} environment with completion.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2034
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2035 @item TeX-arg-cite
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2036 Prompt for a Bib@TeX{} citation.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2037
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2038 @item TeX-arg-counter
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2039 Prompt for a La@TeX{} counter.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2040
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2041 @item TeX-arg-savebox
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2042 Prompt for a La@TeX{} savebox.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2043
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2044 @item TeX-arg-file
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2045 Prompt for a filename in the current directory, and use it without the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2046 extension.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2047
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2048 @item TeX-arg-input-file
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2049 Prompt for a filename in the current directory, and use it without the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2050 extension. Run the style hooks for the file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2051
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2052 @item TeX-arg-define-label
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2053 Prompt for a label completing with known labels. Add label to list of
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2054 defined labels.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2055
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2056 @item TeX-arg-define-macro
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2057 Prompt for a @TeX{} macro with completion. Add macro to list of defined
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2058 macros.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2059
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2060 @item TeX-arg-define-environment
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2061 Prompt for a La@TeX{} environment with completion. Add environment to
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2062 list of defined environments.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2063
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2064 @item TeX-arg-define-cite
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2065 Prompt for a Bib@TeX{} citation.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2066
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2067 @item TeX-arg-define-counter
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2068 Prompt for a La@TeX{} counter.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2069
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2070 @item TeX-arg-define-savebox
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2071 Prompt for a La@TeX{} savebox.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2072
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2073 @item TeX-arg-corner
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2074 Prompt for a La@TeX{} side or corner position with completion.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2075
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2076 @item TeX-arg-lr
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2077 Prompt for a La@TeX{} side with completion.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2078
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2079 @item TeX-arg-tb
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2080 Prompt for a La@TeX{} side with completion.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2081
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2082 @item TeX-arg-pagestyle
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2083 Prompt for a La@TeX{} pagestyle with completion.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2084
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2085 @item TeX-arg-verb
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2086 Prompt for delimiter and text.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2087
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2088 @item TeX-arg-pair
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2089 Insert a pair of numbers, use arguments for prompt. The numbers are
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2090 surrounded by parentheses and separated with a comma.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2091
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2092 @item TeX-arg-size
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2093 Insert width and height as a pair. No arguments.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2094
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2095 @item TeX-arg-coordinate
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2096 Insert x and y coordinates as a pair. No arguments.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2097 @end ftable
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2098
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2099 If you add new hooks, you can assume that point is placed directly after
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2100 the previous argument, or after the macro name if this is the first
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2101 argument. Please leave point located after the argument you are
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2102 inserting. If you want point to be located somewhere else after all
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2103 hooks have been processed, set the value of @code{exit-mark}. It will
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2104 point nowhere, until the argument hook sets it.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2105
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2106 @node Adding Environments, Adding Other, Adding Macros, Style Files
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2107 @section Adding Support for Environments
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2108 @cindex Adding environments
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2109 @cindex Environments, adding
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2110 @cindex Defining environments in style hooks
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2111
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2112 Adding support for environments is very much like adding support for
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2113 @TeX{} macros, except that each environment normally only takes one
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2114 argument, an environment hook. The example is again a short version of
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2115 @file{latex.el}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2116
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2117 @lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2118 (TeX-add-style-hook "latex"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2119 (function
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2120 (lambda ()
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2121 (LaTeX-add-environments
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2122 '("document" LaTeX-env-document)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2123 '("enumerate" LaTeX-env-item)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2124 '("itemize" LaTeX-env-item)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2125 '("list" LaTeX-env-list)))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2126 @end lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2127
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2128 @findex LaTeX-env-item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2129 The only hook that is generally useful is @code{LaTeX-env-item}, which is
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2130 used for environments that contain items. It is completely up to the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2131 environment hook to insert the environment, but the function
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2132 @code{LaTeX-insert-environment} may be of some help. The hook will be
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2133 called with the name of the environment as its first argument, and extra
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2134 arguments can be provided by adding them to a list after the hook.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2135
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2136 For simple environments with arguments, for example defined with
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2137 @samp{\newenvironment}, you can make AUC @TeX{} prompt for the arguments
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2138 by giving the prompt strings in the call to
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2139 @code{LaTeX-add-environments}. For example, if you have defined a
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2140 @code{loop} environment with the three arguments @var{from}, @var{to},
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2141 and @var{step}, you can add support for them in a style file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2142
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2143 @example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2144 %% loop.sty
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2145
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2146 \newenvironment@{loop@}[3]@{...@}@{...@}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2147 @end example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2148
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2149 @lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2150 ;; loop.el
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2151
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2152 (TeX-add-style-hook "loop"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2153 (function
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2154 (lambda ()
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2155 (LaTeX-add-environments
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2156 '("loop" "From" "To" "Step")))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2157 @end lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2158
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2159 If an environment is defined multiple times, AUC @TeX{} will chose the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2160 one with the longest definition. Thus, if you have an enumerate style
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2161 file, and want it to replace the standard La@TeX{} enumerate hook above,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2162 you could define an @file{enumerate.el} file as follows, and place it in
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2163 the appropriate style directory.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2164
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2165 @lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2166 (TeX-add-style-hook "latex"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2167 (function
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2168 (lambda ()
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2169 (LaTeX-add-environments
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2170 '("enumerate" LaTeX-env-enumerate foo)))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2171
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2172 (defun LaTeX-env-enumerate (environment &optional ignore) ...)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2173 @end lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2174
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2175 The symbol @code{foo} will be passed to @code{LaTeX-env-enumerate} as
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2176 the second argument, but since we only added it to overwrite the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2177 definition in @file{latex.el} it is just ignored.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2178
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2179 @defun LaTeX-add-environments @var{env} @dots{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2180 Add each @var{env} to list of loaded environments.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2181 @end defun
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2182
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2183 @defun LaTeX-insert-environment @var{env} [ @var{extra} ]
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2184 Insert environment of type @var{env}, with optional argument @var{extra}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2185 @end defun
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2186
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2187 @node Adding Other, Hacking the Parser, Adding Environments, Style Files
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2188 @section Adding Other Information
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2189 @cindex Adding bibliographies
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2190 @cindex Bibliographies, adding
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2191 @cindex Defining bibliographies in style hooks
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2192 @cindex Adding labels
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2193 @cindex Labels, adding
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2194 @cindex Defining labels in style hooks
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2195 @cindex Adding other information
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2196 @cindex Other information, adding
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2197 @cindex Defining other information in style hooks
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2198
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2199 You can also specify bibliographical databases and labels in the style
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2200 file. This is probably of little use, since this information will
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2201 usually be automatically generated from the @TeX{} file anyway.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2202
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2203 @defun LaTeX-add-bibliographies @var{bibliography} @dots{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2204 Add each @var{bibliography} to list of loaded bibliographies.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2205 @end defun
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2206
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2207 @defun LaTeX-add-labels @var{label} @dots{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2208 Add each @var{label} to the list of known labels.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2209 @end defun
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2210
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2211 @node Hacking the Parser, , Adding Other, Style Files
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2212 @section Automatic Extraction of New Things
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2213 @cindex Parsing new macros
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2214 @cindex @file{macro.tex}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2215 @cindex @file{macro.el}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2216 @cindex Changing the parser
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2217
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2218 The automatic @TeX{} information extractor works by searching for
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2219 regular expressions in the @TeX{} files, and storing the matched
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2220 information. You can add support for new constructs to the parser,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2221 something that is needed when you add new commands to define symbols.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2222
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2223 For example, in the file @file{macro.tex} I define the following macro.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2224
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2225 @example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2226 \newcommand@{\newmacro@}[5]@{%
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2227 \def#1@{#3\index@{#4@@#5~cite@{#4@}@}\nocite@{#4@}@}%
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2228 \def#2@{#5\index@{#4@@#5~cite@{#4@}@}\nocite@{#4@}@}%
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2229 @}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2230 @end example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2231
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2232 AUC @TeX{} will automatically figure out that @samp{newmacro} is a macro
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2233 that takes five arguments. However, it is not smart enough to
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2234 automatically see that each time we use the macro, two new macros are
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2235 defined. We can specify this information in a style hook file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2236
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2237 @lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2238 ;;; macro.el - Special code for my own macro file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2239
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2240 ;;; Code:
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2241
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2242 (defvar TeX-newmacro-regexp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2243 '("\\\\newmacro@{\\\\\\([a-zA-Z]+\\)@}@{\\\\\\([a-zA-Z]+\\)@}"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2244 (1 2) TeX-auto-multi)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2245 "Matches \newmacro definitions.")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2246
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2247 (defvar TeX-auto-multi nil
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2248 "Temporary for parsing \\newmacro definitions.")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2249
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2250 (defun TeX-macro-cleanup ()
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2251 ;; Move symbols from `TeX-auto-multi' to `TeX-auto-symbol'.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2252 (mapcar (function (lambda (list)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2253 (mapcar (function (lambda (symbol)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2254 (setq TeX-auto-symbol
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2255 (cons symbol TeX-auto-symbol))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2256 list)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2257 TeX-auto-multi))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2258
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2259 (defun TeX-macro-prepare ()
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2260 ;; Clear `Tex-auto-multi' before use.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2261 (setq TeX-auto-multi nil))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2262
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2263 (add-hook 'TeX-auto-prepare-hook 'TeX-macro-prepare)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2264 (add-hook 'TeX-auto-cleanup-hook 'TeX-macro-cleanup)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2265
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2266 (TeX-add-style-hook "macro"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2267 (function
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2268 (lambda ()
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2269 (TeX-auto-add-regexp TeX-newmacro-regexp)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2270 (TeX-add-symbols '("newmacro"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2271 TeX-arg-macro
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2272 (TeX-arg-macro "Capitalized macro: \\")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2273 t
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2274 "BibTeX entry: "
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2275 nil)))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2276
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2277 ;;; macro.el ends here
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2278 @end lisp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2279
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2280 When this file is first loaded, it adds a new entry to
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2281 @code{TeX-newmacro-regexp}, and defines a function to be called before
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2282 the parsing starts, and one to be called after the parsing is done. It
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2283 also declares a variable to contain the data collected during parsing.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2284 Finally, it adds a style hook which describes the @samp{newmacro} macro,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2285 as we have seen it before.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2286
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2287 So the general strategy is: Add a new entry to @code{TeX-newmacro-regexp}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2288 Declare a variable to contain intermediate data during parsing. Add hook
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2289 to be called before and after parsing. In this case, the hook before
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2290 parsing just initializes the variable, and the hook after parsing
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2291 collects the data from the variable, and adds them to the list of symbols
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2292 found.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2293
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2294 @defvar TeX-auto-regexp-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2295 List of regular expressions matching @TeX{} macro definitions.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2296
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2297 The list has the following format ((REGEXP MATCH TABLE) @dots{}), that
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2298 is, each entry is a list with three elements.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2299
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2300 REGEXP. Regular expression matching the macro we want to parse.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2301
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2302 MATCH. A number or list of numbers, each representing one
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2303 parenthesized subexpression matched by REGEXP.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2304
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2305 TABLE. The symbol table to store the data. This can be a function, in
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2306 which case the function is called with the argument MATCH. Use
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2307 @code{TeX-match-buffer} to get match data. If it is not a function, it
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2308 is presumed to be the name of a variable containing a list of match
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2309 data. The matched data (a string if MATCH is a number, a list of
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2310 strings if MATCH is a list of numbers) is put in front of the table.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2311 @end defvar
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2312
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2313 @defvar TeX-auto-prepare-hook nil
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2314 List of functions to be called before parsing a @TeX{} file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2315 @end defvar
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2316
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2317 @defvar TeX-auto-cleanup-hook nil
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2318 List of functions to be called after parsing a @TeX{} file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2319 @end defvar
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2320
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2321 @node Installation, History, Style Files, top
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2322 @include install.texi
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2323
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2324 @node History, Projects, Installation, top
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2325 @comment node-name, next, previous, up
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2326 @appendix The History of AUC @TeX{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2327
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2328 See the file @file{history.texi} for older changes.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2329
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2330 @include changes.texi
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2331
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2332 @node Projects, Credit, History, top
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2333 @comment node-name, next, previous, up
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2334 @appendix Wishlist
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2335
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2336 This is a list of projects for AUC @TeX{}. Bug reports and requests we
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2337 can not fix or honor right away will be added to this list. If you have
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2338 some time for emacs lisp hacking, you are encouraged to try to provide a
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2339 solution to one of the following problems. It might be a good idea to
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2340 mail me first, though.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2341
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2342 @itemize @bullet
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2343 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2344
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2345 Filling messes up comments, but only at the end of the file. Reported
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2346 by uergen Reiss <psy3022@@rzbox.uni-wuerzburg.de>.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2347 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2348 @kbd{C-c C-q C-e} doesn't work properly on nested itemize environments.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2349 Reported by "Robert B. Love" <rlove@@raptor.rmNUG.ORG>.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2350
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2351 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2352 One suggestion for AUC-TeX: I think that the font command C-c C-f C-r,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2353 which produces \textrm@{@} in a LaTeX file, should instead produce
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2354 either \textrm@{@} or \mathrm@{@}, depending on whether one is in math
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2355 mode or not. --- John Palmieri <palmieri@@math.mit.edu>
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2356
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2357 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2358 A way to add and overwrite math mode entries in style files, and to
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2359 decide where they should be. Suggested by Remo Badii <Remo.Badii@@psi.ch>.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2360
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2361 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2362 Create template for (first) line of tabular environment.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2363
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2364 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2365 I think prompting for the master is the intended behaviour. It
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2366 corresponds to a `shared' value for TeX-master.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2367
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2368 There should probably be a `none' value which wouldn't query for the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2369 master, but instead disable all features that relies on TeX-master.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2370
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2371 This default value for TeX-master could then be controled with mapping
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2372 based on the extension.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2373
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2374 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2375 @kbd{C-c '} should alway stay in the current window, also when it find a
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2376 new file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2377
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2378 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2379 @code{LaTeX-fill-environment} does not indent the closing @samp{\end}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2380
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2381 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2382 Rewrite @file{ltx-help.el} and put it in @file{latex.el}. Fix also:
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2383 @example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2384 From: Denby Wong <DnB@@slip224.qlink.QueensU.CA>
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2385
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2386 1) change documentation regarding where to get the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2387 latest version (at CTAN at pip.shsu.edu for me)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2388 under info/latex2e-help-texinfo/
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2389
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2390 2) change or provide choice over which version to
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2391 use. There are three references to the info
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2392 node "(latex)" in the file which should be
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2393 "(latex2e)" for the new file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2394
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2395 From: Piet van Oostrum <piet@@cs.ruu.nl>
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2396
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2397 One of the annoying things of latex-help is that if you ask for \LARGE, you
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2398 get \large if you have case-fold-search=t. This is really info's problem as
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2399 it doesn't reset it for a search of the node, but it would be easy to stick
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2400 a (let (case-fold-search) in latex-help.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2401 @end example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2402
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2403 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2404 It should be possible to insert a default preamble containing
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2405 e.g. @code{usepackage} declarations, perhaps depending on the document
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2406 class.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2407
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2408 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2409 Multiple argument completion for @samp{\bibliography}. In general, I
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2410 ought to make @kbd{,} special for these kind of completions.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2411
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2412 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2413 Do not overwrite emacs warnings about existing auto-save files when
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2414 loading a new file.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2415
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2416 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2417 Suggest @samp{makindex} when appropriate.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2418
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2419 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2420 Maybe the regexp for matching a TeX symbol during parsing should be
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2421 @samp{"\\\\\\([a-zA-Z]+\\|.\\)"} ---
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2422 @samp{<thiemann@@informatik.uni-tuebingen.de>} Peter Thiemann.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2423
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2424 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2425 AUC TeX should be able to parse La@TeX{}2e @file{.cls} files. Here are
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2426 the regexps by @samp{<thiemann@@informatik.uni-tuebingen.de>} Peter
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2427 Thiemann.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2428
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2429 @example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2430 ("\\\\DeclareRobustCommand@{?\\\\\\([a-zA-Z]+\\)@}?\\[\\([0-9]+\\)\\]\
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2431 \\[\\([^\]\\\\\n\r]+\\)\\]"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2432 (1 2 3) LaTeX-auto-optional)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2433 ("\\\\DeclareRobustCommand@{?\\\\\\([a-zA-Z]+\\)@}?\\[\\([0-9]+\\)\\]"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2434 (1 2) LaTeX-auto-arguments)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2435 ("\\\\DeclareRobustCommand@{?\\\\\\([a-zA-Z]+\\)@}?" 1 TeX-auto-symbol)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2436 ("\\\\DeclareFixedFont@{?\\\\\\([a-zA-Z]+\\)@}?"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2437 1 TeX-auto-symbol)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2438 ("\\\\Declare\\(Text\\|Old\\)FontCommand@{?\\\\\\([a-zA-Z]+\\)@}?"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2439 2 TeX-auto-symbol)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2440 ("\\\\DeclareMath\\(Symbol\\|Delimiter\\|Accent\\|Radical\\)@{?\\\\\\([a-zA-Z]+\\)@}?"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2441 2 TeX-auto-symbol)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2442 ;;; it is also valid to declare just a single symbol, e.g. <,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2443 ;;; with \DeclareMathSymbol but it is not necessary to register that here
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2444 ("\\\\DeclareText\\(Command\\|Symbol\\|Accent\\|Composite\\)@{?\\\\\\([a-zA-Z]+\\)@}?"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2445 2 TeX-auto-symbol)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2446 @end example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2447
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2448 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2449 Use index files (when available) to speed up @kbd{C-c C-m include
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2450 @key{RET}}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2451
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2452 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2453 Option not to calculate very slow completions like for
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2454 @kbd{C-c C-m include @key{RET}}.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2455
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2456 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2457 AUC @TeX{} should not parse verbatim environments.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2458
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2459 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2460 Font menu should be created from @code{TeX-font-list}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2461
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2462 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2463 Installation procedure written purely in emacs lisp.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2464
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2465 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2466 Format La@TeX{} comment blocks.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2467
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2468 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2469 Included PostScript files should also be counted as part of the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2470 document.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2471
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2472 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2473 The argument to @samp{\verb} may be broken when filling if it contains a
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2474 space. This should be fixed or documented. Suggested by several
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2475 people.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2476
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2477 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2478 The parser should catch warnings about undefined crossreferences.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2479 Suggested by Richard Hirsch @samp{i3080501@@ws.rz.tu-bs.de}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2480
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2481 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2482 A nice hierarchical by-topic organization of all officially documented
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2483 LaTeX macros, available from the menu bar.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2484
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2485 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2486 Make @samp{`} check for math context in @code{LaTeX-math-mode}. and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2487 simply self insert if not in a math context.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2488
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2489 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2490 Make @code{TeX-insert-dollar} more robust. Currently it can be fooled
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2491 by @samp{\mbox}'es and escaped double dollar for example.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2492
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2493 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2494 La@TeX{} formatting should skip @code{verbatim} environments.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2495
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2496 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2497 @code{TeX-command-default} should be set from the master file, if not
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2498 set locally. Suggested by Peter Whaite @samp{<peta@@cim.mcgill.ca>}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2499
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2500 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2501 Make AUC @TeX{} work with @samp{crypt++}. Suggested by Chris Moore
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2502 @samp{<Chris.Moore@@src.bae.co.uk>}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2503
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2504 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2505 Fix bug with @code{TeX-show-environment} from hidden document
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2506 environment.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2507
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2508 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2509 Function to check if you are in math mode (between two dollar signs).
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2510 Suggested by Jan Erik Odegard @samp{<odegard@@dsp.rice.edu>}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2511
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2512 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2513 The @samp{Spell} command should apply to all files in a document. Maybe
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2514 it could try to restrict to files that have been modified since last
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2515 spell check? Suggested by Ravinder Bhumbla @samp{<rbhumbla@@ucsd.edu>}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2516
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2517 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2518 Make @key{.} check for abbreviations and sentences ending with capital
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2519 letters.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2520
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2521 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2522 Use Emacs 19 minibuffer history to choose between previewers, and other
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2523 stuff. Suggested by John Interrante
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2524 @samp{<interran@@uluru.Stanford.EDU>}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2525
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2526 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2527 Make features.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2528
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2529 A new command @code{TeX-update} (@kbd{C-c C-u}) could be used to create
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2530 an up-to-date dvi file by repeatedly running Bib@TeX{}, MakeIndex and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2531 (La)@TeX{}, until an error occurs or we are done.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2532
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2533 An alternative is to have an @samp{Update} command that ensures the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2534 @samp{dvi} file is up to date. This could be called before printing and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2535 previewing.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2536
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2537 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2538 Documentation of variables that can be set in a style hook.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2539
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2540 We need a list of what can safely be done in an ordinary style hook.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2541 You can not set a variable that AUC TeX depends on, unless AUC TeX knows
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2542 that it has to run the style hooks first.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2543
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2544 Here is the start of such a list.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2545 @table @code
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2546
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2547 @item LaTeX-add-environments
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2548
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2549 @item TeX-add-symbols
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2550
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2551 @item LaTeX-add-labels
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2552
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2553 @item LaTeX-add-bibliographies
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2554
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2555 @item LaTeX-largest-level
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2556
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2557 @end table
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2558
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2559 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2560 Correct indentation for tabular, tabbing, table, math, and array
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2561 environments.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2562
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2563 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2564 Optional special indentation after an @samp{\item}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2565
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2566 @example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2567 \begin@{itemize@}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2568 \item blabalaskdfjlas lajf adf
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2569 lkfjl af jasl lkf jlsdf jlf
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2570 \item f lk jldjf lajflkas flf af
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2571 \end@{itemize@}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2572 @end example
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2573
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2574 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2575 Completion for counters and sboxes.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2576
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2577 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2578 Outline should be (better) supported in @TeX{} mode.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2579
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2580 At least, support headers, trailers, as well as TeX-outline-extra.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2581
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2582 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2583 @code{TeX-header-start} and @code{TeX-trailer-end}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2584
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2585 We might want these, just for fun (and outlines)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2586
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2587 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2588 Plain @TeX{} and La@TeX{} specific header and trailer expressions.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2589
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2590 We should have a way to globally specify the default value of the header
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2591 and trailer regexps.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2592
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2593 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2594 Add support for original @code{TeX-mode} keybindings.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2595
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2596 A third initialization file (@file{tex-mode.el}) containing an emulator
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2597 of the standard @code{TeX-mode} would help convince some people to
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2598 change to AUC @TeX{}.@refill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2599
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2600 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2601 Make @code{TeX-next-error} parse ahead and store the results in a list,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2602 using markers to remember buffer positions in order to be more robust
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2603 with regard to line numbers and changed files. This is what
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2604 @code{next-error} does. (Or did, until Emacs 19).
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2605
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2606 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2607 When @code{LaTeX-environment} is given an argument, change the current
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2608 environment. Be smart about @samp{\item[]} versus @samp{\item } and
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2609 labels like @samp{fig:} versus @samp{tab:}.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2610
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2611 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2612 Check out if lightning completion from Ultra @TeX{} is anything for us.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2613
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2614 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2615 Finish the @TeX{}info mode. For one thing, many @TeX{}info mode
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2616 commands do not accept braces around their arguments.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2617
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2618 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2619 BibTeX mode.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2620
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2621 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2622 Support for AMSLaTeX style files.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2623
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2624 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2625 Hook up the letter environment with `bbdb.el'.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2626
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2627 @item
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2628 Make the letter environment hook produce `documentstyle' too.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2629
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2630 @end itemize
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2631
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2632 @node Credit, Key Index, Projects, top
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2633 @comment node-name, next, previous, up
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2634 @appendix Credit
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2635
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2636 A big smile and thanks should go to all the folks who cheered me up,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2637 during the long hours of programming@dots{} sorry folks, but I can't help
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2638 including the list below, of comments I've got@dots{}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2639
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2640 Kresten Krab Thorup
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2641
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2642 @table @samp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2643 @item <monheit@@psych.stanford.edu>
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2644 I'd like to say that I'm very much enjoying using auc-tex. Thanks for
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2645 the great package!
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2646 @item <georgiou@@rex.cs.tulane.edu>
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2647 I really enjoy working with auc-tex.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2648 @item <toy@@soho.crd.ge.com>
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2649 Thanks for your great package. It's indispensable now! Thanks!
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2650 @item <ascott@@gara.une.oz.au>
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2651 Thanks for your time and for what appears to be a great and useful
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2652 package. Thanks again
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2653 @item <hal@@alfred.econ.lsa.umich.edu>
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2654 Thanks for providing auc-tex.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2655 @item <simons@@ibiza.karlsruhe.gmd.de>
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2656 I really enjoy using the new emacs TeX-mode you wrote. I think you did
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2657 a great job.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2658 @item <clipper@@csd.uwo.ca>
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2659 I am having fun with auc-tex already.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2660 @item <ibekhaus@@athena.mit.edu>
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2661 Thanks for your work on auc-tex, especially the math-minor mode.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2662 @item <burt@@dfki.uni-kl.de>
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2663 I like your auc-tex elisp package for writing LaTeX files - I am
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2664 especially impressed by the help with error correction.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2665 @item <goncal@@cnmvax.uab.es>
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2666 Thanks so much!
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2667 @item <bond@@sce.carleton.ca>
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2668 I >really< like the macro, particularly the hooks for previewing and the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2669 error parsing!
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2670 @item <ascott@@gara.une.oz.au>
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2671 All in all I am pleased with your package. Thanks a lot.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2672 @end table
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2673
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2674 @node Key Index, Function Index, Credit, top
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2675 @comment node-name, next, previous, up
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2676 @unnumbered Key Index
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2677
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2678 @printindex ky
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2679
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2680 @node Function Index, Variable Index, Key Index, top
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2681 @comment node-name, next, previous, up
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2682 @unnumbered Function Index
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2683
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2684 @printindex fn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2685
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2686 @node Variable Index, Concept Index, Function Index, top
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2687 @comment node-name, next, previous, up
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2688 @unnumbered Variable Index
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2689
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2690 @printindex vr
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2691
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2692 @node Concept Index, , Variable Index, top
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2693 @comment node-name, next, previous, up
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2694 @unnumbered Concept Index
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2695
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2696 @printindex cp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2697
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2698 @summarycontents
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2699 @contents
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2700 @bye
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2701
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2702