Prev Next pre

Preformatted Text With a Uniformly Spaced Font

Syntax
$pre text$$

See Also
getting started , codep , math

Description
All of the characters in text are printed in a pre-formatted font . There can be no $ characters in text . The pre command uses a font that is close to the normal font, but uniformly spaced. (The codep command uses the exact same font as the code command to signify that the text is compute input or output.)

Example
The input
 
     $pre
     begin
          xOne = y
          xTwo = z
     end
     $$
would create the following output
     begin
          xOne = y
          xTwo = z
     end

Reference
All of the new lines, tabs, and spaces in text are significant including the first and last one. Thus you can use this command to generate a line break. For example, the input
 
     Here is line one.
     $pre
     $$
     Here is line two.
would create the following output
     
Here is line one.
     
Here is line two.
Input File: pre.omh