Settings are special configurations placed at the source document's Config Area that can affect the conversion process. Their syntax is:
%! keyword : value
List of valid keywords:
| Keyword | Description |
|---|---|
| Target | Set the default target to the document be converted to. |
| Options | Set the default options to be used on the conversion. The format is the same as the command line options. |
| Style | Set the document style. Used to define a CSS file for HTML/XHTML and to load a package in LaTeX. |
| Encoding | Set the document Character Set. Used if the document contains accented letters or other not-ASCII characters. |
| PreProc | Input filter. Sets "find and replace" rules to be applied on the Body Area of the source document. |
| PostProc | Output filter. Sets "find and replace" rules to be applied on the converted document. |
Example:
%!target : html %!options : --toc --toc-level 3 %!style : fancy.css %!encoding: UTF-8 %!preproc : "AMJ" "Aurelio Marinho Jargas" %!postproc: '<BODY.*?>' '<BODY bgcolor="yellow">'
Note that the spacing and capitalization of the keyword are ignored.
So you can also do %!Target:html and %! TARGET :html
.
Learn more about settings in Part VII - Mastering Settings.