X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] ["533" "Mon" "18" "October" "1999" "10:07:22" "+0100" "David Carlisle" "davidc@NAG.CO.UK" nil "15" "Re: Expandable templates" "^Date:" nil nil "10" nil nil nil nil nil] nil) Received: from mail.listserv.gmd.de (mail.listserv.gmd.de [192.88.97.5]) by mail.Uni-Mainz.DE (8.9.3/8.9.3) with ESMTP id LAA13780 for ; Mon, 18 Oct 1999 11:11:22 +0200 (MET DST) Received: from mail.listserv.gmd.de (192.88.97.5) by mail.listserv.gmd.de (LSMTP for OpenVMS v1.1a) with SMTP id <3.F6E24565@mail.listserv.gmd.de>; Mon, 18 Oct 1999 11:11:18 +0200 Received: from RELAY.URZ.UNI-HEIDELBERG.DE by RELAY.URZ.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 1.8b) with spool id 444975 for LATEX-L@RELAY.URZ.UNI-HEIDELBERG.DE; Mon, 18 Oct 1999 11:09:36 +0200 Received: from nag.co.uk (openmath.nag.co.uk [192.156.217.16]) by relay.urz.uni-heidelberg.de (8.8.8/8.8.8) with ESMTP id LAA21213 for ; Mon, 18 Oct 1999 11:09:30 +0200 (MET DST) Received: (from davidc@localhost) by nag.co.uk (AIX4.2/UCB 8.7/8.7) id KAA17744; Mon, 18 Oct 1999 10:07:22 +0100 (BST) References: <199910171448.PAA27438@mimosa.csv.warwick.ac.uk> Message-ID: <199910180907.KAA17744@nag.co.uk> Reply-To: Mailing list for the LaTeX3 project In-Reply-To: <199910171448.PAA27438@mimosa.csv.warwick.ac.uk> (message from James Kilfiger on Sun, 17 Oct 1999 15:48:36 +0100) Date: Mon, 18 Oct 1999 10:07:22 +0100 From: David Carlisle Sender: Mailing list for the LaTeX3 project To: Multiple recipients of list LATEX-L Subject: Re: Expandable templates Status: R X-Status: X-Keywords: X-UID: 3357 > but I get errors when I put instances in an \edef. The number of commands that work in an edef is vanishingly small;-) Probably (instances of) templates could be (or perhaps already are!) robust via the normal latex \protect mechanism, in which case they should survive the latex equivalent of \edef which is \protected@edef. There is no way to make an instance of a template expandable in general as the key setting in the template call are typically low level register assignments in TeX, and they are not expandable. David