1 ;;; url.el --- AUCTeX style for `url.sty'
3 ;; Copyright (C) 2004, 2005 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 `url.sty'.
52 '("urlstyle" TeX-arg-urlstyle))
54 (add-to-list 'LaTeX-verbatim-macros-with-delims-local "path")
55 (add-to-list 'LaTeX-verbatim-macros-with-delims-local "url")
56 (add-to-list 'LaTeX-verbatim-macros-with-braces-local "path")
57 (add-to-list 'LaTeX-verbatim-macros-with-braces-local "url")
60 (when (and (featurep 'font-latex)
61 (eq TeX-install-font-lock 'font-latex-setup))
62 (font-latex-add-keywords '(("path" "{") ("url" "{")) 'reference)
63 (font-latex-add-keywords '(("Url" "")
64 ("UrlBigBreakPenalty" "")
66 ("UrlBreakPenalty" "")
77 ;; For syntactic fontification, e.g. verbatim constructs.
78 (font-latex-set-syntactic-keywords)
79 ;; Tell font-lock about the update.
80 (setq font-lock-set-defaults nil)
81 (font-lock-set-defaults))))
83 (defun TeX-arg-urlstyle (optional &optional prompt)
84 "Prompt for style used in \\urlstyle with completion."
86 (completing-read (TeX-argument-prompt optional prompt "Style")
87 (mapcar 'list '("rm" "same" "sf" "tt"))
91 (defvar LaTeX-url-package-options '("hyphens" "obeyspaces" "spaces" "LY1"
93 "Package options for the url package.")