惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
有赞技术团队
有赞技术团队
WordPress大学
WordPress大学
月光博客
月光博客
T
Tailwind CSS Blog
阮一峰的网络日志
阮一峰的网络日志
小众软件
小众软件
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Last Week in AI
Last Week in AI
大猫的无限游戏
大猫的无限游戏
S
SegmentFault 最新的问题
罗磊的独立博客
Jina AI
Jina AI
酷 壳 – CoolShell
酷 壳 – CoolShell
宝玉的分享
宝玉的分享
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
量子位
雷峰网
雷峰网
Apple Machine Learning Research
Apple Machine Learning Research
美团技术团队
博客园 - 聂微东
V
V2EX

elpa/gnu.git, branch externals/auctex

* latex.el (LaTeX-what-macro): Improve macro recognition. - elpa/gnu.git Preserve `crm--choose-completion-string' - elpa/gnu.git - GNU ELPA Accept '-' as macro modifier - elpa/gnu.git Add new styles - elpa/gnu.git ; * tex-info.el (outline-heading-alist): Silence the compiler. - elpa/gnu.git Update style/simpleicons.el to package v16.29.0 - elpa/gnu.git Update NEWS.org for new preview feature - elpa/gnu.git Robustify check for escaped math switches/togglers - elpa/gnu.git Fix custom prompt with a default-value - elpa/gnu.git Fix prompt with a default-value - elpa/gnu.git Make `TeX-listify' an obsolete alias - elpa/gnu.git Fix 'syntax-propertize because of narrowing!' error - elpa/gnu.git Update style/ltx-talk.el to class v0.6.0 - elpa/gnu.git elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA Return context for RefTeX also for macros - elpa/gnu.git ; Fix last change - elpa/gnu.git Add in-buffer completion for citation keys - elpa/gnu.git ; Adjust Copyright years - elpa/gnu.git Improve query of the optional float placement - elpa/gnu.git Sort predefined hooks - elpa/gnu.git Allow additional properties for in-buffer completion - elpa/gnu.git Use ConTeXt Mark XL instead of LMTX - elpa/gnu.git ; * tex.el (TeX-output-dir): Fix last change. - elpa/gnu.git * tex.el (TeX-output-dir): Fix docstring acc. to last change. - elpa/gnu.git ; * NEWS.org (Changed): Announce last change. - elpa/gnu.git Change default value of `ConTeXt-Mark-version' - elpa/gnu.git
Sort predefined environment hooks - elpa/gnu.git
Arash Esbati · 2026-08-07 · via elpa/gnu.git, branch externals/auctex

* doc/auctex.texi (Adding Environments): Sort environment hooks alphabetically. Add an entry for `LaTeX-env-document'. Shorten the entry for `LaTeX-env-item-args'. (Adding Environments): Use @dots{}.

diff --git a/doc/auctex.texi b/doc/auctex.texi
index 039a1b28159..756fdb9dd38 100644
--- a/doc/auctex.texi
+++ b/doc/auctex.texi

@@ -6117,16 +6117,42 @@ Following is a list of available hooks for

@code{LaTeX-add-environments}:

@ftable @code

+@item LaTeX-env-args

+Insert the given environment with arguments. You can use this as a hook

+in case you want to specify multiple complex arguments just like in

+elements of @code{TeX-add-symbols}. This is most useful if the

+specification of arguments to be prompted for with strings and strings

+wrapped in a vector as described above is too limited.

+

+Here is an example from @file{listings.el} which calls a function with

+one argument in order to prompt for a @samp{key=value} list to be inserted as

+an optional argument of the @samp{lstlisting} environment:

+

+@lisp

+(LaTeX-add-environments

+ '("lstlisting" LaTeX-env-args

+ [TeX-arg-key-val (LaTeX-listings-key-val-options)]))

+@end lisp

+

+@item LaTeX-env-array

+Insert the given array-like environment with position and column

+specifications.

+

+@item LaTeX-env-bib

+Insert the given environment with a label for a bibitem.

+

+@item LaTeX-env-document

+Insert a @samp{\documentclass} macro if there's none already and prompt

+for the insertion of @samp{\usepackage} macros.

+

@item LaTeX-env-item

Insert the given environment and the first item.

@item LaTeX-env-item-args

Insert the given environment plus further arguments, and the first item.

-You can use this as a hook in case you want to specify multiple complex

-arguments just like in elements of @code{TeX-add-symbols}. Here is an

-example from @file{enumitem.el} in order to prompt for a @samp{key=value}

-list to be inserted as an optional argument to the @samp{itemize}

-environment:

+Here is an example from @file{enumitem.el} in order to prompt for a

+@samp{key=value} list to be inserted as an optional argument to the

+@samp{itemize} environment:

@lisp

(LaTeX-add-environments

'("itemize" LaTeX-env-item-args

@@ -6136,10 +6162,6 @@ environment:

@item LaTeX-env-figure

Insert the given figure-like environment with a caption and a label.

-@item LaTeX-env-array

-Insert the given array-like environment with position and column

-specifications.

-

@item LaTeX-env-label

Insert the given environment with a label.

@@ -6155,42 +6177,23 @@ the first item.

Insert the given minipage-like environment with position and width

specifications.

-@item LaTeX-env-tabular*

-Insert the given tabular*-like environment with width, position and

-column specifications.

-

@item LaTeX-env-picture

Insert the given environment with width and height specifications.

-@item LaTeX-env-bib

-Insert the given environment with a label for a bibitem.

-

-@item LaTeX-env-args

-Insert the given environment with arguments. You can use this as a hook

-in case you want to specify multiple complex arguments just like in

-elements of @code{TeX-add-symbols}. This is most useful if the

-specification of arguments to be prompted for with strings and strings

-wrapped in a vector as described above is too limited.

-

-Here is an example from @file{listings.el} which calls a function with

-one argument in order to prompt for a @samp{key=value} list to be inserted as

-an optional argument of the @samp{lstlisting} environment:

-

-@lisp

-(LaTeX-add-environments

- '("lstlisting" LaTeX-env-args

- [TeX-arg-key-val (LaTeX-listings-key-val-options)]))

-@end lisp

+@item LaTeX-env-tabular*

+Insert the given tabular*-like environment with width, position and

+column specifications.

@end ftable

Some packages provide environments that are rarely useful to non-expert

users. Those should be marked as expert environments using

@code{LaTeX-declare-expert-environments}.

-@defun LaTeX-declare-expert-environments @var{style} @var{environments}...

+@defun LaTeX-declare-expert-environments @var{style} @var{environments} @dots{}

Declare @var{environments} as expert environments of @var{style}.

-Expert environments are completed depending on @code{TeX-complete-expert-commands}.

+Expert environments are completed depending on

+@code{TeX-complete-expert-commands}.

@end defun