The macro DEFINEMACRO lets you define new macros. This macro requires three parameter lists: For example, the following fragment defines a macro bookref, which can be used to typeset a reference to a book. It requires three arguments; say, an author, a title and the name of a publisher:
DEFINEMACRO(bookref)(3)
(Author(s):           ARG1
Book title:          ARG2
Published by:        ARG3)

Such a macro could be used as:

bookref(Sobotta/Becher)
    (Atlas der Anatomie des Menschen)
    (Urban und Schwarzenberg, Berlin, 1972)

It would of course lead to:

Author(s):           Sobotta/Becher
Book title:          Atlas der Anatomie des Menschen
Published by:        Urban und Schwarzenberg, Berlin, 1972

While applying a macro, the three parameter lists are pasted to the places where ARG1, ARG2 etc. occur in the definition.

A few caveats when defining new macros are:


Go back to index of Yodl.

Please send Yodl questions and comments to yodl@icce.rug.nl.

Please send comments on these web pages to (address unknown)

Copyright (c) 1997, 1998, 1999 Karel Kubat and Jan Nieuwenhuizen.

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.


This page was built from Yodl-1.31.18 by

<(address unknown)>, Thu Jan 19 00:21:27 2006 MSK.