12. Skribilo User Manual — Standard Library |
This section describes Skribilo's standard library.
The function include is particularily useful to spread a
long document amongst several files.
| prototype | ||
|---|---|---|
(include | ||
| argument | description | |
file | The file containing the nodes to be included. These nodes are included in the document in place of the include call. | |
| See also | ||
*document-path* | ||
The given file is searched in the current document path.
Skribilo provides functions to deal with paths. These functions are related to the path that can be specified on the command line, when the Skribilo compiler is invoked (see Chapter compiler.)
| prototype | ||
|---|---|---|
(*document-path*) | ||
| See also | ||
include *image-path* *bib-path* *source-path* |
*document-path* is a procedure as returned by SRFI-39 make-parameter. As such, (*document-path*) returns the current document path, while (*document-path* '("." "/some/path")) changes the value of the current path. This is equivalent to Skribe's skribe-path and skribe-path-set! functions. The value of *document-path* can also be changed using the -I command-line option of the compiler (see Chapter 14 for details).
Several functions describing the configuration of Skribilo are
exported by the (skribilo config) module. First, the skribilo-version function returns the version of Skribilo being used
as a string.
| prototype | ||
|---|---|---|
(skribilo-version) |
For instance, the following piece of code:
|
produces the following output
|
The skribilo-url function returns, not surprisingly,
the URL of the project:
| prototype | ||
|---|---|---|
(skribilo-url) |
The skribilo-module-directory returns the directory
under which Skribilo modules were installed:
| prototype | ||
|---|---|---|
(skribilo-module-directory) |
skribilo-config program, as described in Section 15.