next up previous contents
Next: Mapping of code to Up: APPENDIX: Reference Manual for Previous: Example 2: DGESV_F90 revisited

Tools: LaTeX Generation with ProTeX

 

The filter protex produces a LaTeX compatible document from a DAO Fortran source code with standard ProTeX prologues. If source files are not specified it reads from standard input; output is always to standard output.

protex is a perl [3] script which

  1. parses the file for markers, and sets mode flags accordingly,
  2. locates the prologue keyword,
  3. isolates commentary which applies to that keyword
  4. strips the LaTeX documentation out of the Fortran90 commentary,
  5. creates the LaTeX source with appropriate headers, such as sections, subsections, etc., depending on the keyword and the current marker.

ProTeX has several modes of operation, which is controlled by a corresponding command line option:

Option Meaning
-b Bare mode: return raw LaTeX source (no preamble, etc.)
-n Adds new pages at subsection boundaries
-l Creates a listing for prologues only
-s Shut-up: ignore all code from BOC to EOC




Will Sawyer
Fri Mar 6 18:02:18 EST 1998