auctex-diffs
[Top][All Lists]
Advanced

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

master b24dcb4f 1/2: Track changes in LaTeX kernel 2022-06-01


From: Arash Esbati
Subject: master b24dcb4f 1/2: Track changes in LaTeX kernel 2022-06-01
Date: Sun, 12 Jun 2022 13:59:57 -0400 (EDT)

branch: master
commit b24dcb4feb823329b79578ae6feb44b88775a4b2
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>

    Track changes in LaTeX kernel 2022-06-01
    
    * font-latex.el (font-latex-built-in-keyword-classes): Add entry
    for the top level macro \NewMarkClass.
    
    * latex.el (TeX-read-hook): Query for "insertmark" hook.
    (LaTeX-common-initialization): Support macros for the new mark
    mechanism and floating point and integer calculations.
    
    * style/ltxdoc.el (LaTeX-ltxdoc-class-options): Add "doc2".
    
    * style/xparse.el ("xparse"): Add "IfBlank*" series of tests.
---
 font-latex.el   |  1 +
 latex.el        | 46 ++++++++++++++++++++++++++++++++++++++++++++--
 style/ltxdoc.el |  2 +-
 style/xparse.el |  5 ++++-
 4 files changed, 50 insertions(+), 4 deletions(-)

diff --git a/font-latex.el b/font-latex.el
index 385be358..92b6047a 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -365,6 +365,7 @@ variable `font-latex-fontify-sectioning'." ',num)
       ("labelformat" "{{") ("linespread" "{")
       ("AddToHook" "{[{") ("RemoveFromHook" "{[") ("AddToHookNext" "{{")
       ("ProvidesClass" "{[") ("ProvidesPackage" "{[") ("ProvidesFile" "{[")
+      ("NewMarkClass" "{")
       ;; XXX: Should macros without arguments rather be listed in a
       ;; separate category with 'noarg instead of 'command handling?
       ("enspace" "") ("enskip" "") ("quad" "") ("qquad" "") ("nonumber" "")
diff --git a/latex.el b/latex.el
index 88f23033..92ae9680 100644
--- a/latex.el
+++ b/latex.el
@@ -3386,7 +3386,9 @@ INHERIT-INPUT-METHOD are passed to
                   ;; From ltshipout-doc.pdf
                   "shipout"
                   ;; From ltpara-doc.pdf
-                  "para")))
+                  "para"
+                  ;; From ltmarks-doc.pdf
+                  "insertmark")))
          (place (lambda (&optional opt pr)
                   (completing-read
                    (TeX-argument-prompt opt pr "Where")
@@ -7927,7 +7929,47 @@ function would return non-nil and `(match-string 1)' 
would return
                      (TeX-argument-prompt t nil "Format")
                      '("\\arabic" "\\roman" "\\Roman" "\\alph" "\\Alph")]
        (TeX-arg-counter)
-       (TeX-arg-counter "Within counter"))))
+       (TeX-arg-counter "Within counter"))
+
+     ;; Added in LaTeX 2022-06-01
+     '("NewMarkClass" "Class")
+     '("InsertMark" "Class" t)
+     '("TopMark"
+       [TeX-arg-completing-read ("page"         "previous-page"
+                                 "column"       "previous-column"
+                                 "first-column" "last-column")
+                                "Region"]
+       (TeX-arg-completing-read ("2e-left" "2e-right" "2e-right-nonempty")
+                                "Class"))
+     '("FirstMark"
+       [TeX-arg-completing-read ("page"         "previous-page"
+                                 "column"       "previous-column"
+                                 "first-column" "last-column")
+                                "Region"]
+       (TeX-arg-completing-read ("2e-left" "2e-right" "2e-right-nonempty")
+                                "Class"))
+     '("LastMark"
+       [TeX-arg-completing-read ("page"         "previous-page"
+                                 "column"       "previous-column"
+                                 "first-column" "last-column")
+                                "Region"]
+       (TeX-arg-completing-read ("2e-left" "2e-right" "2e-right-nonempty")
+                                "Class"))
+     '("IfMarksEqualTF"
+       [TeX-arg-completing-read ("page"         "previous-page"
+                                 "column"       "previous-column"
+                                 "first-column" "last-column")
+                                "Region"]
+       (TeX-arg-completing-read ("2e-left" "2e-right" "2e-right-nonempty")
+                                "Class")
+       (TeX-arg-completing-read ("top" "first" "last")
+                                "Position 1")
+       (TeX-arg-completing-read ("top" "first" "last")
+                                "Position 2")
+       2)
+     '("fpeval" t)
+     '("dimeval" t)
+     '("skipeval" t) ))
 
   (TeX-run-style-hooks "LATEX")
 
diff --git a/style/ltxdoc.el b/style/ltxdoc.el
index 16c26e1f..feeb300d 100644
--- a/style/ltxdoc.el
+++ b/style/ltxdoc.el
@@ -87,7 +87,7 @@
   (progn
     (TeX-load-style "article")
     (append (remove "a5paper" LaTeX-article-class-options)
-            '("nocfg")))
+            '("nocfg" "doc2")))
   "Class options for the ltxdoc class.
 All options are passed to article class, \"a5paper\" is disabled
 by ltxdoc.  Therefore it is also removed here.")
diff --git a/style/xparse.el b/style/xparse.el
index fd9bb328..b2a2fb05 100644
--- a/style/xparse.el
+++ b/style/xparse.el
@@ -1,6 +1,6 @@
 ;;; xparse.el --- AUCTeX style for `xparse.sty' version 2020-03-06  -*- 
lexical-binding: t; -*-
 
-;; Copyright (C) 2013, 2020, 2021 Free Software Foundation, Inc.
+;; Copyright (C) 2013, 2020--2022 Free Software Foundation, Inc.
 
 ;; Maintainer: auctex-devel@gnu.org
 ;; Author: Mosè Giordano <mose@gnu.org>
@@ -311,6 +311,9 @@ TYPE is one of the symbols mac or env."
     '("IfValueTF" 3)
     '("IfValueT" 2)
     '("IfValueF" 2)
+    '("IfBlankTF" 3)
+    '("IfBlankT" 2)
+    '("IfBlankF" 2)
     "BooleanTrue"
     "BooleanFalse"
     ;; Argument processors



reply via email to

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