commit 8464e95f843cb4fd8b20ce4c0dd20ef2643ba5d9
parent 4c8568c6f2bded1568852d1c0ab8fb5ddecd36ac
Author: Wolfgang Corcoran-Mathe <wcm@sigwinch.xyz>
Date: Tue, 30 Jan 2024 20:14:53 -0500
Add @svar macro and include macros file.
Diffstat:
2 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/doc/r7rs-small/macros.texinfo b/doc/r7rs-small/macros.texinfo
@@ -0,0 +1,18 @@
+@c Syntactic variables
+@c These will be presented in angle brackets, which have to be
+@c produced differently in TeX output.
+
+@c By default, insert Unicode brackets.
+@macro svar {name}
+@U{27e8}\name\@U{27e9}
+@end macro
+
+@c For TeX output, use raw math-mode snippets.
+@c Using @math{...} produces extra space around *name*, for some
+@c reason.
+@iftex
+@unmacro svar
+@macro svar {name}
+@inlineraw{tex, $\\langle$}\name\@inlineraw{tex, $\\rangle$}
+@end macro
+@end iftex
diff --git a/doc/r7rs-small/r7rs-small.texinfo b/doc/r7rs-small/r7rs-small.texinfo
@@ -11,6 +11,8 @@
@end direntry
@end ifinfo
+@include macros.texi
+
@titlepage
@title Scheme
@subtitle Revised7 Report on the Algorithmic Language Scheme