This table contains a list of optional attributes that influence the generated outputs.
| Name | Backends | Description | |||
|---|---|---|---|---|---|
badges | xhtml11 | Link badges (XHTML 1.1, CSS and Get Firefox!) in document footers. By default badges are omitted (badges is undefined).
| |||
data-uri | xhtml11 | Embed images using the data: uri scheme. | |||
disable-javascript | xhtml11 | If the | |||
docinfo | All backends | If the | |||
html4, xhtml11, docbook | Set the input and output document character set encoding. For example
the
| ||||
xhtml11 | 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, xhtml11, docbook | The name of the directory containing linked admonition and navigation
icons. Defaults to | ||||
imagesdir | html4, xhtml11, docbook | If this attribute is defined it is prepended to the target image file name paths in inline and block image macros. | |||
linkcss | xhtml11 | Link CSS stylesheets and JavaScripts (see the stylesdir and scriptsdir attributes below). By default linkcss is undefined in which case stylesheets and scripts are automatically embedded in the output document. | |||
max-width | xhtml11 | Set the document maximum display width (sets the body element CSS max-width property). max-width definition must precede the document header. | |||
numbered | html4, 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. | |||
scriptsdir | xhtml11 | The name of the directory containing linked JavaScripts. Defaults to
| |||
sgml | docbook | The | |||
stylesdir | xhtml11 | The name of the directory containing linked stylesheets. Defaults to
| |||
stylesheet | xhtml11 | The file name of an optional additional CSS stylesheet. If you are embedding the stylesheet specify the actual file location; if you are linking CSS specify the file name relative to the directory specified by the stylesdir attribute. | |||
theme | xhtml11 | Use alternative stylesheets (see Stylesheets). | |||
xhtml11, docbook (XSL Stylesheets) | Adds a table of contents to the start of an article or book document.
The xhtml11 backend
| ||||
toc-title | xhtml11 | Sets the table of contents title (defaults to Table of Contents). | |||
toclevels | 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 |