Debian Codegraph @

texmf-dist/doc/latex/checklistings/README.md

raw
1 checklistings
2 =============
3
4 By [Timothy Bourke](http://www.tbrk.org)
5 and [Marc Pouzet](http://www.di.ens.fr/~pouzet).
6
7 User manuals and papers about programming languages usually contain many
8 code samples, often with accompanying compiler messages giving the types
9 of declarations or error messages explaining why certain declarations are
10 invalid.
11
12 The `checklistings` package augments the
13 [fancyvrb](http://www.ctan.org/pkg/fancyvrb) and
14 [listings](http://www.ctan.org/pkg/listings) packages for including source
15 code in LaTeX documents with a way to pass the source code through a
16 compiler and also include the resulting messages in the document.
17
18 The motivation is to check the code samples in a document for syntax and
19 typing errors and to facilitate the inclusion of inferred types and compiler
20 warnings or errors in a text. This package is intentionally very lightweight
21 and unlike packages like [python](http://www.ctan.org/pkg/python) it is not
22 intended for interacting with an interpretor or including the execution
23 traces of code. While `checklistings` does not focus on a specific
24 programming language, it is designed to work well with ML-like languages.
25
26 Using the package involves three elements:
27
28 1. The declaration `\usepackage{checklistings}`.
29 2. The verbatim environment `\begin{chklisting}...\end{chklisting}`.
30 3. The shell script `checklistings.sh`.
31
32 In a first pass, `latex`/`pdflatex` outputs code samples into files.
33 The second pass is performed by `checklistings.sh` which passes each file
34 through a compiler to generate corresponding output files.
35 In a third pass, `latex`/`pdflatex` reads from the generated files to
36 incorporate the results into the document.
37
38 A `checklistings.hva` file is provided for interoperability with
39 [HeVeA](http://hevea.inria.fr).
40
41 The `checklistings` package may be distributed and/or modified under the
42 conditions of the
43 [LaTeX Project Public License](http://www.latex-project.org/lppl.txt),
44 either version 1.2 of this license or (at your option) any later version.
45
46 Please send comments, suggestions, and bug reports (with version number and
47 the keyword "checklistings" in the subject of the message) to
48 <[email protected]>. Please keep in mind that we prefer to keep `checklistings`
49 simple and lightweight rather than to incorporate many different
50 configuration and customization options. The source code is hosted on
51 [GitHub](https://github.com/tbrk/checklistings).
52
53 This package was developed within the
54 [PARKAS](http://www.di.ens.fr/ParkasTeam.html) at
55 [Inria](http://www.inria.fr) and the [ENS](http://www.di.ens.fr).
56