leonickl/bibtex-formatter

There is no license information available for the latest version (v2.3.0) of this package.

A simplistic BibTeX formatter in PHP

Maintainers

Package info

github.com/leonickl/bibtex-formatter

Type:project

pkg:composer/leonickl/bibtex-formatter

Statistics

Installs: 10

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v2.3.0 2025-11-10 22:12 UTC

This package is auto-updated.

Last update: 2026-03-10 22:46:15 UTC


README

Installation

composer global require leonickl/bibtex-formatter

Usage

format-bibtex literature.tex [--save|--print|--log|--dump]
  • --print prints the result to the console (default option)
  • --save overrides the original file
  • --log prints a step-wise info about each token and the current state of the app
  • --dump dumps 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.
  • ...