Next: CÆSAR Documentation
Up: Documentation
Previous: A Simple Example
If your formatting language supports it, you can modify input order:
! Begin_Doc main.tex
! % Note that the order of files a.tex
! % and b.tex has been switched.
! \input{b}
! \input{a}
! End_Doc
!
! Begin_Doc a.tex
! This line is in file a.tex.
! End_Doc
!
! Begin_Doc b.tex
! This line is in file b.tex.
! End_Doc
!
! Begin_Doc a.tex
! This line is appended to file a.tex.
! End_Doc
Document also has a self-document (or self-test) option:
! Begin_Self_Documentation (or Begin_Self_Test)
! % mv file1 file2
! % f90 file.f90
! % Document file.f90
! End_Self_Documentation (or End_Self_Test)
which executes commands included in the file itself.
Next: CÆSAR Documentation
Up: Documentation
Previous: A Simple Example
Michael L. Hall