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

AsciiDoc User Guide

The -e (—no-conf) option excludes the use of implicit configuration files, ensuring that only entries from the mydoc-html.conf configuration are used.

Inserting Blank Space

Adjust your style sheets to add the correct separation between block elements. Inserting blank paragraphs containing a single non-breaking space character {nbsp} works but is an ad hoc solution compared to using style sheets.

Closing Open Sections

You can close off section tags up to level N by calling the eval::[Section.setlevel(N)] system macro. This is useful if you want to include a section composed of raw markup. The following example includes a DocBook glossary division at the top section level (level 0):

ifdef::backend-docbook[]

eval::[Section.setlevel(0)]

+++++++++++++++++++++++++++++++

<glossary>

<title>Glossary</title>

<glossdiv>

...

</glossdiv>

</glossary>

+++++++++++++++++++++++++++++++

endif::backend-docbook[]

Validating Output Files

Use xmllint(1) to check the AsciiDoc generated markup is both well formed and valid. Here are some examples:

$ xmllint --nonet

--noout --valid

docbook-file.xml

$ xmllint

--nonet

--noout

--valid

xhtml11-file.html

$ xmllint

--nonet

--noout

--valid

--html html4-file.html

The —valid option checks the file is valid against the document type's DTD, if the DTD is not installed in your system's catalog then it will be fetched from it's Internet location. If you omit the —valid option the document will only be checked that it is well formed.

 

Glossary

Block element

An AsciiDoc block element is a document entity composed of one or more

 

whole lines of text.

Inline element

AsciiDoc inline elements occur within block element textual content, they

 

perform formatting and substitution tasks.

Formal element

An AsciiDoc block element that has a BlockTitle. Formal elements are

 

normally listed in front or back matter, for example lists of tables, examples

77