Mercurial > hg > dotemacs
comparison elpa/auctex-12.2.4/style/flashcards.el @ 207:ded909e32640
auctex: new version from ELPA
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Fri, 08 Jan 2021 19:42:09 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
206:c4742df2304d | 207:ded909e32640 |
---|---|
1 ;;; flashcards.el --- AUCTeX style for the flashcards class. | |
2 | |
3 ;; Copyright (C) 2007, 2018 Free Software Foundation, Inc. | |
4 | |
5 ;; Author: Ralf Angeli <angeli@caeruleus.net> | |
6 ;; Maintainer: auctex-devel@gnu.org | |
7 ;; Created: 2007-04-23 | |
8 ;; Keywords: tex | |
9 | |
10 ;; This file is part of AUCTeX. | |
11 | |
12 ;; AUCTeX is free software; you can redistribute it and/or modify it | |
13 ;; under the terms of the GNU General Public License as published by | |
14 ;; the Free Software Foundation; either version 3, or (at your option) | |
15 ;; any later version. | |
16 | |
17 ;; AUCTeX is distributed in the hope that it will be useful, but | |
18 ;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
20 ;; General Public License for more details. | |
21 | |
22 ;; You should have received a copy of the GNU General Public License | |
23 ;; along with AUCTeX; see the file COPYING. If not, write to the Free | |
24 ;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | |
25 ;; 02110-1301, USA. | |
26 | |
27 ;;; Commentary: | |
28 | |
29 ;; This file adds support for the flashcards class. | |
30 | |
31 ;;; Code: | |
32 | |
33 ;; Silence the compiler: | |
34 (declare-function font-latex-add-keywords | |
35 "font-latex" | |
36 (keywords class)) | |
37 | |
38 (TeX-add-style-hook | |
39 "flashcards" | |
40 (lambda () | |
41 (TeX-add-symbols | |
42 '("cardfrontstyle" ["Format"] "Style") | |
43 '("cardfrontfoot" "Footer text") | |
44 '("cardbackstyle" ["Format"] "Style") | |
45 '("cardfrontheadstyle" ["Format"] "Style") | |
46 '("cardfrontfootstyle" ["Format"] "Style") | |
47 "cardmargin" | |
48 "cardpaper" | |
49 "cardpapermode" | |
50 "cardrows" | |
51 "cardcolumns" | |
52 "cardheight" | |
53 "cardwidth") | |
54 (LaTeX-add-environments '("flashcard" ["Header"] "Front side")) | |
55 ;; Fontification | |
56 (when (and (fboundp 'font-latex-add-keywords) | |
57 (eq TeX-install-font-lock 'font-latex-setup)) | |
58 (font-latex-add-keywords '(("cardfrontstyle" "[{") | |
59 ("cardfrontfoot" "{") | |
60 ("cardbackstyle" "[{") | |
61 ("cardfrontheadstyle" "[{") | |
62 ("cardfrontfootstyle" "[{")) | |
63 'variable))) | |
64 LaTeX-dialect) | |
65 | |
66 ;;; flashcards.el ends here |