[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex f9c7245 22/25: Improve style/foot
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [elpa] externals/auctex f9c7245 22/25: Improve style/footmisc.el |
Date: |
Sun, 21 Mar 2021 11:44:43 -0400 (EDT) |
branch: externals/auctex
commit f9c724510b64a3f9dcd23c9b989a24c2bc64a436
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Improve style/footmisc.el
* style/footmisc.el ("footmisc"): Add completion support for some
macros. Support special macros defined only with `splitrule'
option. Improve fontification.
---
style/footmisc.el | 90 +++++++++++++++++++++++++++++++++++++++++--------------
1 file changed, 68 insertions(+), 22 deletions(-)
diff --git a/style/footmisc.el b/style/footmisc.el
index dc3a807..7069e89 100644
--- a/style/footmisc.el
+++ b/style/footmisc.el
@@ -1,6 +1,6 @@
;;; footmisc.el --- AUCTeX style for `footmisc.sty' -*- lexical-binding: t;
-*-
-;; Copyright (C) 2011, 2018, 2020 Free Software Foundation, Inc.
+;; Copyright (C) 2011, 2018--2021 Free Software Foundation, Inc.
;; Author: Mads Jensen <mje@inducks.org>
;; Created: 2011-04-08
@@ -25,7 +25,7 @@
;;; Commentary:
-;; This file adds support for `footmisc.sty'.
+;; This file adds support for `footmisc.sty' (v5.5b) from 2011/06/06.
;;; Code:
@@ -40,34 +40,80 @@
"footmisc"
(lambda ()
(TeX-add-symbols
- '("DefineFNsymbols" "Name" [ "Style (text or math) " ] 1)
- '("DefineFNsymbols*" "Name" [ "Style (text or math)" ] 1)
+
+ ;; 1.4 Option ragged and \footnotelayout
+ "footnotelayout"
+
+ ;; 1.7 The \setfnsymbol and \DefineFNsymbols commands
+ '("DefineFNsymbols"
+ (TeX-arg-eval completing-read
+ (TeX-argument-prompt nil nil "Name")
+ '("bringhurst" "chicago" "wiley"
+ "lamport" "lamport*"))
+ [TeX-arg-eval completing-read
+ (TeX-argument-prompt t nil "Style (text or math)")
+ '("text" "math")]
+ 1)
+ '("DefineFNsymbols*"
+ (TeX-arg-eval completing-read
+ (TeX-argument-prompt nil nil "Name")
+ '("bringhurst" "chicago" "wiley"
+ "lamport" "lamport*"))
+ [TeX-arg-eval completing-read
+ (TeX-argument-prompt t nil "Style (text or math)")
+ '("text" "math")]
+ 1)
+
;; These two commands define both text and math variants of the
;; footnote symbols
- '("DefineFNsymbolsTM" "Name" 1)
- '("DefineFNsymbolsTM*" "Name" 1)
- '("setfnsymbol" "Name")
- '("mpfootnoterule" TeX-arg-size)
- "pagefootnoterule"
- "splitfootnoterule"
- ;; The following command references a label inside in a footnote
- '("footref" TeX-arg-ref)
+ '("DefineFNsymbolsTM"
+ (TeX-arg-eval completing-read
+ (TeX-argument-prompt nil nil "Name")
+ '("bringhurst" "chicago" "wiley"
+ "lamport" "lamport*"))
+ 1)
+ '("DefineFNsymbolsTM*"
+ (TeX-arg-eval completing-read
+ (TeX-argument-prompt nil nil "Name")
+ '("bringhurst" "chicago" "wiley"
+ "lamport" "lamport*"))
+ 1)
+ '("setfnsymbol"
+ (TeX-arg-eval completing-read
+ (TeX-argument-prompt nil nil "Name")
+ '("bringhurst" "chicago" "wiley"
+ "lamport" "lamport*")))
+
+ ;; 1.11 Option hang
"hangfootparskip"
"hangfootparindent"
- "footnotehint"
- '("footnotemargin" TeX-arg-size)
- "mpfootnoterule"
+
+ ;; 1.15 The multiple option
"multiplefootnotemarker"
- "multfootsep")
+ "multfootsep"
+
+ ;; 1.16 User interface
+ ;; The following command references a label inside in a footnote
+ '("footref" TeX-arg-ref)
+ "mpfootnotemark")
+
+ ;; 1.9 Option marginal
+ (LaTeX-add-lengths "footnotemargin")
+
+ ;; 1.13 Option splitrule
+ (when (LaTeX-provided-package-options-member "footmisc" "splitrule")
+ (TeX-add-symbols "mpfootnoterule"
+ "pagefootnoterule"
+ "splitfootnoterule"))
(when (and (featurep 'font-latex)
(eq TeX-install-font-lock 'font-latex-setup))
- (font-latex-add-keywords '(("DefineFNsymbols" "{[{")
- ("DefineFNsymbols*" "{[{")
- ("DefineFNsymbolsTM" "{{")
- ("DefineFNsymbolsTM*" "{{")
- ("setfnsymbol" "{")) 'function)
- (font-latex-add-keywords '(("footnoteref")) 'reference)))
+ (font-latex-add-keywords '(("DefineFNsymbols" "*{[{")
+ ("DefineFNsymbolsTM" "*{{")
+ ("setfnsymbol" "{"))
+ 'function)
+ (font-latex-add-keywords '(("footref"))
+ 'reference)))
TeX-dialect)
(defvar LaTeX-footmisc-package-options '("perpage" "side" "ragged"
- [AUCTeX-diffs] [elpa] externals/auctex 737fa11 20/25: Fix wrapping of active region with \[Hh]ologo macros, (continued)
- [AUCTeX-diffs] [elpa] externals/auctex 737fa11 20/25: Fix wrapping of active region with \[Hh]ologo macros, Tassilo Horn, 2021/03/21
- [AUCTeX-diffs] [elpa] externals/auctex 5afcc09 10/25: Add parsing support to style/comment.el, Tassilo Horn, 2021/03/21
- [AUCTeX-diffs] [elpa] externals/auctex 2848def 14/25: * style/geometry.el ("geometry"): Fontify \restoregeometry macro., Tassilo Horn, 2021/03/21
- [AUCTeX-diffs] [elpa] externals/auctex da52023 24/25: Discard `TeX-auto-update' to silence byte compiler, Tassilo Horn, 2021/03/21
- [AUCTeX-diffs] [elpa] externals/auctex 72e645f 13/25: ; * tex-buf.el (TeX-active-master): Fix comment., Tassilo Horn, 2021/03/21
- [AUCTeX-diffs] [elpa] externals/auctex 6db8a1a 06/25: ; Use @subsection, Tassilo Horn, 2021/03/21
- [AUCTeX-diffs] [elpa] externals/auctex b9f4f36 04/25: ; * doc/quickstart.texi (Editing Facilities): Fix formatting., Tassilo Horn, 2021/03/21
- [AUCTeX-diffs] [elpa] externals/auctex 0c90254 15/25: ; * tex-buf.el (TeX-command-region): Fix typo in comment., Tassilo Horn, 2021/03/21
- [AUCTeX-diffs] [elpa] externals/auctex 18bc7b6 18/25: Enable lexical binding in context-{en, nl}.el, Tassilo Horn, 2021/03/21
- [AUCTeX-diffs] [elpa] externals/auctex 1ad2d9e 17/25: Fix preview-cache-preamble after region typeset/preview, Tassilo Horn, 2021/03/21
- [AUCTeX-diffs] [elpa] externals/auctex f9c7245 22/25: Improve style/footmisc.el,
Tassilo Horn <=
- [AUCTeX-diffs] [elpa] externals/auctex 159c81d 08/25: ; * style/truncate.el: Fix mail address., Tassilo Horn, 2021/03/21
- [AUCTeX-diffs] [elpa] externals/auctex dbfb016 19/25: Use active region if it is a logo name., Tassilo Horn, 2021/03/21
- [AUCTeX-diffs] [elpa] externals/auctex e62bc9b 05/25: Remove eol format suffix from coding tag (bug#46117), Tassilo Horn, 2021/03/21
- [AUCTeX-diffs] [elpa] externals/auctex 094c298 23/25: Implement the user option TeX-output-dir, Tassilo Horn, 2021/03/21
- [AUCTeX-diffs] [elpa] externals/auctex 48fb645 25/25: Merge remote-tracking branch 'origin/master' into externals/auctex, Tassilo Horn, 2021/03/21