source: git/doc/lib2doc.texi @ 26644b1

spielwiese
Last change on this file since 26644b1 was 26644b1, checked in by Hans Schoenemann <hannes@…>, 12 years ago
chg: help system, lib2doc updated add: primepower as a comment from master
  • Property mode set to 100644
File size: 2.2 KB
RevLine 
[8a0ba8]1@ifclear singularmanual
2This 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]6a @sc{Singular} library in various formats.
[8a0ba8]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
[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]18to have @code{perl} (version 5 or
[2e0b620]19higher), @code{texinfo} (version 3.12 or higher)  and @code{Singular}
20and @code{libparse} (version 1-3-4 or higher) installed on your system.
[8a0ba8]21
22To generate the documentation for a library, follow these steps:
23@enumerate
24@item
25Unpack lib2doc.tar.gz
26@smallexample
[532abf]27gzip -dc  lib2doc.tar.gz | tar -pxf -
[8a0ba8]28@end smallexample
[26644b1]29and
[8a0ba8]30@smallexample
31cd lib2doc
32@end smallexample
33
[26644b1]34@item
[8a0ba8]35Edit 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]37and @code{LATEX2HTML}.
38
[26644b1]39@item
[8a0ba8]40Copy your library to the current directory:
41@smallexample
42cp <path-where-your-lib-is>/mylib.lib .
43@end smallexample
44
[26644b1]45@item
[8a0ba8]46Now you can run the following commands:
47@table @code
48@item make mylib.hlp
49Generates the file @code{mylib.hlp} -- the info file for the documentation
[7e96fe]50of @code{mylib.lib}. This file can be viewed using
[8a0ba8]51@smallexample
52info -f mylib.hlp
53@end smallexample
54@item make mylib.dvi
55Generates the file @code{mylib.dvi} -- the dvi file for the documentation
[7e96fe]56of @code{mylib.lib}. This file can be viewed using
[8a0ba8]57@smallexample
58xdvi mylib.dvi
59@end smallexample
60@item make mylib.ps
61Generates the file @code{mylib.ps} -- the PostScript file for the documentation
[7e96fe]62of @code{mylib.lib}. This file can be viewed using (for example)
[8a0ba8]63@smallexample
64ghostview mylib.dvi
65@end smallexample
66@item make mylib.html
67Generates the file @code{mylib.html} -- the HTML file for the documentation
[7e96fe]68of @code{mylib.lib}. This file can be viewed using (for example)
[8a0ba8]69@smallexample
[26644b1]70firefox mylib.html
[8a0ba8]71@end smallexample
72@item make clean
73Deletes all generated files.
74@end table
75
76
77Note that you can safely ignore messages complaining about undefined
[26644b1]78references.
[8a0ba8]79
80@end enumerate
81
Note: See TracBrowser for help on using the repository browser.