On Tue, Jan 02, 2007 at 03:18:17PM +0000, Adam Fenn wrote: > Illegal parameter number in definition of \foot1. \endnote takes its argument and puts it inside the body of another macro, so you need to escape #, that is, double it: \endnote{\halign{% ##\hfil & ##\hfil \cr 1st col& 2nd col\cr first col& second col\cr }}% Best, Oleg