


























| author | Arash Esbati <arash@gnu.org> | 2026-03-31 09:11:08 +0200 |
|---|---|---|
| committer | Arash Esbati <arash@gnu.org> | 2026-03-31 09:13:44 +0200 |
| commit | f0f80f5bfd678fbd58cfeb8e8db472e442b69522 (patch) | |
| tree | 727cec3ba23831057580088ab770b313a1eea58c | |
| parent | f67a5341788fda4fce977be52fa5128188da1fcb (diff) | |
Improve style/standalone.el
* style/standalone.el ("standalone"): Add \fi after \ifstandalone(beamer)? macros. Fix the name of value "image|key".
| -rw-r--r-- | style/standalone.el | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/style/standalone.el b/style/standalone.el
index b11d3f99ddd..0aecb8081be 100644
--- a/style/standalone.el
+++ b/style/standalone.el
@@ -1,6 +1,6 @@
;;; standalone.el --- AUCTeX style for `standalone.cls|sty' -*- lexical-binding: t; -*-
-;; Copyright (C) 2024 Free Software Foundation, Inc.
+;; Copyright (C) 2024--2026 Free Software Foundation, Inc.
;; Author: Arash Esbati <arash@gnu.org>
;; Maintainer: auctex-devel@gnu.org
@@ -33,9 +33,7 @@
(require 'latex)
;; Silence the compiler:
-(declare-function font-latex-add-keywords
- "font-latex"
- (keywords class))
+(declare-function font-latex-add-keywords "font-latex" (keywords class))
(defun LaTeX-standalone-auto-cleanup ()
"Parse the value of \"class\" key and run the appropriate style hook."
@@ -53,8 +51,10 @@
;; General macros/env's provided by the class and the package:
(TeX-add-symbols
- '("ifstandalonebeamer" 0)
- '("ifstandalone" 0))
+ '("ifstandalonebeamer"
+ TeX-arg-set-exit-mark (TeX-arg-literal "\\fi"))
+ '("ifstandalone"
+ TeX-arg-set-exit-mark (TeX-arg-literal "\\fi")))
;; Fontification:
(when (and (featurep 'font-latex)
@@ -101,7 +101,7 @@
(TeX-add-symbols
'("standaloneconfig"
(TeX-arg-key-val (("group" ("true" "false"))
- ("mode" ("tex" "image" "tex|image" "build"
+ ("mode" ("tex" "image" "image|tex" "build"
"buildmissing" "buildnew"))
("extension")
("build"))))
@@ -109,7 +109,7 @@
[TeX-arg-key-val (lambda ()
(append (LaTeX-graphicx-key-val-options)
'(("group" ("true" "false"))
- ("mode" ("tex" "image" "tex|image" "build"
+ ("mode" ("tex" "image" "image|tex" "build"
"buildmissing" "buildnew"))
("extension")
("build"))))]
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。