Text::Amuse::Compile::Templates - Built-in templates for Text::Amuse::Compile
Costructor. Options:
The directory where to search for templates.
Disclaimer: some things are needed for a correct layout/compilation. It's strongly reccomended to use the existing one (known to work as expected) as starting point for a custom template.
The following methods return a reference to a scalar with the templates. It should be self-evident which kind of template they return.
(not actually a template, it's the default CSS).
The HTML fragment with the body of the text (no HTML headers, no Muse headers).
Minimal (but valid) XHTML template, with a link to stylesheet.css. Meant to be used in the EPUB generation.
stylesheet.css
The LaTeX template, with dimension conditional.
The built-in LaTeX template supports the following options (they are passed verbatim and unescaped, so it's your responsibility to filter out garbage in an exposed environment (such a web interface).
Minimal and uncomplete LaTeX chunck, meant to be used when merging files.
Paper size, like a4, a5 or 210mm:11in. The width and heigth are swapped in some komascript version. Just keep this in mind and do some trial and error if you need custom dimensions.
The DIV of the typearea package. Defaults to 12. Go and read the doc.
typearea
The BCOR of the typearea package. Defaults to 0mm. Go and read the doc. It expects a TeX dimension like 10mm or 1in or 1.2cm.
Please note that this has no effect on the plain PDF output, as we, opinionately, force BCOR=0mm and oneside=true for this kind of output. But, of course, it does affect the imposed output.
The font size in point (should be an integer). Defaults to 10.
The system font name, such as Linux Libertine O or Charis SIL. This implementation uses XeLaTeX, so we can use system fonts. Defaults to Linux Libertine O.
Linux Libertine O
Charis SIL
Set it to a true value to have a oneside document. Default is true.
Set it to a true value to have a twosided document. Default is false.
In the last page the built in template supports the following options
At the top of the page
At the top, under sitename
At the top, under siteslogan
At the bottom of the page
Return the scalar ref associated to the given template file, if any.
Return the list of methods for template generation
None.
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.