| 1 |
# Literate Programming for Prolog with LaTeX. |
| 2 |
|
| 3 |
Typeset Prolog code and documentation in LaTeX. |
| 4 |
|
| 5 |
|
| 6 |
Gerd Neugebauer |
| 7 |
|
| 8 |
[email protected] |
| 9 |
|
| 10 |
This file describes the installation procedure of the style options pl |
| 11 |
and pcode. The documentation will be produced during this process. |
| 12 |
|
| 13 |
## Files |
| 14 |
|
| 15 |
The distribution of pl.sty contains at least the following files: |
| 16 |
|
| 17 |
- `README` This file. |
| 18 |
- `pl.dtx` The documented source file. |
| 19 |
- `pl.ins` The docstrip installer to produce pl.sty. |
| 20 |
- `pl.tex` The driver file to produce the documentation. |
| 21 |
- `pl.cfg` The documentation configuration file. |
| 22 |
- `sample.pl` A sample Prolog file. |
| 23 |
- `Makefile` A makefile for UN*X (or whatever can use it) |
| 24 |
|
| 25 |
|
| 26 |
## Prerequisites |
| 27 |
|
| 28 |
1. You need to have installed LaTeX. |
| 29 |
Even LaTeX 2.09 is OK. |
| 30 |
|
| 31 |
2. You need the style option doc.sty and the file docstrip.tex on |
| 32 |
your TeX search path. (To put them in the current directory should |
| 33 |
also work). |
| 34 |
You need a version distributed with LaTeX2e --- even if you still |
| 35 |
use LaTeX 2.09. |
| 36 |
|
| 37 |
3. You need multicol.sty. At least a file named multicol.sty should |
| 38 |
be on your TeX search path if you use LaTeX 2.09. |
| 39 |
|
| 40 |
4. You should have the program makeindex to generate the index for the full |
| 41 |
documentation. |
| 42 |
|
| 43 |
|
| 44 |
## Installation |
| 45 |
|
| 46 |
1. If you have a working make (e.g. on UNIX) you can just type |
| 47 |
|
| 48 |
``` |
| 49 |
make |
| 50 |
``` |
| 51 |
|
| 52 |
This performs the following steps which can also be started manually: |
| 53 |
|
| 54 |
1.1 Run LaTeX on the file pl.ins like in |
| 55 |
|
| 56 |
``` |
| 57 |
latex pl.ins |
| 58 |
``` |
| 59 |
|
| 60 |
This should produce the files pl.sty and pcode.sty |
| 61 |
(and as a side effect the file pl.log) |
| 62 |
|
| 63 |
1.2 Run LaTeX on the file pl.tex like in |
| 64 |
|
| 65 |
|
| 66 |
``` |
| 67 |
latex pl.tex |
| 68 |
``` |
| 69 |
|
| 70 |
This will produce the documentation file pl.dvi |
| 71 |
|
| 72 |
2. Place the file pl.sty and maybe pcode.sty in a place where TeX |
| 73 |
searches for it. |
| 74 |
|
| 75 |
3. Print the documentation pl.dvi and READ it! |
| 76 |
|
| 77 |
|
| 78 |
## PROBLEMS |
| 79 |
|
| 80 |
- If you do not get your hands on the appropriate version of |
| 81 |
docstrip then you can just rename pl.doc into pl.sty. This |
| 82 |
should work even if the startup time might be slightly higher. |
| 83 |
|
| 84 |
- If you get an error during the processing of pl.tex, most |
| 85 |
likely your version of doc.sty or multicol.sty is out of date. |
| 86 |
|