muse-compile.pl -- format your muse document using Text::Amuse
muse-compile.pl [ options ] file1.muse [ file2.muse , .... ]
This program uses Text::Amuse to produce usable output in HTML, EPUB, LaTeX and PDF format.
By default, all formats will be generated. You can specify which format you want using one or more of the following options:
Full HTML output.
Full EPUB output.
HTML body alone (wrapped in a div tag)
div
LaTeX output
PDF output. Beware: the source LaTeX is not rebuilt if exists. So to force a rebuilding, you have to pass --tex --pdf
--tex --pdf
PDF imposed on A4 paper, with a variable signature in the range of 40-80
As above, but on Letter paper.
The directory with the templates.
Option to populated the above directory with the built-in templates.
A file where we can append the report failures
This option can be repeated at will. The key/value pairs will be passed to every template we process, regardless of the type, even if only the built-in LaTeX template support them.
Example:
muse-compile --extra site=http://anarhija.net \ --extra papersize=a6 --extra division=15 --extra twoside=true \ --extra bcor=10mm --extra mainfont="Charis SIL" \ --extra sitename="Testsite" \ --extra siteslogan="Anticopyright" \ --extra logo=mylogo file.muse
Keep in mind that in this case mylogo has to be or an absolute filename (not reccomended, because the full path will remain in the .tex source), or a basename (even without extension) which can be found by kpsewhich.
mylogo
kpsewhich
To install Text::Amuse::Compile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Amuse::Compile
CPAN shell
perl -MCPAN -e shell install Text::Amuse::Compile
For more information on module installation, please visit the detailed CPAN module installation guide.