DocBook: The Definitive GuideBy Norman Walsh & Leonard Muellner1st Edition October 1999 1-56592-580-7, Order Number: 5807 652 pages, $36.95 , Includes CD-ROM |
Figure
Synopsis
Content Model
Figure ::= ((Title,TitleAbbrev?), (LiteralLayout|ProgramListing|ProgramListingCO|Screen|ScreenCO| ScreenShot|Synopsis|CmdSynopsis|FuncSynopsis|Address|BlockQuote| Graphic|GraphicCO|MediaObject|MediaObjectCO|InformalEquation| InformalExample|InformalFigure|InformalTable|IndexTerm|Link| OLink|ULink)+)Attributes
Name
Type
Default
Label CDATA None PgWide NUMBER None Float NUMBER "0" Tag Minimization
Both the start- and end-tags are required for this element.
Parameter Entities
%admon.mix; %bookcomponent.content; %component.mix; %divcomponent.mix; %footnote.exclusion; %formal.class; %formal.exclusion; %glossdef.mix; %highlights.exclusion; %para.mix; %qandaset.mix; %refcomponent.mix; %sidebar.mix; %tbl.table.excep; Description
Figure is a formal example with a title. Figures often contain Graphics, or other large, display elements. Frequently they are given IDs and referenced from the text with XRef or Link.
Processing expectations
Formatted as a displayed block.
Figures may contain multiple display elements. DocBook does not specify how these elements are to be presented with respect to one another.
DocBook does not specify the location of the figure within the final displayed flow of text; it may float or remain where it is located.
A list of figures may be generated at the beginning of a document.
Parents
These elements contain Figure: Answer, Appendix, Article, BiblioDiv, Bibliography, BlockQuote, Callout, Caution, Chapter, Glossary, GlossDef, GlossDiv, Important, Index, ListItem, MsgExplan, MsgText, Note, Para, PartIntro, Preface, Procedure, QandADiv, QandASet, Question, RefSect1, RefSect2, RefSect3, RefSynopsisDiv, Sect1, Sect2, Sect3, Sect4, Sect5, Section, SetIndex, Sidebar, SimpleSect, Step, Tip, Warning.
Children
The following elements occur in Figure: Address, BlockQuote, CmdSynopsis, FuncSynopsis, Graphic, GraphicCO, IndexTerm, InformalEquation, InformalExample, InformalFigure, InformalTable, Link, LiteralLayout, MediaObject, MediaObjectCO, OLink, ProgramListing, ProgramListingCO, Screen, ScreenCO, ScreenShot, Synopsis, Title, TitleAbbrev, ULink.
In some contexts, the following elements are allowed anywhere: BeginPage, IndexTerm.
In some contexts, the following elements are excluded: IndexTerm, InformalTable.
Attributes
- Float
If Float has the value 1 (true), then the processing system is free to move the figure to a convenient location. (Where convenient location may be described in the style sheet or may be application dependent.) A value of 0 (false) indicates that the figure should be placed precisely where it occurs in the flow.
- Label
Label specifies an identifying string for presentation purposes.
Generally, an explicit Label attribute is used only if the processing system is incapable of generating the label automatically. If present, the Label is normative; it will used even if the processing system is capable of automatic labelling.
- PgWide
If Pgwide has the value 0 (false), then the Figure is rendered in the current text flow (with flow column width). A value of 1 (true) specifies that the figure should be rendered across the full text page.
Examples
<!DOCTYPE figure PUBLIC "-//OASIS//DTD DocBook V3.1//EN"> <figure><title>The Pythagorean Theorum Illustrated</title> <graphic fileref="figures/pythag"></graphic> </figure>Figure 1. The Pythagorean Theorum Illustrated
For additional examples, see also Graphic.
Back to: DocBook: The Definitive Guide
© 2001, O'Reilly & Associates, Inc.