branch: externals/auctex
commit 363b77821886a6b4d063587d9de50905d18046cc
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>
Update style/multicol.el to package version 1.9b
* style/multicol.el ("multicol"): Add new macros. Change the
query for \columnbreak which accepts an optional argument.
Add fontification support for relevant macros.
(LaTeX-multicol-package-options): Add new option "colcation".
---
style/multicol.el | 35 +++++++++++++++++++++++++++++++----
1 file changed, 31 insertions(+), 4 deletions(-)
diff --git a/style/multicol.el b/style/multicol.el
index d9f7284..6fc65b9 100644
--- a/style/multicol.el
+++ b/style/multicol.el
@@ -26,13 +26,18 @@
;;; Commentary:
-;; This file adds support for `multicol.sty'.
+;; This file adds support for `multicol.sty' v1.9b from 2021/10/28.
;;; Code:
(require 'tex)
(require 'latex)
+;; Silence the compiler:
+(declare-function font-latex-add-keywords
+ "font-latex"
+ (keywords class))
+
(TeX-add-style-hook
"multicol"
(lambda ()
@@ -48,18 +53,40 @@
"columnseprulecolor"
'("raggedcolumns" 0)
'("flushcolumns" 0)
- '("columnbreak" 0))
+ ;; 2.3 Manually breaking columns
+ '("newcolumn" 0)
+ '("columnbreak" [ "How much [0 - 4]" ])
+
+ ;; Preface to version 1.7
+ "RLmulticolcolumns"
+ "LRmulticolcolumns")
+
+ ;; Preface to version 1.8
+ (when (LaTeX-provided-package-options-member "multicol" "colaction")
+ (TeX-add-symbols '("docolaction" 3)))
(LaTeX-add-lengths "premulticols"
"postmulticols"
"multicolsep"
"multicolbaselineskip"
"multicolovershoot"
- "multicolundershoot"))
+ "multicolundershoot")
+
+ (LaTeX-add-counters "collectmore")
+
+ ;; Fontification
+ (when (and (featurep 'font-latex)
+ (eq TeX-install-font-lock 'font-latex-setup))
+ (font-latex-add-keywords '(("columnbreak" "")
+ ("newcolumn" "")
+ ("LRmulticolcolumns" "")
+ ("RLmulticolcolumns" ""))
+ 'warning)))
TeX-dialect)
(defvar LaTeX-multicol-package-options
- '("errorshow" "infoshow" "balancingshow" "markshow" "debugshow" "grid")
+ '("errorshow" "infoshow" "balancingshow" "markshow" "debugshow"
+ "grid" "colaction")
"Package options for the multicol package.")
;;; multicol.el ends here