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

推荐订阅源

Recent Announcements
Recent Announcements
人人都是产品经理
人人都是产品经理
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
GbyAI
GbyAI
博客园 - 司徒正美
美团技术团队
Vercel News
Vercel News
IT之家
IT之家
U
Unit 42
Y
Y Combinator Blog
罗磊的独立博客
Microsoft Security Blog
Microsoft Security Blog
MongoDB | Blog
MongoDB | Blog
Jina AI
Jina AI
V
Visual Studio Blog
B
Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
MyScale Blog
MyScale Blog
博客园 - 叶小钗
A
About on SuperTechFans
WordPress大学
WordPress大学
Hugging Face - Blog
Hugging Face - Blog
B
Blog RSS Feed

elpa/gnu.git, branch externals/auctex

Release GNU AUCTeX 14.2.0 - elpa/gnu.git * latex.el (LaTeX-what-macro): Fix chars to skip backwards. - elpa/gnu.git * tex-ispell.el: Consolidate regexp for tabular environments. - elpa/gnu.git ; * latex.el (LaTeX-what-macro): Fix last change. - elpa/gnu.git * 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 environment hooks - elpa/gnu.git Sort predefined hooks - elpa/gnu.git Allow additional properties for in-buffer completion - elpa/gnu.git
Add new style/lineno.el - elpa/gnu.git
Arash Esbati · 2026-06-10 · via elpa/gnu.git, branch externals/auctex

* NEWS.org (Added): Announce the new style. * style/lineno.el: New file.

diff --git a/NEWS.org b/NEWS.org
index cd9f3f515ed..d9f9ba209d8 100644
--- a/NEWS.org
+++ b/NEWS.org

@@ -11,7 +11,7 @@

** Added

-- Add new support files =style/lua-unicode-math.el=,

+- Add new support files =style/lineno.el=, =style/lua-unicode-math.el=,

=style/sourcesans.el= and =style/sourceserif.el=.

** Changed

diff --git a/style/lineno.el b/style/lineno.el
new file mode 100644
index 00000000000..c93dac8e4e1
--- /dev/null
+++ b/style/lineno.el

@@ -0,0 +1,126 @@

+;;; lineno.el --- AUCTeX style for `lineno.sty' (v5.9) -*- lexical-binding: t; -*-

+

+;; Copyright (C) 2026 Free Software Foundation, Inc.

+

+;; Author: Arash Esbati <arash@gnu.org>

+;; Maintainer: auctex-devel@gnu.org

+;; Created: 2026-06-05

+;; Keywords: tex

+

+;; This file is part of AUCTeX.

+

+;; AUCTeX is free software; you can redistribute it and/or modify it

+;; under the terms of the GNU General Public License as published by the

+;; Free Software Foundation; either version 3, or (at your option) any

+;; later version.

+

+;; AUCTeX is distributed in the hope that it will be useful, but WITHOUT

+;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or

+;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License

+;; for more details.

+

+;; You should have received a copy of the GNU General Public License

+;; along with this program. If not, see <https://www.gnu.org/licenses/>.

+

+;;; Commentary:

+

+;; This file adds support for `lineno.sty' (v5.9) from 2026-03-08.

+;; `lineno.sty' is part of TeXLive.

+

+;;; Code:

+

+(require 'tex)

+(require 'latex)

+

+;; Silence the compiler:

+(declare-function font-latex-add-keywords "font-latex" (keywords class))

+

+(TeX-add-style-hook

+ "lineno"

+ (lambda ()

+ (TeX-add-symbols

+ ;; 3.2 How to turn on line numbering

+ '("linenumbers" ["Number"])

+ '("linenumbers*")

+

+ ;; 3.3 How to turn off line numbering

+ "nolinenumbers"

+

+ ;; 4.1 Running line numbers

+ "setrunninglinenumbers"

+

+ ;; 4.1.1 Reseting or setting the line number

+ '("resetlinenumber" ["Number"])

+

+ '("runninglinenumbers" ["Number"])

+ '("runninglinenumbers*" )

+

+ ;; 4.2 Pagewise line numbers

+ "setpagewiselinenumbers"

+ "pagewiselinenumbers"

+

+ ;; 4.2.1 Margin switching

+ "switchlinenumbers"

+ "switchlinenumbers*"

+

+ ;; 4.2.2 Running mode with margin switching1

+ "runningpagewiselinenumbers"

+ "realpagewiselinenumbers"

+

+ ;; 4.3 Margin selection

+ "leftlinenumbers" "leftlinenumbers*"

+ "rightlinenumbers" "rightlinenumbers*"

+

+ ;; 4.6 Numbering only one in five lines

+ '("modulolinenumbers" ["Number"])

+

+ ;; 4.7 How the line numbers look like

+ "linenumberfont"

+ "thelinenumber"

+

+ ;; 5 Line number references

+ '("linelabel" TeX-arg-define-label))

+

+ (LaTeX-add-environments

+ ;; 3.2 How to turn on line numbering

+ '("linenumbers" ["Number"])

+ '("linenumbers*")

+

+ ;; 4.1 Running line numbers

+ '("runninglinenumbers" ["Number"])

+ '("runninglinenumbers*")

+

+ ;; 4.2 Pagewise line numbers

+ '("pagewiselinenumbers"))

+

+ ;; 4.7 How the line numbers look like

+ (LaTeX-add-lengths "linenumbersep")

+

+ ;; Fontification

+ (when (and (featurep 'font-latex)

+ (eq TeX-install-font-lock 'font-latex-setup))

+ (font-latex-add-keywords '(("linenumbers" "*[")

+ ("resetlinenumber" "[")

+ ("runninglinenumbers" "*[")

+ ("switchlinenumbers" "*")

+ ("leftlinenumbers" "*")

+ ("rightlinenumbers" "*")

+ ("modulolinenumbers" "["))

+ 'function)

+ (font-latex-add-keywords '("nolinenumbers"

+ "setrunninglinenumbers"

+ "setpagewiselinenumbers"

+ "pagewiselinenumbers"

+ "runningpagewiselinenumbers"

+ "realpagewiselinenumbers")

+ 'function-noarg)

+ (font-latex-add-keywords '(("linelabel" "{"))

+ 'reference)))

+ TeX-dialect)

+

+(defvar LaTeX-lineno-package-options

+ '("left" "right" "switch" "switch*" "pagewise" "running"

+ "modulo" "mathline" "displaymath")

+ "Package options for the lineno package.")

+

+;;; lineno.el ends here