<fig> Figure

Block of graphical or textual material that is identified as a figure, usually bearing a caption and a label such as “Figure 3.” or “Figure”.


A <fig> is defined as an element that would appear in the Table of Figures, if there were one.
The content of a <fig> need not be graphical in nature; the content of a figure may be a graphic, a list, several paragraphs, an equation, a display quote, a table, etc., or a mixture of several of these.
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, into the next column, to the end of a logical file, or within a separate window).

Best Practice

Tag unlabeled graphics as <graphic> elements rather than as <fig> elements. A common test to determine if an object is a <fig> versus a <graphic> is to ask, “If there were a “List of Figures” for this document, should this object appear in that list?”
Associating Supplementary Data with a Figure
When the data (such as a spreadsheet or dataset) associated with a document has been described using a <supplementary-material> element, then a figure can use an internal <xref> to point to that <supplementary-material>. This provides a mechanism to expose the data behind the figure. For example, assume that a figure (<fig>) is associated with three pieces of supplementary material (each described in a <supplementary-material> element). Three cross references (<xref>) can be embedded in the figure tagging to associate the figure with all three supplementary items, which may be datasets, additional figures, spreadsheets, etc.
orientation (default = portrait)
position (default = float)

Base Attributes

Models and Context
May be contained in
Content Model
<!ELEMENT  fig          %fig-model;                                  >
Expanded Content Model

((object-id)*, (caption)?, (alt-text | long-desc)*, (disp-formula | disp-formula-group | chem-struct-wrap | disp-quote | speech | statement | verse-group | table-wrap | p | def-list | list | code | graphic | media | preformat | xref)*, attrib?, permissions?)

Tagged Samples
<graphic> and <attrib>
<fig id="f1" orientation="portrait" position="float">
 <graphic xlink:href="f1"/>
 <attrib>Brookhaven National Laboratory</attrib>
<caption> and <graphic>
<fig id="f8" orientation="portrait" position="float">
  <p>Time difference between events F and A as a function of the 
   length of entering plug for bifurcations B to BXXX, where X stands 
   for 0 or 1.</p>
 <graphic orientation="portrait" position="float" xlink:href="f8"/>
<alt-text> and <object-id>
<sec sec-type="results">
 <p>We identified 703 abstracts, of which 687 were 
  not relevant ... Details of randomisation procedures,
  treatment schedules, and numbers of patients followed
  up are given on the <italic>BMJ</italic> website.</p>
 <fig id="F1">
   <title>Deaths among patients receiving day hospital care
    or alternative services.</title>
   <p>Odds ratios of death by end of follow up were calculated by 
    fixed effects model. Heterogeneity between trials is presented as
  <alt-text>Deaths in hospitals or with alternative services</alt-text>
  <graphic xmlns:xlink="http://www.w3.org/1999/xlink"
Related Resources