Top
Back: 3.9.1 Procedures in a library
Forward: 3.9.2.1 lib2doc
FastBack: 3. General concepts
FastForward: 4. Data types
Up: 3.9 Guidelines for writing a library
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

3.9.2 Documentation of a library

The typesetting language in which the SINGULAR documentation is written is texinfo. Based on various tools, info, dvi, ps, and html versions of the texinfo documentation are generated.

Starting with SINGULAR version 1-3, the texinfo documentation of all libraries of the SINGULAR distribution is generated automatically from their source code.

More precisely, for each library,

  • - the info string of the library is parsed and typeset as explained in Typesetting of help strings.
  • - the help string of each procedure listed in the PROCEDURE: section of the library info string is parsed and typeset as explained in Typesetting of help strings.
  • - the example of each procedure listed in the PROCEDURE: section of the library info string is computed and its output is included into the documentation.

For a uniform look-and-feel of the library documentation, library developers should

  • - follow the recommendation of The help string of a library and The help string of procedures.
  • - consult the source code of libraries like template.lib (see template_lib) for examples on how library documentations are written.
  • - make sure that each procedure listed in the PROCEDURE: section of the library info string has a help string and an example section.
  • - not use interactive functions like pause("..") or read(""); (see read) and should limit the length of input lines to 60 characters in the example section of procedures.
  • - carefully check the generated documentation of their libraries in its various formats using the lib2doc (see lib2doc) utility.

Top Back: 3.9.1 Procedures in a library Forward: 3.9.2.1 lib2doc FastBack: 3. General concepts FastForward: 4. Data types Up: 3.9 Guidelines for writing a library Top: Singular 2-0-4 Manual Contents: Table of Contents Index: F. Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.