NAME

muse-rearrange-footnotes.pl - fix the footnote numbering in a muse document

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 [ --overwrite ] file.muse

If the flag overwrite is not passed, the output will be left in file.muse.fixed, otherwise the file is modified in place.

SEE ALSO

Text::Amuse::Preprocessor::Footnotes

Text::Amuse::Preprocessor