[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 39c4e77 07/25: Add new style/truncate.el
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 39c4e77 07/25: Add new style/truncate.el |
Date: |
Sun, 21 Mar 2021 11:44:40 -0400 (EDT) |
branch: externals/auctex
commit 39c4e77df59395b6b5988e199b8129f48d9bc77a
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Add new style/truncate.el
* Makefile.in (STYLESRC): Add new style.
* style/truncate.el: New file.
---
Makefile.in | 3 ++-
style/truncate.el | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 61 insertions(+), 1 deletion(-)
diff --git a/Makefile.in b/Makefile.in
index 9afc328..671ae2c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -173,7 +173,8 @@ STYLESRC = style/prosper.el \
style/multitoc.el style/fbox.el style/xkcdcolors.el \
style/ltxguide.el style/revtex4-2.el style/overpic.el \
style/tex-live.el style/algorithm.el style/algpseudocode.el \
- style/appendix.el style/scholax.el style/extramarks.el
+ style/appendix.el style/scholax.el style/extramarks.el \
+ style/truncate.el
STYLEELC = $(STYLESRC:.el=.elc)
diff --git a/style/truncate.el b/style/truncate.el
new file mode 100644
index 0000000..a008e61
--- /dev/null
+++ b/style/truncate.el
@@ -0,0 +1,59 @@
+;;; truncate.el --- AUCTeX style for `truncate.sty' -*- lexical-binding: t;
-*-
+
+;; Copyright (C) 2021 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <esbati@gnu.org>
+;; Maintainer: auctex-devel@gnu.org
+;; Created: 2021-01-31
+;; 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 Street, Fifth Floor, Boston,
+;; MA 02110-1301 USA.
+
+;;; Commentary:
+
+;; This file adds support for `truncate.sty' v3.6 form 2001-08-20.
+
+;;; Code:
+
+(require 'tex)
+
+;; Silence the compiler:
+(declare-function font-latex-add-keywords
+ "font-latex"
+ (keywords class))
+
+(TeX-add-style-hook
+ "truncate"
+ (lambda ()
+
+ (TeX-add-symbols
+ '("truncate" [ "Marker" ] (TeX-arg-length "Width") "Text")
+ '("TruncateMarker" 0))
+
+ ;; Fontification
+ (when (and (featurep 'font-latex)
+ (eq TeX-install-font-lock 'font-latex-setup))
+ (font-latex-add-keywords '(("truncate" "[{{"))
+ 'textual)))
+ TeX-dialect)
+
+(defvar LaTeX-truncate-package-options
+ '("breakwords" "breakall" "hyphenate" "fit")
+ "Package options for the truncate package.")
+
+;;; truncate.el ends here
- [elpa] externals/auctex updated (04d69c5 -> 48fb645), Tassilo Horn, 2021/03/21
- [elpa] externals/auctex 42f1bc3 03/25: ; Fix texinfo error, Tassilo Horn, 2021/03/21
- [elpa] externals/auctex 2e9b714 09/25: Add new style/footnotehyper.el, Tassilo Horn, 2021/03/21
- [elpa] externals/auctex 0e616b8 16/25: Enable lexical binding in plain-tex.el, Tassilo Horn, 2021/03/21
- [elpa] externals/auctex 8bc74dd 01/25: Update style/bigdelim.el to package version 2.6, Tassilo Horn, 2021/03/21
- [elpa] externals/auctex f87d90f 02/25: Document how to load AUCTeX from a local Git repo, Tassilo Horn, 2021/03/21
- [elpa] externals/auctex 39c4e77 07/25: Add new style/truncate.el,
Tassilo Horn <=
- [elpa] externals/auctex 5afcc09 10/25: Add parsing support to style/comment.el, Tassilo Horn, 2021/03/21
- [elpa] externals/auctex 4384639 11/25: Add new style/changes.el, Tassilo Horn, 2021/03/21
- [elpa] externals/auctex 18bc7b6 18/25: Enable lexical binding in context-{en, nl}.el, Tassilo Horn, 2021/03/21
- [elpa] externals/auctex 737fa11 20/25: Fix wrapping of active region with \[Hh]ologo macros, Tassilo Horn, 2021/03/21
- [elpa] externals/auctex da52023 24/25: Discard `TeX-auto-update' to silence byte compiler, Tassilo Horn, 2021/03/21
- [elpa] externals/auctex 653e272 12/25: Deprioritize "\\.drv\\'" in auto-mode-alist, Tassilo Horn, 2021/03/21
- [elpa] externals/auctex 72e645f 13/25: ; * tex-buf.el (TeX-active-master): Fix comment., Tassilo Horn, 2021/03/21
- [elpa] externals/auctex 2848def 14/25: * style/geometry.el ("geometry"): Fontify \restoregeometry macro., Tassilo Horn, 2021/03/21
- [elpa] externals/auctex 331b24c 21/25: Use "wrap region or query for logo" also in \[hH]ologoVariant, Tassilo Horn, 2021/03/21
- [elpa] externals/auctex 094c298 23/25: Implement the user option TeX-output-dir, Tassilo Horn, 2021/03/21