leonickl / bibtex-formatter
A simplistic BibTeX formatter in PHP
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:project
pkg:composer/leonickl/bibtex-formatter
Requires
- php: >=8.4
README
Installation
composer global require leonickl/bibtex-formatter
Usage
format-bibtex literature.tex [--save|--print|--log|--dump]
--printprints the result to the console (default option)--saveoverrides the original file--logprints a step-wise info about each token and the current state of the app--dumpdumps the resulting PHP datastructure to the console
Warning: The original file will be overwritten by this!
Features
This formatter only supports simple entries of the form
@type{reference, key = {value}, other = 5, ... }
The formatter
- adds trailing commas,
- aligns
=signs above each other, - and sets indentation to 4 spaces.
- ...