summaryrefslogtreecommitdiff
path: root/doc/ref/goops-tutorial.texi
diff options
context:
space:
mode:
authorNeil Jerram <neil@ossau.uklinux.net>2009-08-09 14:54:18 +0100
committerNeil Jerram <neil@ossau.uklinux.net>2009-08-09 15:04:08 +0100
commitaba0dff5f7ee451b44af771f8ab09b750ce15f74 (patch)
tree9ef35ce71bfb98954e861ed5fcc912673a71c4c0 /doc/ref/goops-tutorial.texi
parentf618f4363dc0a2ba96178fddf364b357e49600b2 (diff)
downloadguile-aba0dff5f7ee451b44af771f8ab09b750ce15f74.tar.gz
In general, use @lisp in preference to @smalllisp
because it looks better in the DVI output. Exceptions are - wide examples, which would cause overfull hboxes if they used the bigger @lisp font - very large examples, which may look too big at the @lisp size.
Diffstat (limited to 'doc/ref/goops-tutorial.texi')
-rw-r--r--doc/ref/goops-tutorial.texi23
1 files changed, 12 insertions, 11 deletions
diff --git a/doc/ref/goops-tutorial.texi b/doc/ref/goops-tutorial.texi
index 8ce8a2079..50c5c807d 100644
--- a/doc/ref/goops-tutorial.texi
+++ b/doc/ref/goops-tutorial.texi
@@ -172,12 +172,12 @@ Then the expression
@noindent
will print the following information on the standard output:
-@lisp
+@smalllisp
#<<my-complex> 401d8638> is an instance of class <my-complex>
Slots are:
r = 10
i = 3
-@end lisp
+@end smalllisp
@node Slot description
@subsection Slot description
@@ -400,20 +400,21 @@ A more complete example is given below:
@example
@group
-@lisp
+@smalllisp
(define c (make <my-complex> #:r 12 #:i 20))
(real-part c) @result{} 12
(angle c) @result{} 1.03037682652431
(slot-set! c 'i 10)
(set! (real-part c) 1)
-(describe c) @result{}
- #<<my-complex> 401e9b58> is an instance of class <my-complex>
- Slots are:
- r = 1
- i = 10
- m = 10.0498756211209
- a = 1.47112767430373
-@end lisp
+(describe c)
+@print{}
+#<<my-complex> 401e9b58> is an instance of class <my-complex>
+Slots are:
+ r = 1
+ i = 10
+ m = 10.0498756211209
+ a = 1.47112767430373
+@end smalllisp
@end group
@end example