auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] [elpa] externals/auctex 8a2cdac 02/43: Add new style/fbox


From: Tassilo Horn
Subject: [AUCTeX-diffs] [elpa] externals/auctex 8a2cdac 02/43: Add new style/fbox.el
Date: Sat, 11 Apr 2020 15:05:18 -0400 (EDT)

branch: externals/auctex
commit 8a2cdac67c6d66809c20a4f7f934c35fa4e165ef
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>

    Add new style/fbox.el
    
    * Makefile.in (STYLESRC): Add new style.
    
    * style/fbox.el: New file.
---
 Makefile.in   |  2 +-
 style/fbox.el | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index 95bc0eb..666b686 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -170,7 +170,7 @@ STYLESRC = style/prosper.el \
           style/ocg-p.el     style/ocgx.el      style/thm-restate.el \
           style/pythontex.el style/dashundergaps.el style/beamerarticle.el \
           style/changelog.el style/ltugboat.el  style/beamerswitch.el \
-          style/multitoc.el  style/xkcdcolors.el
+          style/multitoc.el  style/fbox.el      style/xkcdcolors.el
 
 STYLEELC = $(STYLESRC:.el=.elc)
 
diff --git a/style/fbox.el b/style/fbox.el
new file mode 100644
index 0000000..bc3b5cf
--- /dev/null
+++ b/style/fbox.el
@@ -0,0 +1,51 @@
+;;; fbox.el --- AUCTeX style for `fbox.sty' (v0.03)
+
+;; Copyright (C) 2019 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <address@hidden>
+;; Maintainer: address@hidden
+;; Created: 2019-11-08
+;; Keywords: tex
+
+;; This file is part of AUCTeX.
+
+;; AUCTeX is free software; you can redistribute it and/or modify it
+;; under the terms of the GNU General Public License as published by
+;; the Free Software Foundation; either version 3, or (at your option)
+;; any later version.
+
+;; AUCTeX is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with AUCTeX; see the file COPYING.  If not, write to the Free
+;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+;; 02110-1301, USA.
+
+;;; Commentary:
+
+;; This file adds support for `fbox.sty' (v2.01) from 2019/11/04.
+;; `fbox.sty' is part of TeXLive.
+
+;; Silence the compiler:
+(declare-function font-latex-add-keywords
+                 "font-latex"
+                 (keywords class))
+
+(TeX-add-style-hook
+ "fbox"
+ (lambda ()
+   (TeX-add-symbols
+    '("fbox"  [ "Frame parts (combination of lrtb)" ] t)
+    '("fbox*" [ "Frame parts (combination of lrtb)" ] t))
+
+   ;; Fontification
+   (when (and (featurep 'font-latex)
+             (eq TeX-install-font-lock 'font-latex-setup))
+     (font-latex-add-keywords '(("fbox" "*[{"))
+                             'function)))
+ LaTeX-dialect)
+
+;;; fbox.el ends here



reply via email to

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