[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Verbatim in DocBook?
- Subject: Re: Verbatim in DocBook?
- From: Gerard Beekmans <>
- Date: Wed, 3 May 2000 02:18:21 -0400
In-Reply-To: <20000503021716.B1550@alpha.bruce>; from "Bruce Richardson" on Wed, May 03, 2000 at 02:17:16AM
- Organization: TTS Linux Solutions
- Resent-Date: Wed, 3 May 2000 10:11:47 -0400 (EDT)
- Resent-Message-ID: <-hFroD.A.8h.OODE5@murphy>
> Does DocBook have an equivalent to the <verb> tag in Linuxdoc? I'm trying
> to convert a guide I was writing in LinuxDoc to DocBook but it has a
> directory tree done in ascii and it just comes out a mess in DocBook.
Give <LiteralLayout>...</LiteralLayout> a try. As far as I can tell it
does the same as <verb> in LinuxDoc. From DocBook - The Definite Guide
LiteralLayout - A block of text in which line breaks and white space are
to be reproduced faithfully
This element is displayed "verbatim"; whitespace and linebreaks within
this element are significant.
Unlike ProgramListing and Screen, which usually imply a font change,
LiteralLayout does not. How spaces are to be represented faithfully in a
proportional font is not addressed by DocBook.
In DocBook V3.1, the Class attribute was added to give users control over
the font used in LiteralLayouts. If the Class attribute is specified and its
value is Monospaced, then the LiteralLayout will be presented in a monospaced
font, probably the same one used for other verbatim environments. The default
value for Class is Normal, meaning that no font change will occur.
TTS Linux Solutions
-*- If Linux doesn't have the solution, you have the wrong problem -*-
To UNSUBSCRIBE, email to firstname.lastname@example.org
with a subject of "unsubscribe". Trouble? Contact email@example.com