Skip to main content

The PreTeXt Guide

Section 4.20 Program Listings

A <listing> is really a specialized type of <figure>, whose purpose is to hold computer code. It has an optional <title> which is rendered above the listing. However, the enclosed planar content is limited to a <program> or <console> (see [cross-reference to target(s) "topic-program-console" missing or not unique]).