X-VM-v5-Data: ([nil nil nil nil nil nil nil t nil] [nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil]) Date: Mon, 11 Jun 90 16:18:35 CET From: Rainer Schoepf Organization: Inst. f. Theor. Physik d. Univ. Heidelberg Subject: Optional arguments and hooks To: LaTeX-L Mailing list In-Reply-To: Message of Mon, 11 Jun 90 12:41:35 GMT from Status: R X-Status: X-Keywords: X-UID: 130 Chris would like to remove all optional arguments, among other reasons to avoid the error messages caused by a left square bracket at a point where an optional argument may appear. Actually, nearly all these problems will disappear if spaces are longer permitted before [. That is easy to implement and fully covered by the explanation in the LaTeX book. Re hooks: does it matter whether a hook is a macro or a token register? That is an implementation decision. A simple \add@tohook is most certainly not sufficient, as Chris pointed out we will need a way to specify whether the addition is to be entered in front or in back. At the moment I cannot see a need for something like \subtract@fromhook, not in the concept of hook I have in mind. If you find yourself wanting this, you've already made a mistake )-; A hook should be used, e.g., to execute cleanup code. Rainer