Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Rackham S.AsciiDoc user guide Rev7.1.2.2006.pdf
Скачиваний:
19
Добавлен:
23.08.2013
Размер:
298.24 Кб
Скачать

AsciiDoc User Guide

reference is deemed undefined and the line containing the reference is dropped from the output. If the expression evaluates to True the attribute evaluates to an empty string. In all remaining cases the attribute evaluates to a string representation of the <expression> result.

{include:<filename>}

Substitutes contents of the file named <filename>.

The included file is read at the time of attribute substitution.

If the file does not exist a warning is emitted and the line containing the reference is dropped from the output file.

Tabs are expanded based on the current tabsize.

{sys:<command>}

Substitutes the stdout generated by the execution of the shell <command>.

{sys2:<command>}

Substitutes the stdout and stderr generated by the execution of the shell <command>.

System reference behavior

System attribute arguments can contain non-system attribute references.

Closing brace characters inside system attribute arguments must be escaped them with a backslash.

Intrinsic Attributes

Intrinsic attributes are simple attributes that are created automatically from document header parameters, asciidoc(1) command-line arguments, environment parameters along with attributes defined in the default configuration files. Here's the list of predefined intrinsic attributes:

{asciidoc-version}

the version of asciidoc(1)

{asciidoc-dir}

the asciidoc(1) application directory

{user-dir}

the ~/.asciidoc directory (if it exists)

{authorinitials}

author initials (from document header)

{author}

author's full name ({firstname} {middlename}

 

{lastname})

{authored}

empty string '' if {author} or {email} defined,

 

otherwise undefined.

{date}

document date (from document header)

{doctitle}

document title (from document header)

{email}

author's email address (from document header)

{firstname}

author first name (from document header)

{lastname}

author last name (from document header)

{localdate}

the current date

{localtime}

the current time

{manname}

manpage name (defined in NAME section)

{manpurpose}

manpage (defined in NAME section)

{mantitle}

document title minus the manpage volume number

{manvolnum}

manpage volume number (1..8) (from document header)

{middlename}

author middle name (from document header)

{revision}

document revision number (from document header)

{title}

section title (defined titled element substitution

 

sections)

{sectnum}

section number (defined in section titles

59