在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):cmhughes/latexindent.pl开源软件地址(OpenSource Url):https://github.com/cmhughes/latexindent.pl开源编程语言(OpenSource Language):TeX 85.2%开源软件介绍(OpenSource Introduction):latexindent.pl
It has the ability to align delimiters in environments and commands, and can modify line breaks. version
authorChris Hughes (cmhughes) exampleA simple example follows; there are many more features available, detailed in full within the documentation. Before: \begin{one}
latexindent.pl adds leading
space to code blocks.
\begin{two}
It aims to beautify .tex, .sty
and .cls files. It is customisable
via its YAML interface.
\end{two}
\end{one} After running
then you receive: \begin{one}
latexindent.pl adds leading
space to code blocks.
\begin{two}
It aims to beautify .tex, .sty
and .cls files. It is customisable
via its YAML interface.
\end{two}
\end{one} tl;dr, a quick-start section is available for those short of time. documentationFor complete details, please see:
getting startedperl usersYou'll need
in the same directory. You'll need a few readily-available perl modules. Full details are given within the Appendix of the documentation; you might also like to see .travis.yml for Linux/MacOS users, and .appveyor.yml for Strawberry perl users. Windows users without perlWindows users who do not have a perl installation might prefer to get
conda usersIf you use conda you'll only need
this will install the executable and all its dependencies (including perl) in the activate environment.
You don't even have to worry about Important: the executable name is docker usersIf you use latexindent via docker you'll only need
pre-commitYou can use
You can add a testingA nice way to test the script is to navigate to the test-cases directory, and then run the command (on Linux/Mac -- sorry, a Windows test-case version is not available):
importantThis script may not work for your style of formatting; I highly recommend comparing the outputfile.tex to make sure that nothing has been changed (or removed) in a way that will damage your file. I recommend using each of the following:
feature requestsI'm happy to review feature requests, but I make no promises as to if they will be implemented; if they can be implemented, I make no promises as to how long it will take to implement them, and in which order I do so -- some features are more difficult than others! Feel free to post on the issues page of this repository, but please do use the given issue template! development modelI follow the development model given here: http://nvie.com/posts/a-successful-git-branching-model/ which means that latexindent.pl always has (at least) two branches:
The
and then I merge it into the
perl versionI develop latexindent.pl on Ubuntu Linux, using perlbrew; I currently develop on perl version v5.34.1 related projectsYou might like to checkout the following related projects on github. thank youThank you to the contributors to the project! quotesI find that the following quotes resonate with me with regards to my approach to
GitHub Actions
build statusI use both changelogchangelog.md provides details of the history of the project. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论