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

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

[elpa] 11/299: * style/mflogo.el: New style by Mads Jensen <address@hidd


From: Stefan Monnier
Subject: [elpa] 11/299: * style/mflogo.el: New style by Mads Jensen <address@hidden>. * style/epigraph.el: Ditto.
Date: Sun, 02 Nov 2014 03:09:51 +0000

monnier pushed a commit to branch externals/auctex
in repository elpa.

commit 44cc6a6360417202ea500af5e0a48474f96856c3
Author: Tassilo Horn <address@hidden>
Date:   Thu Dec 27 19:44:27 2012 +0000

    * style/mflogo.el: New style by Mads Jensen <address@hidden>.
    * style/epigraph.el: Ditto.
---
 ChangeLog         |    6 ++++
 style/epigraph.el |   73 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 style/mflogo.el   |   48 ++++++++++++++++++++++++++++++++++
 3 files changed, 127 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 877f3d5..58f945e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-12-27  Tassilo Horn  <address@hidden>
+
+       * style/mflogo.el: New style by Mads Jensen <address@hidden>.
+
+       * style/epigraph.el: Ditto.
+
 2012-12-27  Ikumi Keita <address@hidden>
 
        * amsmath.el ("amsmath"): Add support for the alignedat
diff --git a/style/epigraph.el b/style/epigraph.el
new file mode 100644
index 0000000..515ff9d
--- /dev/null
+++ b/style/epigraph.el
@@ -0,0 +1,73 @@
+;;; epigraph.el --- AUCTeX style for `epigraph.sty'
+
+;; Copyright (C) 2012 Free Software Foundation, Inc.
+
+;; Author: Mads Jensen <address@hidden>
+;; Maintainer: address@hidden
+;; Created: 2012-02-11
+;; 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 `epigraph.sty'.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "epigraph"
+ (lambda ()
+   (TeX-add-symbols
+    '("epigraph" t t)
+    '("qitem" t t)
+    '("epigraphhead" [ "Distance (a number)" ] t)
+    '("dropchapter" TeX-arg-size)
+    "epigraphwidth"
+    "textflush"
+    "epigraphflush"
+    "sourceflush"
+    "epigraphsize"
+    "epigraphrule"
+    "beforeepigraphskip"
+    "afterepigraphskip"
+    "undodrop"
+    "cleartoevenpage")
+
+   (LaTeX-add-environments
+    '("epigraphs" LaTeX-env-item))
+
+   (add-to-list 'LaTeX-item-list '("epigraphs" . LaTeX-epigraph-qitem))
+
+   (when (and (featurep 'font-latex)
+             (eq TeX-install-font-lock 'font-latex-setup))
+     (font-latex-add-keywords '(("epigraph" "{{")
+                             '("qitem" "{{")
+                             '("dropchapter" "{")
+                             '("epigraphhead" "{")) 'function)
+     (font-latex-add-keywords '("cleartoevenpage") 'warning))))
+
+(defvar LaTeX-epigraph-package-options nil
+  "Package options for the epigraph package.")
+
+;; adapted from latex.el:`LaTeX-item-bib'
+(defun LaTeX-epigraph-qitem ()
+  "Insert a new qitem for use in the epigraphs environment."
+  (TeX-insert-macro "qitem"))
+
+;;; epigraph.el ends here
diff --git a/style/mflogo.el b/style/mflogo.el
new file mode 100644
index 0000000..6cda90e
--- /dev/null
+++ b/style/mflogo.el
@@ -0,0 +1,48 @@
+;;; mflogo.el --- AUCTeX style for `mflogo.sty'
+
+;; Author: Mads Jensen <address@hidden>
+;; Maintainer: address@hidden
+;; Created: 2011-02-02
+;; 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 `mflogo.sty'.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "mflogo"
+ (lambda ()
+   (TeX-add-symbols
+    '("textlogo" 1)
+    '("logofamily" 1))
+
+   ;; Fontification
+   (when (and (featurep 'font-latex)
+             (eq TeX-install-font-lock 'font-latex-setup))
+     (font-latex-add-keywords '(("logofamily" "{")
+                               ("textlogo" "{"))
+                             'function))))
+
+(defvar LaTeX-mflogo-package-options nil
+  "Package options for the mflogo package.")
+
+;;; mflogo.el ends here



reply via email to

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