Skip to main content

Section 26 Atomic Objects

Some PreTeXt objects are relatively indivisable and are used as components of other structures. We call them atomic, even if the term is not perfect. A good example is <image> (next, 26.1). This section is arranged according to these objects and tests the various ways they can be employed.

We frequently include some nonsense text inside short intervening paragraphs to test spacing and establish margins.

Subsection 26.1 <image>

An <image> can be placed in five different ways:

  1. all by itself, as a peer of <p> typically, with layout control,
  2. inside a <figure>, earning a number and caption,
  3. inside a <sidebyside>, with size and layout configured,
  4. inside a <figure> inside a <sidebyside>, with size and layout configured, with a number and caption, and
  5. inside a <figure> inside a <sidebyside> inside a <figure>, with size and layout configured, with a number and caption, but now sub-numbered ((a), (b), (c),…).

Examples of each, and more.

All by itsef, with no layout specified, so showing the default size and placement. Vivamus in congue massa. Morbi condimentum ac magna at accumsan. Vestibulum ac augue eu lorem semper gravida.

Width set at 40%, so equal margins and thus centered. Aenean faucibus augue tellus, et sollicitudin tortor finibus non. Maecenas semper dolor quis diam placerat, iaculis sollicitudin augue finibus. Vestibulum facilisis ligula lectus, ac tristique nisl aliquet non.

Asymmetric margins of 20% and 40% given, implying 40% width, equal to previous instance. Vivamus suscipit diam eget mi cursus viverra.

As a plain component of a <sidebyside>. Widths here are 20% and 30%, margins and gaps are automatic, default alignment on top edges. Nulla pharetra imperdiet elit, in sodales nibh blandit ultricies. Maecenas efficitur ac felis ut pharetra.

Inside a <figure> with no adjustments, so default behavior. Note how a <figure> occupies the entire width of the page, so then does the caption.

Figure 26.1. New Zealand Landscape

Inside a <figure> with asymmetric (large) margins of 30% and 60%. Quisque finibus augue sit amet facilisis fringilla. Aenean faucibus augue tellus, et sollicitudin tortor finibus non.

Figure 26.2. New Zealand Landscape

Inside figures inside a <sidebyside>. Same widths as previous <sidebyside> but alignment on bottoms of the panels, to partially align captions. Note how the captions are constrained in width by the width of the panels of the side-by-side.

Figure 26.3. NZ Landscape
Figure 26.4. New Zealand Terrascape

Identical code to previous example, but now wrapped in an overall <figure>, which has its own caption and number, leaving the interior figures to be sub-numbered. Cross-references use the full number: Figure 26.5.(b).

(a) NZ Landscape
(b) New Zealand Terrascape
Figure 26.5. Amalgamation of Scapes