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

推荐订阅源

量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
G
Google Developers Blog
博客园 - 三生石上(FineUI控件)
Last Week in AI
Last Week in AI
IT之家
IT之家
博客园_首页
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
爱范儿
爱范儿
大猫的无限游戏
大猫的无限游戏
博客园 - Franky
U
Unit 42
Security Archives - TechRepublic
Security Archives - TechRepublic
C
Cisco Blogs
S
Schneier on Security
T
Threatpost
阮一峰的网络日志
阮一峰的网络日志
Microsoft Security Blog
Microsoft Security Blog
The Cloudflare Blog
博客园 - 聂微东
C
Cybersecurity and Infrastructure Security Agency CISA
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Blog — PlanetScale
Blog — PlanetScale
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Engineering at Meta
Engineering at Meta
M
MIT News - Artificial intelligence
aimingoo的专栏
aimingoo的专栏
博客园 - 叶小钗
Cisco Talos Blog
Cisco Talos Blog
P
Palo Alto Networks Blog
MongoDB | Blog
MongoDB | Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
V
V2EX
L
Lohrmann on Cybersecurity
Latest news
Latest news
小众软件
小众软件
有赞技术团队
有赞技术团队
Know Your Adversary
Know Your Adversary
Simon Willison's Weblog
Simon Willison's Weblog
B
Blog
雷峰网
雷峰网
K
Kaspersky official blog
美团技术团队
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Check Point Blog
Recorded Future
Recorded Future
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
H
Help Net Security

elpa/gnu.git, branch externals/auctex

Fix 'syntax-propertize because of narrowing!' error - elpa/gnu.git elpa/gnu.git - GNU ELPA Activate new xref backend - elpa/gnu.git elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA ; Fix description about `LaTeX-expl3-syntax-table' - elpa/gnu.git Delete compat function `TeX-always' - elpa/gnu.git Fix fontification of verb macros followed by space - elpa/gnu.git elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA Record workaround for autonum previews - elpa/gnu.git elpa/gnu.git - GNU ELPA Update style/eso-pic.el to package v3.0e ; * style/contract.el ("contract"): Speed up the additions. - elpa/gnu.git ; * style/contract.el ("contract"): Speed up the additions. ; * doc/faq.texi: Provide a more accessible Lisp form. (Bug#81034) - elpa/gnu.git ; * doc/faq.texi: Provide a more accessible Lisp form. (Bug#81034) ; * style/expl3.el (TeX-arg-expl3-macro): Fix docstring. - elpa/gnu.git ; * style/expl3.el (TeX-arg-expl3-macro): Fix docstring. Update style/simpleicons.el to package v16.17.0 - elpa/gnu.git Update style/simpleicons.el to package v16.17.0 elpa/gnu.git - GNU ELPA * style/contract.el ("contract"): Fix usage of \refParN. Improve matching of header end/trailer start in ConTeXt - elpa/gnu.git Improve matching of header end/trailer start in ConTeXt elpa/gnu.git - GNU ELPA Improve style/standalone.el elpa/gnu.git - GNU ELPA Update style/lua-unicode-math.el to package v0.8 Update style/babel.el to package v26.4 - elpa/gnu.git * style/babel-german.el ("babel-german"): Add missing macros. - elpa/gnu.git Update style/simpleicons.el to package v16.12.0 - elpa/gnu.git elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA Add compatibility shim for obsolete preview option
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