1 ;;; booktabs.el -- AUCTeX style for booktabs.sty
3 ;; Copyright (C) 2003, 2004 Free Software Foundation, Inc.
5 ;; Author: Ralf Angeli <angeli@iwi.uni-sb.de>
6 ;; Maintainer: auctex-devel@gnu.org
10 ;; This file is part of AUCTeX.
12 ;; AUCTeX is free software; you can redistribute it and/or modify it
13 ;; under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation; either version 3, or (at your option)
17 ;; AUCTeX is distributed in the hope that it will be useful, but
18 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 ;; General Public License for more details.
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with AUCTeX; see the file COPYING. If not, write to the Free
24 ;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
29 ;; This file adds support for `booktabs.sty'.
33 (defun LaTeX-booktabs-arg-paren (optional prompt)
34 "Prompt for a value and use parentheses when it is inserted.
35 If OPTIONAL is non-nil the parameter is labeled as optional.
36 PROMPT is the value of the prompt to be shown."
39 (TeX-parse-argument optional prompt)))
47 '("toprule" [ "Thickness" ])
48 '("midrule" [ "Thickness" ])
49 '("bottomrule" [ "Thickness" ])
50 ;; FIXME: The qestion for the trim parameter will only be asked if
51 ;; a value for the thickness parameter was given. Is this a
52 ;; feature of `TeX-parse-arguments'?
53 '("cmidrule" [ "Thickness" ] [ LaTeX-booktabs-arg-paren "Trim" ]
55 '("addlinespace" [ "Height" ])
57 '("specialrule" "Thickness" "Space above" "Space below"))
60 (when (and (featurep 'font-latex)
61 (eq TeX-install-font-lock 'font-latex-setup))
62 (font-latex-add-keywords '(("toprule" "[")
68 ("specialrule" "{{{"))
71 (defvar LaTeX-booktabs-package-options nil
72 "Package options for the booktabs package.")
74 ;;; booktabs.el ends here