| 1 |
\documentclass[11pt]{article} |
| 2 |
\usepackage{a4wide} |
| 3 |
\usepackage{doc} |
| 4 |
\EnableCrossrefs |
| 5 |
\CodelineIndex |
| 6 |
\CodelineNumbered |
| 7 |
\RecordChanges |
| 8 |
% Using calculation.dtx as a package: |
| 9 |
\makeatletter |
| 10 |
\input{calculation.dtx} |
| 11 |
% Now setting the options: |
| 12 |
\calc@fleqn \calc@leqno \calc@blocktrue |
| 13 |
\makeatother |
| 14 |
\begin{document} |
| 15 |
\DocInput{calculation.dtx} |
| 16 |
\PrintIndex |
| 17 |
\PrintChanges |
| 18 |
\end{document} |
| 19 |
|
| 20 |
% To generate documentation calculation.dvi, |
| 21 |
% use this file (named calculation.drv) as follows: |
| 22 |
latex calculation.drv |
| 23 |
makeindex -s gind.ist calculation |
| 24 |
makeindex -s gglo.ist -o calculation.gls calculation.glo |
| 25 |
latex calculation.drv |
| 26 |
|
| 27 |
% To generate documentation calculation.pdf, do: |
| 28 |
pdflatex calculation.drv |
| 29 |
makeindex -s gind.ist calculation |
| 30 |
makeindex -s gglo.ist -o calculation.gls calculation.glo |
| 31 |
pdflatex calculation.drv |
| 32 |
|