It's a bit buggy on my system, and I have spent a fair amount of time
trying to figure out why. I enabled (toggle-debug-on-error) and got
(void-function TeX-arg-key-val), which I don't understand. I'd be
grateful if you would write back with a few words why those problems
occurred.

I'm still eagerly awaiting the forms to be signed from GNU :-)
-- 
Med Venlig Hilsen / Kind Regards,
Mads Jensen
Rubinsteinsvej 31,st.th
DK-2450 Kbh. SV
Denmark
+45 6168 8518
;;; lettrine.el --- AUCTeX style for `lettrine.sty'

;; Author: Mads Jensen <[email protected]>
;; Keywords: tex

;;; Commentary:

;; This file adds support for `lettrine.sty'.

;;; Code:

(defvar LaTeX-lettrine-key-val-options
  '(("lines")
    ("lhang")
    ("loversize")
    ("lraise")
    ("findent")
    ("nindent")
    ("slope")
    ("ante")
    ("image"))
  "Key=value options for \\lettrine")

(TeX-add-style-hook
 "lettrine"
 (lambda ()
   (TeX-add-symbols
    '("lettrine" [ TeX-arg-key-val LaTeX-lettrine-key-val-options ]
      "Letter" "Text")
    '("LettrineImageFalse" 0)
    ;; all of the below can be configured with either \setlength or
    ;; \renewcommand
    "LettrineFont"
    "LettrineFontHook"
    "LettrineText"
    "LettrineWidth"
    "DefaultLhang"
    "DefaultLines"
    "DefaultLoversize"
    "DefaultLraise"
    "DefaultFindent"
    "DefaultNindent"
    "DefaultSlope"
    ;; above settings can also be input a file, and pointed to with
    ;; \renewcommand
    "DefaultOptionsFile")
   
   ;; Fontification
   (when (and (featurep 'font-latex)
              (eq TeX-install-font-lock 'font-latex-setup))
     (font-latex-add-keywords '(("lettrine" "[{{")) 'function)
     ;; For syntactic fontification, e.g. verbatim constructs.
     (font-latex-set-syntactic-keywords)
     ;; Tell font-lock about the update.
     (setq font-lock-set-defaults nil)
     (font-lock-set-defaults))))

(defvar LaTeX-lettrine-package-options nil
  "Package options for the lettrine package.")

;;; lettrine.el ends here

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
auctex-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to