cmats ← {mino minw} ##.dfnscode lpp ⍝ Formatted dfns code.
[dfnscode] renders the source of the functions and operators in this workspace
as a vector of character matrices, suitable for printing in an appropriate font.
Right argument [lpp] is the number of lines of text per page (the number of
columns is fixed at 80).
In order to save paper, rather than start every code capsule on a separate page,
each follows its predecessor after a short gap and a separating title line.
Optional left argument pair (mino minw), default (8 6), deterimes the minimum
number of "orphan" and "widow" lines to be allowed at the end and beginning of
each page, respectively:
{
start of function
orphan lines
---------------------- page break
widow lines
end of function
}
Pages are headed with dictionary-style "from-to" ranges of the functions and
operators that appear on each page and "footed" with page numbers. Headers and
footers are aligned alternately right and left, so that the pages are suitable
for double-sided printing.
You can find an example of the formatted code in Portable Document Format at:
http://www.dyalog.com/dfnsdws/DfnsCode.pdf
Examples:
cmats ← dfnscode 66 ⍝ format code, 66 lines per page.
See also: dfnsnotes
Back to: contents
Back to: Dyalog APL
Trouble seeing APL font?