]> code.delx.au - gnu-emacs-elpa/blob - packages/auctex/tex-style.el
Update AUCTeX ELPA package to the new 11.87 release.
[gnu-emacs-elpa] / packages / auctex / tex-style.el
1 ;;; tex-style.el --- Customizable variables for AUCTeX style files
2
3 ;; Copyright (C) 2005 Free Software Foundation, Inc.
4
5 ;; Author: Reiner Steib <Reiner.Steib@gmx.de>
6 ;; Keywords: tex, wp, convenience
7
8 ;; This file is free software; you can redistribute it and/or modify
9 ;; it under the terms of the GNU General Public License as published by
10 ;; the Free Software Foundation; either version 3, or (at your option)
11 ;; any later version.
12
13 ;; This file is distributed in the hope that it will be useful,
14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ;; GNU General Public License for more details.
17
18 ;; You should have received a copy of the GNU General Public License
19 ;; along with GNU Emacs; see the file COPYING. If not, write to
20 ;; the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
21 ;; Boston, MA 02110-1301, USA.
22
23 ;;; Commentary:
24
25 ;; This file provides customizable variables for AUCTeX style files.
26
27 ;;; Code:
28
29 (defgroup LaTeX-style nil
30 "Support for special LaTeX style files in AUCTeX."
31 :group 'LaTeX-macro)
32
33 ;; Note: We don't have any defcustom in plain TeX style files yet. Else we
34 ;; should also create a TeX-style group.
35
36 ;; style/amsmath.el
37
38 (defcustom LaTeX-amsmath-label nil
39 "Default prefix to amsmath equation labels.
40
41 Amsmath equations include \"align\", \"alignat\", \"xalignat\",
42 \"multline\", \"flalign\" and \"gather\". If it is nil,
43 `LaTeX-equation-label' is used."
44 :group 'LaTeX-label
45 :type '(choice (const :tag "Use `LaTeX-equation-label'" nil)
46 (string)))
47
48 ;; style/beamer.el
49
50 (defcustom LaTeX-beamer-section-labels-flag nil
51 "If non-nil section labels are added"
52 :type 'boolean
53 :group 'LaTeX-style)
54
55 (defcustom LaTeX-beamer-item-overlay-flag t
56 "If non-nil do prompt for an overlay in itemize-like environments."
57 :type 'boolean
58 :group 'LaTeX-style)
59
60 (defcustom LaTeX-beamer-themes 'local
61 "Presentation themes for the LaTeX beamer package.
62 It can be a list of themes or a function. If it is the symbol
63 `local', search only once per buffer."
64 :group 'LaTeX-style
65 :type
66 '(choice
67 (const :tag "TeX search" LaTeX-beamer-search-themes)
68 (const :tag "Search once per buffer" local)
69 (function :tag "Other function")
70 (list
71 :value
72 ;; Work around (bug in customize?), see
73 ;; <news:v9is48jrj1.fsf@marauder.physik.uni-ulm.de>
74 ("Antibes" "Bergen" "Berkeley" "Berlin" "Boadilla" "Copenhagen"
75 "Darmstadt" "Dresden" "Frankfurt" "Goettingen" "Hannover"
76 "Ilmenau" "JuanLesPins" "Luebeck" "Madrid" "Malmoe" "Marburg"
77 "Montpellier" "PaloAlto" "Pittsburgh" "Rochester" "Singapore"
78 "Szeged" "Warsaw")
79 (set :inline t
80 (const "Antibes")
81 (const "Bergen")
82 (const "Berkeley")
83 (const "Berlin")
84 (const "Boadilla")
85 (const "Copenhagen")
86 (const "Darmstadt")
87 (const "Dresden")
88 (const "Frankfurt")
89 (const "Goettingen")
90 (const "Hannover")
91 (const "Ilmenau")
92 (const "JuanLesPins")
93 (const "Luebeck")
94 (const "Madrid")
95 (const "Malmoe")
96 (const "Marburg")
97 (const "Montpellier")
98 (const "PaloAlto")
99 (const "Pittsburgh")
100 (const "Rochester")
101 (const "Singapore")
102 (const "Szeged")
103 (const "Warsaw"))
104 (repeat :inline t
105 :tag "Other"
106 (string)))))
107
108 (defcustom LaTeX-beamer-inner-themes 'local
109 "Presentation inner themes for the LaTeX beamer package.
110 It can be a list of themes or a function. If it is the symbol
111 `local', search only once per buffer."
112 :group 'LaTeX-style
113 :type '(choice
114 (const :tag "TeX search" LaTeX-beamer-search-inner-themes)
115 (const :tag "Search once per buffer" local)
116 (function :tag "Other function")
117 (list
118 :value ("circles" "default" "inmargin" "rectangles" "rounded")
119 (set :inline t
120 (const "circles")
121 (const "default")
122 (const "inmargin")
123 (const "rectangles")
124 (const "rounded"))
125 (repeat :inline t
126 :tag "Other"
127 (string)))))
128
129 (defcustom LaTeX-beamer-outer-themes 'local
130 "Presentation outer themes for the LaTeX beamer package.
131 It can be a list of themes or a function. If it is the symbol
132 `local', search only once per buffer."
133 :group 'LaTeX-style
134 :type
135 '(choice
136 (const :tag "TeX search" LaTeX-beamer-search-outer-themes)
137 (const :tag "Search once per buffer" local)
138 (function :tag "Other function")
139 (list
140 :value
141 ("default" "infolines" "miniframes" "shadow" "sidebar" "smoothbars"
142 "smoothtree" "split" "tree")
143 (set :inline t
144 (const "default")
145 (const "infolines")
146 (const "miniframes")
147 (const "shadow")
148 (const "sidebar")
149 (const "smoothbars")
150 (const "smoothtree")
151 (const "split")
152 (const "tree"))
153 (repeat :inline t
154 :tag "Other"
155 (string)))))
156
157 (defcustom LaTeX-beamer-color-themes 'local
158 "Presentation color themes for the LaTeX beamer package.
159 It can be a list of themes or a function. If it is the symbol
160 `local', search only once per buffer."
161 :group 'LaTeX-style
162 :type
163 '(choice
164 (const :tag "TeX search" LaTeX-beamer-search-color-themes)
165 (const :tag "Search once per buffer" local)
166 (function :tag "Other function")
167 (list
168 :value
169 ("albatross" "beetle" "crane" "default" "dolphin" "dove" "fly" "lily"
170 "orchid" "rose" "seagull" "seahorse" "sidebartab" "structure" "whale")
171 (set :inline t
172 (const "albatross")
173 (const "beetle")
174 (const "crane")
175 (const "default")
176 (const "dolphin")
177 (const "dove")
178 (const "fly")
179 (const "lily")
180 (const "orchid")
181 (const "rose")
182 (const "seagull")
183 (const "seahorse")
184 (const "sidebartab")
185 (const "structure")
186 (const "whale"))
187 (repeat :inline t
188 :tag "Other"
189 (string)))))
190
191 (defcustom LaTeX-beamer-font-themes 'local
192 "Presentation font themes for the LaTeX beamer package.
193 It can be a list of themes or a function. If it is the symbol
194 `local', search only once per buffer."
195 :group 'LaTeX-style
196 :type
197 '(choice
198 (const :tag "TeX search" LaTeX-beamer-search-font-themes)
199 (const :tag "Search once per buffer" local)
200 (function :tag "Other function")
201 (list
202 :value
203 ("default" "professionalfonts" "serif" "structurebold"
204 "structureitalicserif" "structuresmallcapsserif")
205 (set :inline t
206 (const "default")
207 (const "professionalfonts")
208 (const "serif")
209 (const "structurebold")
210 (const "structureitalicserif")
211 (const "structuresmallcapsserif"))
212 (repeat :inline t
213 :tag "Other"
214 (string)))))
215
216 ;; style/biblatex.el
217
218 (defcustom LaTeX-biblatex-use-Biber t
219 "Whether to use Biber with biblatex."
220 :type 'boolean
221 :group 'LaTeX-style)
222
223 ;; style/comment.el
224
225 (defcustom LaTeX-comment-env-list '("comment")
226 "List of environment names defined with comment.sty.
227 Setting this variable does not take effect unless you
228 reinitialize affected buffers."
229 :type '(repeat string)
230 :group 'LaTeX-style)
231
232 ;; style/csquotes.el
233
234 (defcustom LaTeX-csquotes-quote-after-quote nil
235 "Initial value of `TeX-quote-after-quote' for `csquotes.el'"
236 :type 'boolean
237 :group 'LaTeX-style)
238
239 (defcustom LaTeX-csquotes-open-quote ""
240 "Opening quotation mark to be used with the csquotes package.
241 The specified string will be used for `TeX-open-quote' (and override
242 any language-specific setting) only if both `LaTeX-csquotes-open-quote'
243 and `LaTeX-csquotes-close-quote' are non-empty strings."
244 :type 'string
245 :group 'LaTeX-style)
246
247 (defcustom LaTeX-csquotes-close-quote ""
248 "Closing quotation mark to be used with the csquotes package.
249 The specified string will be used for `TeX-close-quote' (and override
250 any language-specific setting) only if both `LaTeX-csquotes-open-quote'
251 and `LaTeX-csquotes-close-quote' are non-empty strings."
252 :type 'string
253 :group 'LaTeX-style)
254
255 ;; style/emp.el
256
257 (defcustom LaTeX-write18-enabled-p t
258 "*If non-nil, insert automatically the \\write18 calling metapost.
259 When disabled, you have to use mpost on the mp files automatically
260 produced by emp.sty and then re-LaTeX the document."
261 :type 'boolean
262 :group 'LaTeX-style)
263
264 ;; style/graphicx.el
265
266 (defcustom LaTeX-includegraphics-extensions
267 '("eps" "jpe?g" "pdf" "png")
268 "Extensions for images files used by \\includegraphics."
269 :group 'LaTeX-style
270 :type '(list (set :inline t
271 (const "eps")
272 (const "jpe?g")
273 (const "pdf")
274 (const "png"))
275 (repeat :inline t
276 :tag "Other"
277 (string))))
278
279 (defcustom LaTeX-includegraphics-options-alist
280 '((0 width)
281 ;; (1 width height clip)
282 ;; (2 width height keepaspectratio clip)
283 (4) ;; --> (4 nil)
284 (5 trim)
285 (16
286 ;; Table 1 in epslatex.ps: ``includegraphics Options''
287 height totalheight width scale angle origin bb
288 ;; Table 2 in epslatex.ps: ``cropping Options''
289 viewport trim
290 ;; Table 3 in epslatex.ps: ``Boolean Options''
291 ;; [not implemented:] noclip draft final
292 clip keepaspectratio
293 ;; Only for PDF:
294 page))
295 "Controls for which optional arguments of \\includegraphics you get prompted.
296
297 An alist, consisting of \(NUMBER . LIST\) pairs. Valid elements of LIST are
298 `width', `height', `keepaspectratio', `clip', `angle', `totalheight', `trim'
299 and `bb' \(Bounding Box\).
300
301 The list corresponding to 0 is used if no prefix is given. Note that 4 \(one
302 \\[universal-argument]\) and 16 \(two \\[universal-argument]'s\) are easy to
303 type and should be used for frequently needed combinations."
304 :group 'LaTeX-style
305 :type '(repeat (cons (integer :tag "Argument")
306 (list (set :inline t
307 (const height)
308 (const totalheight)
309 (const width)
310 (const scale)
311 (const angle)
312 (const origin)
313 (const :tag "Bounding Box" bb)
314 ;;
315 (const viewport)
316 (const trim)
317 ;;
318 (const clip)
319 (const keepaspectratio))))))
320
321 (defcustom LaTeX-includegraphics-strip-extension-flag t
322 "Non-nil means to strip known extensions from image file name."
323 :group 'LaTeX-style
324 :type 'boolean)
325
326 (defcustom LaTeX-includegraphics-read-file
327 'LaTeX-includegraphics-read-file-TeX
328 "Function for reading \\includegraphics files.
329
330 `LaTeX-includegraphics-read-file-TeX' lists all graphic files
331 found in the TeX search path.
332
333 `LaTeX-includegraphics-read-file-relative' lists all graphic files
334 in the master directory and its subdirectories and inserts the
335 relative file name. This option does not work with Emacs 21 or
336 XEmacs.
337
338 The custom option `simple' works as
339 `LaTeX-includegraphics-read-file-relative' but it lists all kind of
340 files.
341
342 Inserting the subdirectory in the filename (as
343 `LaTeX-includegraphics-read-file-relative') is discouraged by
344 `epslatex.ps'."
345 ;; ,----[ epslatex.ps; Section 12; (page 26) ]
346 ;; | Instead of embedding the subdirectory in the filename, there are two
347 ;; | other options
348 ;; | 1. The best method is to modify the TeX search path [...]
349 ;; | 2. Another method is to specify sub/ in a \graphicspath command
350 ;; | [...]. However this is much less efficient than modifying the
351 ;; | TeX search path
352 ;; `----
353 ;; See "Inefficiency" and "Unportability" in the same section for more
354 ;; information.
355 :group 'LaTeX-style
356 :type '(choice (const :tag "TeX" LaTeX-includegraphics-read-file-TeX)
357 (const :tag "relative"
358 LaTeX-includegraphics-read-file-relative)
359 (const :tag "simple" (lambda ()
360 (file-relative-name
361 (read-file-name "Image file: ")
362 (TeX-master-directory))))
363 (function :tag "other")))
364
365 ;; style/shortvrb.el
366
367 (defcustom LaTeX-shortvrb-chars '(?|)
368 "List of characters toggling verbatim mode."
369 :group 'LaTeX-style
370 :type '(repeat character))
371
372 (provide 'tex-style)
373
374 ;;; tex-style.el ends here