r7rs-small-texinfo

Unnamed repository; edit this file 'description' to name the repository.
git clone https://kaka.farm/~git/r7rs-small-texinfo
Log | Files | Refs

commit b5a9d3ed72619f7162e7dfc2f07b0da53b7b4047
parent e26e1581c70d577ebb79da1130888348d93b6f60
Author: Wolfgang Corcoran-Mathe <wcm@sigwinch.xyz>
Date:   Sat,  3 Feb 2024 14:18:05 -0500

Add subscripted variable macros and start using them.

Diffstat:
Mdoc/r7rs-small/procedures/pairs-and-lists.texinfo | 6+++---
Mdoc/r7rs-small/r7rs-texinfo-macros.texinfo | 18++++++++++++++++++
2 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/doc/r7rs-small/procedures/pairs-and-lists.texinfo b/doc/r7rs-small/procedures/pairs-and-lists.texinfo @@ -119,10 +119,10 @@ returns @code{#f}. @end lisp @end deffn -@deffn procedure cons obj1 obj2 +@deffn procedure cons @vari{obj} @varii{obj} -Returns a newly allocated pair whose car is @var{obj@sub{1}} and whose cdr is -@var{obj@sub{2}}. The pair is guaranteed to be different (in the sense of +Returns a newly allocated pair whose car is @vari{obj} and whose cdr is +@varii{obj}. The pair is guaranteed to be different (in the sense of @code{eqv?}) from every existing object. @lisp diff --git a/doc/r7rs-small/r7rs-texinfo-macros.texinfo b/doc/r7rs-small/r7rs-texinfo-macros.texinfo @@ -12,6 +12,24 @@ R@sup{5}RS R@sup{6}RS @end macro +@c Subscripted variables + +@macro vari {name} +@var{\name\@sub{1}} +@end macro + +@macro varii {name} +@var{\name\@sub{2}} +@end macro + +@macro variii {name} +@var{\name\@sub{3}} +@end macro + +@macro variv {name} +@var{\name\@sub{4}} +@end macro + @c Syntactic variables @c These will be presented in angle brackets, which have to be @c produced differently in TeX output. Because Texinfo has no