This table contains a list of optional attributes that influence the generated outputs.
Name | Backends | Description | |||
---|---|---|---|---|---|
badges | xhtml11, html5 | Link badges (XHTML 1.1 and CSS) in document footers. By default badges are omitted (badges is undefined).
| |||
data-uri | xhtml11, html5 | Embed images using the data: uri scheme. | |||
css-signature | html5, xhtml11 | Set a CSS signature for the document (sets the id attribute of the HTML body element). CSS signatures provide a mechanism that allows users to personalize the document appearance. The term CSS signature was coined by Eric Meyer. | |||
disable-javascript | xhtml11, html5 | If the | |||
All backends | These three attributes control which document information files will be included in the the header of the output file:
Where $ asciidoc -a docinfo -b docbook mydoc.txt This next example will include $ asciidoc -a docinfo2 -b html4 mydoc.txt | ||||
html4, html5, xhtml11, docbook | Set the input and output document character set encoding. For example
the
| ||||
hr | html4 | Defines the html4 inter-section horizontal ruler element. By default
html4 top level sections are separated by a horizontal ruler
element, undefine this attribute or set it to an empty string if you
do not want them. The default html4 backend value for the hr
attribute is | |||
xhtml11, html5 | Link admonition paragraph and admonition block icon images and badge images. By default icons is undefined and text is used in place of icon images. | ||||
html4, html5, xhtml11, docbook | The name of the directory containing linked admonition icons,
navigation icons and the | ||||
imagesdir | html4, html5, xhtml11, docbook | If this attribute is defined it is prepended to the target image file name paths in inline and block image macros. | |||
keywords, description, title | html4, html5, xhtml11 | The keywords and description attributes set the correspondingly named HTML meta tag contents; the title attribute sets the HTML title tag contents. Their principle use is for SEO (Search Engine Optimisation). All three are optional, but if they are used they must appear in the document header (or on the command-line). If title is not specified the AsciiDoc document title is used. | |||
linkcss | html5, xhtml11 | Link CSS stylesheets and JavaScripts. By default linkcss is undefined in which case stylesheets and scripts are automatically embedded in the output document. | |||
html5, xhtml11 | Set the document maximum display width (sets the body element CSS max-width property). | ||||
numbered | html4, html5, xhtml11, docbook (XSL Stylesheets) | Adds section numbers to section titles. The docbook backend ignores numbered attribute entries after the document header. | |||
plaintext | All backends | If this global attribute is defined all inline substitutions are suppressed and block indents are retained. This option is useful when dealing with large amounts of imported plain text. | |||
quirks | xhtml11 | Include the | |||
revremark | docbook | A short summary of changes in this document revision. Must be defined prior to the first document section. The document also needs to be dated to output this attribute. | |||
footer-style | html4, html5, xhtml11 | Changes the "Last updated" field in the footer of the document or removes this field and the revision number (in the footer only). Can take 3 values:
This attribute can be set, for example, using | |||
scriptsdir | html5, xhtml11 | The name of the directory containing linked JavaScripts. See HTML stylesheets and JavaScript locations. | |||
sgml | docbook45 | The | |||
stylesdir | html5, xhtml11 | The name of the directory containing linked or embedded stylesheets. See HTML stylesheets and JavaScript locations. | |||
stylesheet | html5, xhtml11 | The file name of an optional additional CSS stylesheet. | |||
theme | html5, xhtml11 | Use alternative stylesheet (see Stylesheets). | |||
html5, xhtml11, docbook (XSL Stylesheets) | Adds a table of contents to the start of an article or book document.
The xhtml11 and html5 backends
| ||||
toc2 | html5, xhtml11 | Adds a scrollable table of contents in the left hand margin of an article or book document. Use the max-width attribute to change the content width. In all other respects behaves the same as the toc attribute. | |||
toc-placement | html5, xhtml11 | When set to auto (the default value)
| |||
toc-title | html5, xhtml11 | Sets the table of contents title (defaults to Table of Contents). | |||
toclevels | html5, xhtml11 | Sets the number of title levels (1..4) reported in the table of contents (see the toc attribute above). Defaults to 2 and must be used with the toc attribute. Example usage: $ asciidoc -a toc -a toclevels=3 doc/asciidoc.txt |