X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/5961a1b1ad72f7f274dd08d28dc7314ee5efa9ad..d5fdd49e70b734b791eb907706f92da5775e2a8b:/doc/lispintro.tex diff --git a/doc/lispintro.tex b/doc/lispintro.tex index 02105d0..9497164 100644 --- a/doc/lispintro.tex +++ b/doc/lispintro.tex @@ -153,7 +153,7 @@ Most symbols defined by the protocol have their own entries. An entry begins with a header line, showing a synopsis of the symbol on the left, and the category (function, class, macro, etc.) on the right. -\begin{describe}{fun}{example-function @ +\begin{describe*}{\dhead*{fun}{example-function @} \&optional @ \&rest @ \&key :keyword @@ -179,14 +179,15 @@ category (function, class, macro, etc.) on the right. some-generic-function ((@ list) @) @> @ \end{quote} -\end{describe} - -\begin{describe}{mac} - {example-macro - (@{ @ @! (@ @
) @}^*) \\ \ind - @[[ @^* @! @ @]] \\ - @^* - \nlret @^*} +\end{describe*} + +\begin{describe*} + {\dhead*{mac} + {example-macro + (@{ @ @! (@ @) @}^*) \\ \ind + @[[ @^* @! @ @]] \\ + @^* + \nlret @^*}} The synopsis for a macro describes the acceptable syntax using the following notation. \begin{itemize} @@ -209,10 +210,11 @@ category (function, class, macro, etc.) on the right. \end{itemize} For example, the notation at the head of this example describes syntax for @|let|. -\end{describe} +\end{describe*} -\begin{describe}{cls}{example-class (direct-super other-direct-super) \&key - :initarg} +\begin{describe*} + {\dhead*{cls}{example-class (direct-super other-direct-super) + \&key :initarg}} The synopsis for a class lists the class's direct superclasses, and the acceptable initargs in the form of a lambda-list. The initargs may be passed to @|make-instance| when constructing an instance of the class or a @@ -221,7 +223,7 @@ category (function, class, macro, etc.) on the right. may also be passed to @|reinitialize-instance| and/or @|change-class| as applicable; the class description will state explicitly when these operations are allowed. -\end{describe} +\end{describe*} %%%----- That's all, folks --------------------------------------------------