Skip to main content

The PreTeXt Guide

Section 4.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 4.15).
You have attempted of activities on this page.