diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d6d351f..a600cd0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,7 +30,7 @@ repos: - id: remove-crlf exclude: \.rockspec$ - repo: https://github.com/codespell-project/codespell - rev: v2.4.1 + rev: v2.4.2 hooks: - id: codespell additional_dependencies: @@ -42,7 +42,7 @@ repos: args: - --msg-filename - repo: https://github.com/editorconfig-checker/editorconfig-checker.python - rev: 3.6.0 + rev: 3.6.1 hooks: - id: editorconfig-checker - repo: https://github.com/jumanjihouse/pre-commit-hooks @@ -50,7 +50,7 @@ repos: hooks: - id: check-mailmap - repo: https://github.com/rhysd/actionlint - rev: v1.7.10 + rev: v1.7.12 hooks: - id: actionlint - repo: https://github.com/adrienverge/yamllint @@ -72,7 +72,7 @@ repos: - mdformat-config - mdformat-web - repo: https://github.com/DavidAnson/markdownlint-cli2 - rev: v0.20.0 + rev: v0.22.0 hooks: - id: markdownlint-cli2 additional_dependencies: diff --git a/packages/texcat/README.md b/packages/texcat/README.md index 93575bd..0d7da65 100644 --- a/packages/texcat/README.md +++ b/packages/texcat/README.md @@ -21,26 +21,26 @@ It supports color themes: ```sh $ hyperfine -Nw10 'texcat test.lua' 'texcat --syntax-type=textmate test.lua' 'pygmentize test.lua' 'bat test.lua' Benchmark 1: texcat test.lua - Time (mean ± σ): 56.8 ms ± 1.9 ms [User: 49.8 ms, System: 6.3 ms] - Range (min … max): 54.4 ms … 64.2 ms 50 runs +Time (mean ± σ): 56.8 ms ± 1.9 ms [User: 49.8 ms, System: 6.3 ms] +Range (min … max): 54.4 ms … 64.2 ms 50 runs Benchmark 2: texcat --syntax-type=textmate test.lua - Time (mean ± σ): 73.1 ms ± 11.2 ms [User: 70.7 ms, System: 7.4 ms] - Range (min … max): 62.0 ms … 89.7 ms 47 runs +Time (mean ± σ): 73.1 ms ± 11.2 ms [User: 70.7 ms, System: 7.4 ms] +Range (min … max): 62.0 ms … 89.7 ms 47 runs Benchmark 3: pygmentize test.lua - Time (mean ± σ): 154.4 ms ± 19.9 ms [User: 140.0 ms, System: 12.8 ms] - Range (min … max): 137.4 ms … 217.3 ms 21 runs +Time (mean ± σ): 154.4 ms ± 19.9 ms [User: 140.0 ms, System: 12.8 ms] +Range (min … max): 137.4 ms … 217.3 ms 21 runs Benchmark 4: bat test.lua - Time (mean ± σ): 8.0 ms ± 0.5 ms [User: 7.4 ms, System: 4.2 ms] - Range (min … max): 7.0 ms … 10.0 ms 429 runs +Time (mean ± σ): 8.0 ms ± 0.5 ms [User: 7.4 ms, System: 4.2 ms] +Range (min … max): 7.0 ms … 10.0 ms 429 runs Summary - bat test.lua ran - 7.14 ± 0.50 times faster than texcat test.lua - 9.18 ± 1.52 times faster than texcat --syntax-type=textmate test.lua - 19.40 ± 2.77 times faster than pygmentize test.lua +bat test.lua ran +7.14 ± 0.50 times faster than texcat test.lua +9.18 ± 1.52 times faster than texcat --syntax-type=textmate test.lua +19.40 ± 2.77 times faster than pygmentize test.lua ``` ### LaTeX output @@ -49,21 +49,21 @@ Summary $ hyperfine -Nw10 'texcat --output-format=latex test.lua' 'texcat --output-format=latex --syntax-type=textmate test.lua' 'pygmentize -f latex -O full=True test.lua' Benchmark 1: texcat --output-format=latex test.lua - Time (mean ± σ): 56.3 ms ± 1.2 ms [User: 49.6 ms, System: 6.1 ms] - Range (min … max): 54.9 ms … 60.9 ms 53 runs +Time (mean ± σ): 56.3 ms ± 1.2 ms [User: 49.6 ms, System: 6.1 ms] +Range (min … max): 54.9 ms … 60.9 ms 53 runs Benchmark 2: texcat --output-format=latex --syntax-type=textmate test.lua - Time (mean ± σ): 63.8 ms ± 0.8 ms [User: 61.5 ms, System: 7.0 ms] - Range (min … max): 62.5 ms … 66.5 ms 45 runs +Time (mean ± σ): 63.8 ms ± 0.8 ms [User: 61.5 ms, System: 7.0 ms] +Range (min … max): 62.5 ms … 66.5 ms 45 runs Benchmark 3: pygmentize -f latex -O full=True test.lua - Time (mean ± σ): 110.7 ms ± 1.2 ms [User: 99.2 ms, System: 10.7 ms] - Range (min … max): 109.1 ms … 114.3 ms 27 runs +Time (mean ± σ): 110.7 ms ± 1.2 ms [User: 99.2 ms, System: 10.7 ms] +Range (min … max): 109.1 ms … 114.3 ms 27 runs Summary - texcat --output-format=latex test.lua ran - 1.13 ± 0.03 times faster than texcat --output-format=latex --syntax-type=textmate test.lua - 1.97 ± 0.05 times faster than pygmentize -f latex -O full=True test.lua +texcat --output-format=latex test.lua ran +1.13 ± 0.03 times faster than texcat --output-format=latex --syntax-type=textmate test.lua +1.97 ± 0.05 times faster than pygmentize -f latex -O full=True test.lua ``` ## Dependencies @@ -130,39 +130,39 @@ extra_servers = [ ```sh $ texcat --help Usage: /home/wzy/Desktop/texrocks/packages/texcat/bin/texcat [-h] - [--completion {bash,zsh,fish}] [--output ] - [--syntax ] [--theme ] - [--syntax-type {textmate,tree-sitter}] - [--theme-type {textmate}] [--extensions-dir ] - [--output-format {ansi,empty,latex,preamble.tex,test,tex,txt}] - [--list {themes,syntaxes,extensions_dirs,colors,links}] - [--command-prefix ] - [--math-escape ] [] ... +[--completion {bash,zsh,fish}] [--output ] +[--syntax ] [--theme ] +[--syntax-type {textmate,tree-sitter}] +[--theme-type {textmate}] [--extensions-dir ] +[--output-format {ansi,empty,latex,preamble.tex,test,tex,txt}] +[--list {themes,syntaxes,extensions_dirs,colors,links}] +[--command-prefix ] +[--math-escape ] [] ... Arguments: - file file name +file file name Options: - -h, --help Show this help message and exit. - --completion {bash,zsh,fish} - Output a shell completion script for the specified shell. - --output output file name, - means stdout - --syntax set syntax, auto means decided by extension - --theme set theme, auto means first theme such as Abyss - --syntax-type {textmate,tree-sitter} - syntax highlight type (default: tree-sitter) - --theme-type {textmate} - color scheme type (default: textmate) - --extensions-dir - directories for VSCode extensions and tree-sitter grammars/queries - --output-format {ansi,empty,latex,preamble.tex,test,tex,txt} - output format (default: ansi) - --list {themes,syntaxes,extensions_dirs,colors,links} - list all themes/syntaxes/... (default: themes) - --command-prefix - command prefix for TeX - --math-escape - the scope to escape $math TeX code$ (default: comment) +-h, --help Show this help message and exit. +--completion {bash,zsh,fish} +Output a shell completion script for the specified shell. +--output output file name, - means stdout +--syntax set syntax, auto means decided by extension +--theme set theme, auto means first theme such as Abyss +--syntax-type {textmate,tree-sitter} +syntax highlight type (default: tree-sitter) +--theme-type {textmate} +color scheme type (default: textmate) +--extensions-dir +directories for VSCode extensions and tree-sitter grammars/queries +--output-format {ansi,empty,latex,preamble.tex,test,tex,txt} +output format (default: ansi) +--list {themes,syntaxes,extensions_dirs,colors,links} +list all themes/syntaxes/... (default: themes) +--command-prefix +command prefix for TeX +--math-escape +the scope to escape $math TeX code$ (default: comment) $ texcat lua/texcat.lua --output-format=latex --output=main.tex $ lualatex main.tex ``` diff --git a/packages/texdef/README.md b/packages/texdef/README.md index 659c2bd..92f68b7 100644 --- a/packages/texdef/README.md +++ b/packages/texdef/README.md @@ -8,7 +8,7 @@ A reimplementation of . $ lx add -b texdef $ texdef TeX This is LuaHBTeX, Version 1.23.3 (TeX Live 2026/dev) - system commands enabled. +system commands enabled. \TeX -> T\kern -.1667em\lower .5ex\hbox {E}\kern -.125emX $ lx remove -b texdef diff --git a/packages/texluap/README.md b/packages/texluap/README.md index 87f8c0b..0413257 100644 --- a/packages/texluap/README.md +++ b/packages/texluap/README.md @@ -11,17 +11,17 @@ Usage: tlua [-h] [-e STMT] [-l NAME] [-p] [-v] [-i] [