web analytics
Skip to main content

The PreTeXt Guide

Section 5.19 Program Listings

A <listing> is really a specialized type of <figure>, whose purpose is to hold computer code. Just like a figure, it has a <caption> and <title> which behave identically. However, the enclosed planar content is limited to a <program> or <console> (see Section 5.15).