NAME

muse-rearrange-footnotes.pl

DESCRIPTION

This script takes a file 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.

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 never overwritten.

SYNOPSIS

muse-rearrange-footnotes.pl file.muse

SEE ALSO

Text::Amuse::Preprocessing