>From e575352a9842e8b257bf79d881bdd74d9a6db01d Mon Sep 17 00:00:00 2001 From: Arash Esbati Date: Sat, 22 Aug 2015 10:30:13 +0200 Subject: [PATCH 1/5] Add fontification for `\newcolumntype'. * style/array.el ("array"): Add fontification for `\newcolumntype'. --- ChangeLog | 5 +++++ style/array.el | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7201d85..c60975e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-08-22 Arash Esbati + + * style/array.el ("array"): Add fontification for + `\newcolumntype'. + 2015-08-21 Mosè Giordano * tex-buf.el (TeX-check-engine): New customizable variable. diff --git a/style/array.el b/style/array.el index 058eb92..645371d 100644 --- a/style/array.el +++ b/style/array.el @@ -90,7 +90,13 @@ and make it buffer local. " ;; `array.sty' adds some new column specification letters. (set (make-local-variable 'LaTeX-array-column-letters) - (concat LaTeX-array-column-letters "m" "b"))) + (concat LaTeX-array-column-letters "m" "b")) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("newcolumntype" "{[{")) + 'function))) LaTeX-dialect) (defvar LaTeX-array-package-options nil -- 2.5.0