>From f2b7869cf5736400f7fc22241708d5128fc96c68 Mon Sep 17 00:00:00 2001 From: Arash Esbati Date: Sat, 12 Sep 2015 20:02:10 +0200 Subject: [PATCH 1/3] Add new style fontenc.el. * Makefile.in (STYLESRC): Add new style. * style/fontenc.el: New file. --- ChangeLog | 6 ++++++ Makefile.in | 2 +- style/fontenc.el | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 style/fontenc.el diff --git a/ChangeLog b/ChangeLog index 9e474fe..697c5d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-09-12 Arash Esbati + + * Makefile.in (STYLESRC): Add new style. + + * style/fontenc.el: New file. + 2015-09-09 Mosè Giordano * style/polyglossia.el: Remove diff --git a/Makefile.in b/Makefile.in index 68b785a..2a11b68 100644 --- a/Makefile.in +++ b/Makefile.in @@ -151,7 +151,7 @@ STYLESRC = style/prosper.el \ style/newpxtext.el style/newpxmath.el style/pdfpages.el \ style/mnras.el style/environ.el style/polyglossia.el \ style/vwcol.el style/textpos.el style/transparent.el \ - style/gloss-italian.el + style/fontenc.el style/gloss-italian.el STYLEELC = $(STYLESRC:.el=.elc) diff --git a/style/fontenc.el b/style/fontenc.el new file mode 100644 index 0000000..4ef0ac4 --- /dev/null +++ b/style/fontenc.el @@ -0,0 +1,52 @@ +;;; fontenc.el --- AUCTeX style for `fontenc.sty' (v1.99g) + +;; Copyright (C) 2015 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: address@hidden +;; Created: 2015-09-12 +;; 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 `fontenc.sty' (v1.99g) from 2005/09/27. +;; `fontenc.sty' is a standard LaTeX package and part of TeXLive. + +;;; Code: + +(defvar LaTeX-fontenc-package-options + '(;; 128+ glyph encodings (text) + "OT1" "OT2" "OT3" "OT4" "OT6" + ;; 256 glyph encodings (text) + "T1" "T2A" "T2B" "T2C" "T3" "T4" "T5" + ;; 256 glyph encodings (text extended) + "X2" + ;; Other encodings + "LY1" "LV1" "LGR") + "Package options for the fontenc package.") + +(defun LaTeX-fontenc-package-options () + "Prompt for package options for the fontenc package." + (mapconcat 'identity + (TeX-completing-read-multiple + "Encoding(s): " + LaTeX-fontenc-package-options) ",")) + +;;; fontenc.el ends here -- 2.5.1