RepositoryTeXGBVương quốc Anh
cmhughes

cmhughes/latexindent.pl

Perl script to add indentation (leading horizontal space) to LaTeX files. It can modify line breaks before, during and after code blocks; it can perform text wrapping and paragraph line break removal. It can also perform string-based and regex-based substitutions/replacements. The script is customisable through its YAML interface.

1.1ksao
84fork
6issue
1lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: beautifier

#1 Repository của tuần

2
TINIX TRENDING·Chủ đề: beautify

#2 Repository của tuần

4
TINIX TRENDING·Chủ đề: perl

#4 Repository của tuần

🛠️ latexindent.pl — Trình định dạng LaTeX tự động bằng Perl

Tự động thêm thụt lề và làm đẹp mã nguồn LaTeX chỉ bằng một lệnh.

latexindent.pl là một script Perl dùng để định dạng lại (beautify/tidy/format/indent) mã trong các môi trường, lệnh, sau tiêu đề và khối mã đặc biệt trong file LaTeX (.tex, .sty, .cls). Dự án do Chris Hughes (cmhughes) phát triển, hiện là phiên bản 4.0.2.

✨ Điểm nổi bật

  • Thêm thụt lề tự động: chèn khoảng trắng ở đầu dòng cho mã trong môi trường và lệnh.
  • Căn chỉnh dấu phân cách: căn lề các ký tự như =, &, | trong môi trường và lệnh.
  • Điều chỉnh ngắt dòng: hỗ trợ xuống dòng theo câu, quấn thành phần và xóa ngắt dòng trong đoạn văn.
  • Thay thế chuỗi/regex: thực hiện thay thế dựa trên chuỗi hoặc biểu thức chính quy.
  • Tùy chỉnh YAML: cấu hình hành vi qua tệp cấu hình YAML.
  • Hỗ trợ Docker, Conda, pre-commit: dễ tích hợp vào pipeline phát triểp.
  • Hỗ trợ nền tảng đa OS: có bản thự thi độc lập cho Windows, Linux, macOS.

💡 Vì sao đáng chú ý

Không chỉ là công cụ thụt lề, latexindent.pl cung cấp toàn bộ hệ thống để làm đẹp mã LaTeX một cách thông minh và có cấu hình. Với khả năng căn chỉnh, điều chỉnh ngắt dòng và thay thế linh hoạt, nó giúp giảm đáng kể thời gian soạn thảo tài liệu LaTeX. Đặc biệt hữu ích cho dự án lớn hoặc nhóm phát triển cần đảm bảo định dạng mã đồng nhất.


#LaTeX #Formatter #Perl #OpenSource #TiniX }

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryC++
uncrustify/uncrustify

Code beautifier

3.1k
Nov 30, 2026
RepositoryGo
mvdan/sh

A shell parser, formatter, and interpreter with bash and zsh support; includes shfmt

9.2k
Nov 30, 2026
RepositoryPHP
prettier/plugin-php

Prettier PHP Plugin

1.9k
Nov 17, 2026
RepositoryTypeScript
Unibeautify/unibeautify

One Beautifier to rule them all, One Beautifier to clean them, One Beautifier to bring them all and in the darkness sheen them

554
Nov 25, 2026
RepositoryRuby
kvokka/pp_sql

Rails ActiveRecord SQL queries log beautifier

274
Nov 28, 2026
RepositoryPython
bitst0rm-pub/Formatter

🧜‍♀️ A Sublime Text plugin to beautify, minify, convert: CSS, SCSS, Sass, HTML, XML, SVG, JS,JavaScript, JSON, GraphQL, Markdown, TypeScript, Vue, Lua, YAML, Go, Perl, PHP, Python, Ruby, Rust, Haskell, Dart, Swift, Crystal, Bash, Shell, SQL, CSV, C, C++, C#, Objective-C, D, Java, Pawn, Julia, Blade, LaTeX, D2, Graphviz, Mermaid, PlantUML, Disasm..

162
Oct 9, 2025
RepositoryShell
cmilr/Git-Beautify-For-MacOS-Terminal

An easy-to-use set of config files to beautify Git in your MacOS or OS X terminal. If you find it hard to parse a jumble of mono-colored type on your command line, this set-up can help you tame the ugly bash beast.

132
Apr 21, 2021
RepositoryHTML
adogecheems/alist-beautification

Alist/OpenList 动态美化方案 | Alist/OpenList Dynamic Beautification Solution

71
Aug 21, 2026
RepositoryTypeScript
firecrawl/firecrawl

Firecrawl is the knowledge infrastructure to make your agents smarter. It connects your agents to the web, and to Alexandria, our library of everything else.

215.1k
Dec 2, 2026