[8a0ba8] | 1 | @ifclear singularmanual |
---|
| 2 | This is the README file for lib2doc. |
---|
| 3 | @end ifclear |
---|
| 4 | |
---|
[7e96fe] | 5 | @code{lib2doc} is a utility to generate the stand-alone documentation for |
---|
[26644b1] | 6 | a @sc{Singular} library in various formats. |
---|
[8a0ba8] | 7 | |
---|
| 8 | The @code{lib2doc} utility should be used by developers of @sc{Singular} |
---|
| 9 | libraries to check the generation of the documentation of their |
---|
| 10 | libraries. |
---|
| 11 | |
---|
[6ff80e] | 12 | @code{lib2doc} can be downloaded from @* |
---|
[7088317] | 13 | @url{ftp://www.mathematik.uni-kl.de/pub/Math/Singular/misc/lib2doc.tar.gz} |
---|
[8a0ba8] | 14 | |
---|
| 15 | |
---|
[26644b1] | 16 | @strong{Important:} |
---|
| 17 | @*To use @code{lib2doc}, you need |
---|
[4e425a] | 18 | to have @code{perl} (version 5 or |
---|
[2e0b620] | 19 | higher), @code{texinfo} (version 3.12 or higher) and @code{Singular} |
---|
| 20 | and @code{libparse} (version 1-3-4 or higher) installed on your system. |
---|
[8a0ba8] | 21 | |
---|
| 22 | To generate the documentation for a library, follow these steps: |
---|
| 23 | @enumerate |
---|
| 24 | @item |
---|
| 25 | Unpack lib2doc.tar.gz |
---|
| 26 | @smallexample |
---|
[532abf] | 27 | gzip -dc lib2doc.tar.gz | tar -pxf - |
---|
[8a0ba8] | 28 | @end smallexample |
---|
[26644b1] | 29 | and |
---|
[8a0ba8] | 30 | @smallexample |
---|
| 31 | cd lib2doc |
---|
| 32 | @end smallexample |
---|
| 33 | |
---|
[26644b1] | 34 | @item |
---|
[8a0ba8] | 35 | Edit the beginning of the file @code{Makefile}, filling in the values for |
---|
[26644b1] | 36 | @code{SINGULAR} and @code{LIBPARSE}. Check also the values of @code{PERL} |
---|
[8a0ba8] | 37 | and @code{LATEX2HTML}. |
---|
| 38 | |
---|
[26644b1] | 39 | @item |
---|
[8a0ba8] | 40 | Copy your library to the current directory: |
---|
| 41 | @smallexample |
---|
| 42 | cp <path-where-your-lib-is>/mylib.lib . |
---|
| 43 | @end smallexample |
---|
| 44 | |
---|
[26644b1] | 45 | @item |
---|
[8a0ba8] | 46 | Now you can run the following commands: |
---|
| 47 | @table @code |
---|
| 48 | @item make mylib.hlp |
---|
| 49 | Generates the file @code{mylib.hlp} -- the info file for the documentation |
---|
[7e96fe] | 50 | of @code{mylib.lib}. This file can be viewed using |
---|
[8a0ba8] | 51 | @smallexample |
---|
| 52 | info -f mylib.hlp |
---|
| 53 | @end smallexample |
---|
| 54 | @item make mylib.dvi |
---|
| 55 | Generates the file @code{mylib.dvi} -- the dvi file for the documentation |
---|
[7e96fe] | 56 | of @code{mylib.lib}. This file can be viewed using |
---|
[8a0ba8] | 57 | @smallexample |
---|
| 58 | xdvi mylib.dvi |
---|
| 59 | @end smallexample |
---|
| 60 | @item make mylib.ps |
---|
| 61 | Generates the file @code{mylib.ps} -- the PostScript file for the documentation |
---|
[7e96fe] | 62 | of @code{mylib.lib}. This file can be viewed using (for example) |
---|
[8a0ba8] | 63 | @smallexample |
---|
| 64 | ghostview mylib.dvi |
---|
| 65 | @end smallexample |
---|
| 66 | @item make mylib.html |
---|
| 67 | Generates the file @code{mylib.html} -- the HTML file for the documentation |
---|
[7e96fe] | 68 | of @code{mylib.lib}. This file can be viewed using (for example) |
---|
[8a0ba8] | 69 | @smallexample |
---|
[26644b1] | 70 | firefox mylib.html |
---|
[8a0ba8] | 71 | @end smallexample |
---|
| 72 | @item make clean |
---|
| 73 | Deletes all generated files. |
---|
| 74 | @end table |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | Note that you can safely ignore messages complaining about undefined |
---|
[26644b1] | 78 | references. |
---|
[8a0ba8] | 79 | |
---|
| 80 | @end enumerate |
---|
| 81 | |
---|