1 ;;; tex-style.el --- Customizable variables for AUCTeX style files
3 ;; Copyright (C) 2005 Free Software Foundation, Inc.
5 ;; Author: Reiner Steib <Reiner.Steib@gmx.de>
6 ;; Keywords: tex, wp, convenience
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)
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.
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.
25 ;; This file provides customizable variables for AUCTeX style files.
29 (defgroup LaTeX-style nil
30 "Support for special LaTeX style files in AUCTeX."
33 ;; Note: We don't have any defcustom in plain TeX style files yet. Else we
34 ;; should also create a TeX-style group.
38 (defcustom LaTeX-amsmath-label nil
39 "Default prefix to amsmath equation labels.
41 Amsmath equations include \"align\", \"alignat\", \"xalignat\",
42 \"multline\", \"flalign\" and \"gather\". If it is nil,
43 `LaTeX-equation-label' is used."
45 :type '(choice (const :tag "Use `LaTeX-equation-label'" nil)
50 (defcustom LaTeX-beamer-section-labels-flag nil
51 "If non-nil section labels are added"
55 (defcustom LaTeX-beamer-item-overlay-flag t
56 "If non-nil do prompt for an overlay in itemize-like environments."
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."
67 (const :tag "TeX search" LaTeX-beamer-search-themes)
68 (const :tag "Search once per buffer" local)
69 (function :tag "Other function")
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"
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."
114 (const :tag "TeX search" LaTeX-beamer-search-inner-themes)
115 (const :tag "Search once per buffer" local)
116 (function :tag "Other function")
118 :value ("circles" "default" "inmargin" "rectangles" "rounded")
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."
136 (const :tag "TeX search" LaTeX-beamer-search-outer-themes)
137 (const :tag "Search once per buffer" local)
138 (function :tag "Other function")
141 ("default" "infolines" "miniframes" "shadow" "sidebar" "smoothbars"
142 "smoothtree" "split" "tree")
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."
164 (const :tag "TeX search" LaTeX-beamer-search-color-themes)
165 (const :tag "Search once per buffer" local)
166 (function :tag "Other function")
169 ("albatross" "beetle" "crane" "default" "dolphin" "dove" "fly" "lily"
170 "orchid" "rose" "seagull" "seahorse" "sidebartab" "structure" "whale")
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."
198 (const :tag "TeX search" LaTeX-beamer-search-font-themes)
199 (const :tag "Search once per buffer" local)
200 (function :tag "Other function")
203 ("default" "professionalfonts" "serif" "structurebold"
204 "structureitalicserif" "structuresmallcapsserif")
207 (const "professionalfonts")
209 (const "structurebold")
210 (const "structureitalicserif")
211 (const "structuresmallcapsserif"))
218 (defcustom LaTeX-biblatex-use-Biber t
219 "Whether to use Biber with biblatex."
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)
234 (defcustom LaTeX-csquotes-quote-after-quote nil
235 "Initial value of `TeX-quote-after-quote' for `csquotes.el'"
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."
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."
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."
266 (defcustom LaTeX-includegraphics-extensions
267 '("eps" "jpe?g" "pdf" "png")
268 "Extensions for images files used by \\includegraphics."
270 :type '(list (set :inline t
279 (defcustom LaTeX-includegraphics-options-alist
281 ;; (1 width height clip)
282 ;; (2 width height keepaspectratio clip)
286 ;; Table 1 in epslatex.ps: ``includegraphics Options''
287 height totalheight width scale angle origin bb
288 ;; Table 2 in epslatex.ps: ``cropping Options''
290 ;; Table 3 in epslatex.ps: ``Boolean Options''
291 ;; [not implemented:] noclip draft final
295 "Controls for which optional arguments of \\includegraphics you get prompted.
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\).
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."
305 :type '(repeat (cons (integer :tag "Argument")
313 (const :tag "Bounding Box" bb)
319 (const keepaspectratio))))))
321 (defcustom LaTeX-includegraphics-strip-extension-flag t
322 "Non-nil means to strip known extensions from image file name."
326 (defcustom LaTeX-includegraphics-read-file
327 'LaTeX-includegraphics-read-file-TeX
328 "Function for reading \\includegraphics files.
330 `LaTeX-includegraphics-read-file-TeX' lists all graphic files
331 found in the TeX search path.
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
338 The custom option `simple' works as
339 `LaTeX-includegraphics-read-file-relative' but it lists all kind of
342 Inserting the subdirectory in the filename (as
343 `LaTeX-includegraphics-read-file-relative') is discouraged by
345 ;; ,----[ epslatex.ps; Section 12; (page 26) ]
346 ;; | Instead of embedding the subdirectory in the filename, there are two
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
353 ;; See "Inefficiency" and "Unportability" in the same section for more
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 ()
361 (read-file-name "Image file: ")
362 (TeX-master-directory))))
363 (function :tag "other")))
367 (defcustom LaTeX-shortvrb-chars '(?|)
368 "List of characters toggling verbatim mode."
370 :type '(repeat character))
374 ;;; tex-style.el ends here