NAME

muse-rearrange-footnotes.pl

DESCRIPTION

This script takes an arbitrary number of files as argument, and rearrange the footnotes numbering, barfing if the footnotes found in the body don't match the footnotes themselves. This is handy if you inserted footnotes at random position, or if the footnotes are numbered by section or chapter.

The only thing that matters is the order.

Example input file content:

This [1] is a text [1] with three footnotes [4]

[1] first

[1] second

[2] third

Output in file with .fixed extension:

This [1] is a text [2] with three footnotes [3]

[1] first

[2] second

[3] third

The original file is overwritten if the option --overwrite is provided.

SYNOPSIS

muse-rearrange-footnotes.pl file.muse

SEE ALSO

Text::Amuse::Preprocessor::Footnotes