muse-rearrange-footnotes.pl - fix the footnote numbering in a muse document
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:
.fixed
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.
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.
Text::Amuse::Preprocessor::Footnotes
Text::Amuse::Preprocessor
To install Text::Amuse::Preprocessor, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Amuse::Preprocessor
CPAN shell
perl -MCPAN -e shell install Text::Amuse::Preprocessor
For more information on module installation, please visit the detailed CPAN module installation guide.