<preformat>

Preformatted Text

Used for preformatted text, such as computer code, in which white space (such as tabs, line feeds, and spaces) should be preserved

This element’s content typically is displayed or printed in a monofont to preserve character alignment.

Remarks

Conversion Note: The @position attribute may be used to indicate whether this element must be anchored at its exact location within the text or whether it may float, for example, to the top of the next page, next column, to the end of a logical file, or within a separate window. For the typical <preformat> element, the “float or anchor” decision will be governed by the size of the object. For example, short code fragments are typically anchored whereas full programs are typically placed elsewhere such as in a separate window or at the end of a book (or book component).

Attributes

id Identifier
Orientation Orientation
position Position
preformat-type Type of Preformatted Text
specific-use Specific Use
xml:lang Language
xml:space Space

Related Elements

Poetry may be tagged with the <preformat> element if spacing is critical, but usually poetry should be tagged with the <verse-group> element, which may not preserve the exact indentation as it is, but is likely to be displayed in a proportional font.

Content Model

<!ELEMENT  preformat    %preformat-model;                            >

Expanded Content Model

(#PCDATA | alt-text | long-desc | email | ext-link | multi-link | uri | attrib | permissions | bold | italic | monospace | overline | overline-start | overline-end | roman | sans-serif | sc | strike | underline | underline-start | underline-end | object-id | abbrev | milestone-end | milestone-start | named-content | styled-content | sub | sup)*

Description

Any combination of:

This element may be contained in:

<abstract>, <ack>, <alternatives>, <app>, <app-group>, <bio>, <body>, <boxed-text>, <chem-struct>, <chem-struct-wrap>, <disp-formula>, <disp-quote>, <fig>, <glossary>, <license-p>, <named-content>, <notes>, <p>, <ref-list>, <sec>, <styled-content>, <supplementary-material>, <table-wrap>, <td>, <term>, <th>, <trans-abstract>

Example

...
<list list-type="bullet">
...
<list-item id="bid.101">
<p>Each 3D Domain identified in an MMDB record is 
assigned a unique integer identifier that is 
appended to the Accession number of the chain to 
which it belongs (e.g., 1B8G A 2). This new 
Accession number becomes its identifier in Entrez 
3D Domains. New 3D Domain identifiers are assigned 
whenever a new MMDB-ID is assigned.</p>
</list-item>
<list-item id="bid.102">
<p>For conserved domains, the Accession number is 
based on the source database:
<preformat>
    Pfam:          pfam00049
    SMART:         smart00078
    LOAD:          LOAD Toprim
    CD:            cd00101
    COG:           COG5641
</preformat>
</p>
</list-item>
</list>
...

Module

display3.ent