Files

ProTex.styBasic environment for literate programming
AlProTex.styAdjustments for ProTeX
Examples.texCode from the manual
LitProgIntroduction and examples for the main features of (Al)ProTeX (extended version of this file)

Manual

Eitan Gurari, “TeX and LaTeX: Drawing and Literate Programming”. McGraw-Hill, 1994. ISBN 0-07-025208-4 / 0-07-911616-7. (out of print)

gurari@cse.ohio-state.edu

A Basic Literate Programming Environment

   \input ProTex.sty 
   \AlProTex{EXT,<<<>>>,title,list,`} 
For documetation in html, use TeX4ht. For documentation in pdf, add the option ‘pdf’ to the above list and use pdflatex, pdftex, or Dvipdfm.

This environment adds to (La)TeX the following commands for handling code.

Definitions of code fragments:
\<code title\><<< 
code fragment>>> 
References to code segments (warning):
`<code title`> 
Output files of code (‘[EXTENSION]’ is optional when EXTENSION = EXT):
\OutputCode[EXTENSION]\<code title\> 
References to the character ‘ within code fragments:
`` 
1. Example of source file 2. Corresponding document 3. Corresponding code