1 ;;; tex-style.el --- Customizable variables for AUCTeX style files
3 ;; Copyright (C) 2005, 2007, 2009, 2012-2014
4 ;; Free Software Foundation, Inc.
6 ;; Author: Reiner Steib <Reiner.Steib@gmx.de>
7 ;; Keywords: tex, wp, convenience
9 ;; This file is free software; you can redistribute it and/or modify
10 ;; it under the terms of the GNU General Public License as published by
11 ;; the Free Software Foundation; either version 3, or (at your option)
14 ;; This file is distributed in the hope that it will be useful,
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;; GNU General Public License for more details.
19 ;; You should have received a copy of the GNU General Public License
20 ;; along with GNU Emacs; see the file COPYING. If not, write to
21 ;; the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
22 ;; Boston, MA 02110-1301, USA.
26 ;; This file provides customizable variables for AUCTeX style files.
30 (defgroup LaTeX-style nil
31 "Support for special LaTeX style files in AUCTeX."
34 ;; Note: We don't have any defcustom in plain TeX style files yet. Else we
35 ;; should also create a TeX-style group.
39 (defcustom LaTeX-amsmath-label nil
40 "Default prefix to amsmath equation labels.
42 Amsmath equations include \"align\", \"alignat\", \"xalignat\",
43 \"multline\", \"flalign\" and \"gather\". If it is nil,
44 `LaTeX-equation-label' is used."
46 :type '(choice (const :tag "Use `LaTeX-equation-label'" nil)
51 (defcustom LaTeX-beamer-section-labels-flag nil
52 "If non-nil section labels are added"
56 (defcustom LaTeX-beamer-item-overlay-flag t
57 "If non-nil do prompt for an overlay in itemize-like environments."
61 (defcustom LaTeX-beamer-themes 'local
62 "Presentation themes for the LaTeX beamer package.
63 It can be a list of themes or a function. If it is the symbol
64 `local', search only once per buffer."
68 (const :tag "TeX search" LaTeX-beamer-search-themes)
69 (const :tag "Search once per buffer" local)
70 (function :tag "Other function")
73 ;; Work around (bug in customize?), see
74 ;; <news:v9is48jrj1.fsf@marauder.physik.uni-ulm.de>
75 ("Antibes" "Bergen" "Berkeley" "Berlin" "Boadilla" "Copenhagen"
76 "Darmstadt" "Dresden" "Frankfurt" "Goettingen" "Hannover"
77 "Ilmenau" "JuanLesPins" "Luebeck" "Madrid" "Malmoe" "Marburg"
78 "Montpellier" "PaloAlto" "Pittsburgh" "Rochester" "Singapore"
109 (defcustom LaTeX-beamer-inner-themes 'local
110 "Presentation inner themes for the LaTeX beamer package.
111 It can be a list of themes or a function. If it is the symbol
112 `local', search only once per buffer."
115 (const :tag "TeX search" LaTeX-beamer-search-inner-themes)
116 (const :tag "Search once per buffer" local)
117 (function :tag "Other function")
119 :value ("circles" "default" "inmargin" "rectangles" "rounded")
130 (defcustom LaTeX-beamer-outer-themes 'local
131 "Presentation outer themes for the LaTeX beamer package.
132 It can be a list of themes or a function. If it is the symbol
133 `local', search only once per buffer."
137 (const :tag "TeX search" LaTeX-beamer-search-outer-themes)
138 (const :tag "Search once per buffer" local)
139 (function :tag "Other function")
142 ("default" "infolines" "miniframes" "shadow" "sidebar" "smoothbars"
143 "smoothtree" "split" "tree")
158 (defcustom LaTeX-beamer-color-themes 'local
159 "Presentation color themes for the LaTeX beamer package.
160 It can be a list of themes or a function. If it is the symbol
161 `local', search only once per buffer."
165 (const :tag "TeX search" LaTeX-beamer-search-color-themes)
166 (const :tag "Search once per buffer" local)
167 (function :tag "Other function")
170 ("albatross" "beetle" "crane" "default" "dolphin" "dove" "fly" "lily"
171 "orchid" "rose" "seagull" "seahorse" "sidebartab" "structure" "whale")
192 (defcustom LaTeX-beamer-font-themes 'local
193 "Presentation font themes for the LaTeX beamer package.
194 It can be a list of themes or a function. If it is the symbol
195 `local', search only once per buffer."
199 (const :tag "TeX search" LaTeX-beamer-search-font-themes)
200 (const :tag "Search once per buffer" local)
201 (function :tag "Other function")
204 ("default" "professionalfonts" "serif" "structurebold"
205 "structureitalicserif" "structuresmallcapsserif")
208 (const "professionalfonts")
210 (const "structurebold")
211 (const "structureitalicserif")
212 (const "structuresmallcapsserif"))
219 (defvar LaTeX-biblatex-use-Biber t
220 "Whether to use Biber with biblatex.
222 This variable is intended to be used as a file local variable to
223 override the autodetection of the biblatex backend.")
224 (make-variable-buffer-local 'LaTeX-biblatex-use-Biber)
225 (put 'LaTeX-biblatex-use-Biber 'safe-local-variable 'TeX-booleanp)
229 (defcustom LaTeX-comment-env-list '("comment")
230 "List of environment names defined with comment.sty.
231 Setting this variable does not take effect unless you
232 reinitialize affected buffers."
233 :type '(repeat string)
238 (defcustom LaTeX-csquotes-quote-after-quote nil
239 "Initial value of `TeX-quote-after-quote' for `csquotes.el'"
243 (defcustom LaTeX-csquotes-open-quote ""
244 "Opening quotation mark to be used with the csquotes package.
245 The specified string will be used for `TeX-open-quote' (and override
246 any language-specific setting) only if both `LaTeX-csquotes-open-quote'
247 and `LaTeX-csquotes-close-quote' are non-empty strings."
251 (defcustom LaTeX-csquotes-close-quote ""
252 "Closing quotation mark to be used with the csquotes package.
253 The specified string will be used for `TeX-close-quote' (and override
254 any language-specific setting) only if both `LaTeX-csquotes-open-quote'
255 and `LaTeX-csquotes-close-quote' are non-empty strings."
261 (defcustom LaTeX-write18-enabled-p t
262 "*If non-nil, insert automatically the \\write18 calling metapost.
263 When disabled, you have to use mpost on the mp files automatically
264 produced by emp.sty and then re-LaTeX the document."
270 (defcustom LaTeX-fontspec-arg-font-search t
271 "If `LaTeX-fontspec-arg-font' should search for fonts.
272 If the value is t, fonts are retrieved automatically and provided
273 for completion. If the value is nil,
274 `LaTeX-fontspec-font-list-default' is used for completion. If
275 the value is `ask', you are asked for the method to use every
276 time `LaTeX-fontspec-arg-font' is called.
278 `LaTeX-fontspec-arg-font' calls `luaotf-load --list=basename' to
279 automatically get the list of fonts. This requires
280 `luaotfload-tool' version 2.3 or higher in order to work."
283 (const :tag "Search automatically" t)
284 (const :tag "Use default font list" nil)
285 (const :tag "Ask what to do" ask)))
287 (defcustom LaTeX-fontspec-font-list-default nil
288 "List of default fonts to be used as completion for
289 `LaTeX-fontspec-arg-font'."
291 :type '(repeat (string :tag "Font")))
295 (defcustom LaTeX-includegraphics-extensions
296 '("eps" "jpe?g" "pdf" "png")
297 "Extensions for images files used by \\includegraphics."
299 :type '(list (set :inline t
308 (defcustom LaTeX-includegraphics-options-alist
310 ;; (1 width height clip)
311 ;; (2 width height keepaspectratio clip)
315 ;; Table 1 in epslatex.ps: ``includegraphics Options''
316 height totalheight width scale angle origin bb
317 ;; Table 2 in epslatex.ps: ``cropping Options''
319 ;; Table 3 in epslatex.ps: ``Boolean Options''
320 ;; [not implemented:] noclip draft final
324 "Controls for which optional arguments of \\includegraphics you get prompted.
326 An alist, consisting of \(NUMBER . LIST\) pairs. Valid elements of LIST are
327 `width', `height', `keepaspectratio', `clip', `angle', `totalheight', `trim'
328 and `bb' \(Bounding Box\).
330 The list corresponding to 0 is used if no prefix is given. Note that 4 \(one
331 \\[universal-argument]\) and 16 \(two \\[universal-argument]'s\) are easy to
332 type and should be used for frequently needed combinations."
334 :type '(repeat (cons (integer :tag "Argument")
342 (const :tag "Bounding Box" bb)
348 (const keepaspectratio))))))
350 (defcustom LaTeX-includegraphics-strip-extension-flag t
351 "Non-nil means to strip known extensions from image file name."
355 (defcustom LaTeX-includegraphics-read-file
356 'LaTeX-includegraphics-read-file-TeX
357 "Function for reading \\includegraphics files.
359 `LaTeX-includegraphics-read-file-TeX' lists all graphic files
360 found in the TeX search path.
362 `LaTeX-includegraphics-read-file-relative' lists all graphic files
363 in the master directory and its subdirectories and inserts the
364 relative file name. This option does not work with Emacs 21 or
367 The custom option `simple' works as
368 `LaTeX-includegraphics-read-file-relative' but it lists all kind of
371 Inserting the subdirectory in the filename (as
372 `LaTeX-includegraphics-read-file-relative') is discouraged by
374 ;; ,----[ epslatex.ps; Section 12; (page 26) ]
375 ;; | Instead of embedding the subdirectory in the filename, there are two
377 ;; | 1. The best method is to modify the TeX search path [...]
378 ;; | 2. Another method is to specify sub/ in a \graphicspath command
379 ;; | [...]. However this is much less efficient than modifying the
382 ;; See "Inefficiency" and "Unportability" in the same section for more
385 :type '(choice (const :tag "TeX" LaTeX-includegraphics-read-file-TeX)
386 (const :tag "relative"
387 LaTeX-includegraphics-read-file-relative)
388 (const :tag "simple" (lambda ()
390 (read-file-name "Image file: ")
391 (TeX-master-directory))))
392 (function :tag "other")))
396 ;;; tex-style.el ends here