This is the texp Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 07:53:04 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
texp
DSL for outputting TeX expressions using S-expressions.
Max Rottenkolber <max@mr.gy>
GNU Affero General Public License
named-readtables
(system).
texp.lisp
(file).
syntax.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
texp/texp.lisp
texp
(system).
texp
.
*escape-table*
(special variable).
deftex
(macro).
escape
(function).
tex
(macro).
compile-break
(function).
compile-expression
(function).
compile-expressions
(function).
compile-interpolation
(function).
compile-macro-call
(function).
compile-newline
(function).
compile-parameters
(function).
compile-parenthesized
(function).
compile-with-braces
(function).
compile-with-brackets
(function).
escape-char
(function).
escape-p
(function).
make-parameter-string
(function).
symbol-identifier
(function).
texp/syntax.lisp
texp.lisp
(file).
texp
(system).
parenthesized-list-reader
(function).
Packages are listed by definition order.
texp
DSL for outputting _TeX_ expressions using S-expressions.
common-lisp
.
editor-hints.named-readtables
.
*escape-table*
(special variable).
deftex
(macro).
escape
(function).
tex
(macro).
compile-break
(function).
compile-expression
(function).
compile-expressions
(function).
compile-interpolation
(function).
compile-macro-call
(function).
compile-newline
(function).
compile-parameters
(function).
compile-parenthesized
(function).
compile-with-braces
(function).
compile-with-brackets
(function).
escape-char
(function).
escape-p
(function).
make-parameter-string
(function).
parenthesized-list-reader
(function).
symbol-identifier
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
*Description:*
_Alist_ mapping _TeX_ special characters to quoted equivalent.
_parameters_::= {(}{{}_var_{\}}\*{)}
*Arguments and Values:*
_name_—a _symbol_ or _string_.
_forms_—_forms_.
_var_—a _symbol_.
*Description:*
{deftex} prints the definition of a _TeX_ macro with _name_ that
expands to _forms_ to {*standard-output*}. If _name_ is a _symbol_ it
will be printed in lower case. _Forms_ are evaluated as if by {tex}
with each _var_ in _parameters_ bound to a numeric _TeX_ parameter
identifier.
*Examples:*
#code#
(deftex hello (name) "Hello " ($ name))
▷ \def \hello #1{Hello #1}
#
_expressions_::= ↓_expression_\*
_expression_::= ↓_break-clause_ | ↓_interpolation-clause_ |
↓_brackets-clause_ | ↓_braces-clause_ |
↓_tex-clause_ | _literal_
_break-clause_::= {(br)}
_interpolation-clause_::= {($} _form_{)}
_brackets-clause_::= {([]} {{}_expression_{\}}\*{)}
_braces-clause_::= {({\}} {{}_expression_{\}}\*{)}
_tex-clause_::= {(} _tex-macro_ {{}_expression_{\}}\*{)}
*Arguments and Values:*
_literal_—a _string_, _symbol_ or _number_.
_form_—a _form_.
_tex-macro_—a _symbol_ or a _string_.
*Description:*
{tex} compiles _TeX expressions_ to {*standard-output*}.
A _Literal_ is printed as follows:
+ a _string_ is printed as it is
+ a _symbol_ is printed in lower case
+ a _number_ is printed _readably_
A _tex-clause_ prints a _TeX_ macro call of _tex-macro_ followed by
_expressions_.
A _break-clause_ prints two newlines (e.g. a paragraph separator).
An _interpolation-clause_ evaluates _form_ and prints its result if
the result is a _string_.
_Bracket-clause_ and _braces-clause_ print _expressions_ surrounded by brackets ({[}, {]}) and braces ({{}, {\}}) respectively. If the _readtable_ {texp:syntax} is used then _bracket-clause_ and _braces-clause_ can be written as {[} _expression_\* {]} and {{} _expression_\* {}}.
Compile _TeX_ EXPRESSION.
Compile _TeX_ EXPRESSIONS.
Interpolate EXPRESSIONS into the TEX macro.
Compile call to macro with NAME and ARGUMENTS.
Returns a map of PARAMETERS to _TeX_ macro parameter pointers of the form ’#<N>’ and a parameter string for _TeX_’s \\def.
Compile EXPRESSIONS parenthesized by OPEN and CLOSE.
Compile EXPRESSIONS parenthesized by braces.
Compile EXPRESSIONS parenthesized by brackets.
Return escaped string for CHARACTER.
Predicate to test if CHARACTER needs to be escaped.
Make parameter string for N parameters.
Return read macro function for parenthesized list terminated by CLOSE. It will be consed with TYPE.
texp
.
Return identifier string for SYMBOL.
Jump to: | C D E F M P S T |
---|
Jump to: | C D E F M P S T |
---|
Jump to: | *
S |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
* | |||
*escape-table* : | Public special variables | ||
| |||
S | |||
Special Variable, *escape-table* : | Public special variables | ||
|
Jump to: | *
S |
---|
Jump to: | F P S T |
---|
Jump to: | F P S T |
---|