Special markup for sessions

The session d.t.d. provides the following environments for computer algebra sessions:

session
Macro with one argument: the body of the session.
input
Macro with two arguments: a prompt and a the input itself.
output
Macro with the body of the output as its argument.
textput
Macro with one argument for ordinary text regions.
errput
Macro with one argument for displaying errors (used inside output).

In fact, these environments are based on environments of the form lan-session, lan-input, lan-output, lan-textput and lan-errput for every individual language lan.

If language-specific environments do not exist, then generic-session, generic-input, generic-output, generic-textput and generic-errput are taken instead. It is recommended to base the language-specific environments on the generic ones, which may have different implementations according to the style (e.g. the varsession package). For this purpose, we also provide the generic-output* environment, which is similar to generic-output, except that margins remain unaltered.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".