auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-diffs] [elpa] externals/auctex 55e8842 15/30: Treat \choice like


From: Tassilo Horn
Subject: [AUCTeX-diffs] [elpa] externals/auctex 55e8842 15/30: Treat \choice like \item
Date: Fri, 25 Sep 2020 11:00:13 -0400 (EDT)

branch: externals/auctex
commit 55e8842bcec6037ef4d294638388d736a67d14cf
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>

    Treat \choice like \item
    
    * style/exam.el ("exam"): Add "choice" to `LaTeX-item-regexp'.
    Simplify regexp for "subpart" and "subsubpart".
---
 style/exam.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/style/exam.el b/style/exam.el
index a1ce1b5..e84203f 100644
--- a/style/exam.el
+++ b/style/exam.el
@@ -123,14 +123,16 @@ Arguments NAME and TYPE are the same as for the function
 
    ;; Append us only once:
    (unless (and (string-match "question" LaTeX-item-regexp)
-                (string-match "subsub" LaTeX-item-regexp))
+                (string-match "sub" LaTeX-item-regexp))
      (set (make-local-variable 'LaTeX-item-regexp)
           (concat
            LaTeX-item-regexp
            "\\|"
+          "choice\\b"
+          "\\|"
            "\\(titled\\)?question\\b"
            "\\|"
-           "\\(sub\\|subsub\\)?part\\b"))
+           "\\(sub\\)*part\\b"))
      (LaTeX-set-paragraph-start))
 
    (TeX-add-symbols



reply via email to

[Prev in Thread] Current Thread [Next in Thread]