source: git/doc/lib2doc.texi

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