Quick reference for ppprog¶
Contents
Main environment¶
ppprog¶
The environment for typesetting pseudocode. Everything inside is treated as if it were in
math.Arguments:
- Name of the algorithm or program.
- Starting line number (optional). Default starting number is 1. Defined using one the following commands:
\NewProgram,\ContinueProgram,\ProgramStartsAtLine.
NewProgram¶
Use as argument toppprogto start numbering lines from 1.
CoutinueProgram¶
Use as argument toppprogto start numbering lines from where the previousppprogenvironment left off. This is meant to facilitiate splitting a program.
ProgramStartsAtLine¶
Use as argument to
ppprogto start numbering lines from an arbitrary number given by argument.Arguments:
- Value from which to start numbering lines.
Cross-referencing¶
pplabel¶
Attaches a label to the current line. The label is as given in the argument, with no prefixes.
Arguments:
- Name of label.