emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/auctex 1fef01c 45/48: Update style/lettrine.el to packa


From: Tassilo Horn
Subject: [elpa] externals/auctex 1fef01c 45/48: Update style/lettrine.el to package version 2.01
Date: Sun, 16 Sep 2018 01:47:28 -0400 (EDT)

branch: externals/auctex
commit 1fef01cc2d4599e70e256f70f2816875ae37cda8
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>

    Update style/lettrine.el to package version 2.01
    
    * style/lettrine.el (LaTeX-lettrine-key-val-options): Update
    key=val options.
    ("lettrine"): Use correct functions on counters and
    lengths/dimensions provided by lettrine.sty.
    Add support for missing macros.
---
 style/lettrine.el | 40 +++++++++++++++++++++++++++-------------
 1 file changed, 27 insertions(+), 13 deletions(-)

diff --git a/style/lettrine.el b/style/lettrine.el
index ed32a70..21f1092 100644
--- a/style/lettrine.el
+++ b/style/lettrine.el
@@ -1,8 +1,9 @@
-;;; lettrine.el --- AUCTeX style for `lettrine.sty'
+;;; lettrine.el --- AUCTeX style for `lettrine.sty' (v2.01)
 
-;; Copyright (C) 2011 Free Software Foundation, Inc.
+;; Copyright (C) 2011, 2018 Free Software Foundation, Inc.
 
 ;; Author: Mads Jensen <address@hidden>
+;; Maintainer: address@hidden
 ;; Keywords: tex
 
 ;; This file is part of AUCTeX.
@@ -24,12 +25,13 @@
 
 ;;; Commentary:
 
-;; This file adds support for `lettrine.sty'.
+;; This file adds support for `lettrine.sty' (v2.01) from 2018/07/31.
 
 ;;; Code:
 
 (defvar LaTeX-lettrine-key-val-options
   '(("lines")
+    ("depth")
     ("lhang")
     ("loversize")
     ("lraise")
@@ -37,8 +39,11 @@
     ("nindent")
     ("slope")
     ("ante")
-    ("image" ("true")))
-  "Key=value options for \\lettrine")
+    ("image" ("true"))
+    ("grid" ("true"))
+    ("novskip")
+    ("realheight" ("true")))
+  "Key=value options for \\lettrine marco.")
 
 (TeX-add-style-hook
  "lettrine"
@@ -47,25 +52,34 @@
     '("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
+    '("LettrineOnGridfalse" 0)
+    '("LettrineRealHeightfalse" 0)
+    ;; all of the below can be configured with \renewcommand
     '("LettrineFont" 0)
     '("LettrineFontHook" 0)
     '("LettrineTextFont" 0)
-    '("LettrineWidth" 0)
     '("DefaultLhang" 0)
     '("DefaultLoversize" 0)
     '("DefaultLraise" 0)
-    '("DefaultFindent" 0)
-    '("DefaultNindent" 0)
-    '("DefaultSlope" 0)
     ;; above settings can also be input a file, and pointed to with
     ;; \renewcommand
-    '("DefaultOptionsFile" 0))
+    '("DefaultOptionsFile" TeX-arg-file-name))
+
+   ;; Counters:
+   (LaTeX-add-counters "DefaultLines" "DefaultDepth")
+
+   ;; Lengths and dimensions:
+   (LaTeX-add-lengths "DefaultFindent"
+                     "DefaultNindent"
+                     "DefaultSlope"
+                     "DiscardVskip"
+                     "LettrineWidth"
+                     "LettrineHeight"
+                     "LettrineDepth")
 
    ;; Fontification
    (when (and (fboundp 'font-latex-add-keywords)
-              (eq TeX-install-font-lock 'font-latex-setup))
+             (eq TeX-install-font-lock 'font-latex-setup))
      (font-latex-add-keywords '(("lettrine" "[{{")) 'textual)))
  LaTeX-dialect)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]