next up previous
Next: Other Document Features Up: Documentation Previous: The Document Package: A

A Simple Example

This input file:

  ! Begin_Doc
  ! Some documentation for standard out.
  ! End_Doc
  !
  ! This line doesn't get output by Document.
  ! Begin_Doc file.tex
  ! This output goes to the file named file.tex.
  ! Comment characters are stripped by default.
  !
  ! Begin_Verbatim
  ! Comment characters are included in verbatim
  ! environments, which are often used for code:
    do i = 1, 100
      j = j+1
    end do
  ! End_Verbatim
  ! End_Doc

when processed by Document, outputs this to standard out:

Some documentation for standard out.

and this to file.tex:

This output goes to the file named file.tex.
Comment characters are stripped by default.

  ! Comment characters are included in verbatim
  ! environments, which are often used for code:
    do i = 1, 100
      j = j+1
    end do


next up previous
Next: Other Document Features Up: Documentation Previous: The Document Package: A
Michael L. Hall