Noeud:Literal Layout, Noeud « Next »:Program Listing, Noeud « Previous »:Line Specific Environments, Noeud « Up »:Line Specific Environments
LiteralLayout = ( ( CO | LineAnnotation | %para.char.mix; )+ )
Elements : LiteralLayout
, CO
, LineAnnotation
.
Attributes : Class
.
A LiteralLayout
element is used to define a verbatim environment. In
such an environment, the space and newline characters are respected.
The Class
attribute is used to specify if a monospaced font
(Monospaced
) or a variable size font (Normal
) must be used.
The default value for this attribute is Normal
.
Some other verbatim environments have a more important semantics:
ProgramListing
for the listing of a program, Screen
for a
screenshot, etc. The LiteralLayout
element will be used when no
other verbatim environment is suitable.
The LiteralLayout
element can contain inline elements, as well as
CO
and LineAnnotation
elements.
The inline elements give the contents to render verbatim. The
LineAnnotation
elements are used to insert notes into the verbatim
environment. The CO
elements are used to insert cross-references to
descriptions outside the verbatim environment.
<para> <literallayout class="monospaced"> <co id="corne1"> <co id="corne2"> , , / \ ((__-^^-,-^^-__)) <lineannotation>A</lineannotation> `-_---' `---_-' `--|o` 'o|--' <lineannotation>GNU</lineannotation> \ ` / ): :( <lineannotation>head</lineannotation> :o_o: "-"</literallayout> <calloutlist> <callout arearefs="horn1 horn2"> <para>be careful, that's prickly!</para> </callout> </calloutlist> </para>