[texhax] question about newlines

Philip G. Ratcliffe philipratcliffe at tiscali.it
Sat Oct 23 10:47:47 CEST 2004


> I don't have much experience writing advanced macros, but
> I always wanted to write a macro that has a newline as delimiter.
> So I could say something like
> 
> ----
> \mymacro argument
> 
> rest of the document
> ---
> 
> Do you know any way of doing this?

Try this

\def\mymacro#1\par{blah blah #1 blah blah}

Cordialmente,  Philip G. Ratcliffe
-----------------------------------------
Professor of Nuclear & Subnuclear Physics
Dipartimento di Fisica e Matematica
Universita degli Studi dell'Insubria
via Valleggio 11
22100 Como (CO)
Italy

Tel. +39 (039) 238.6231
Fax  +39 (039) 238.6119
Cell +39 (340) 2346580
Web  http://www.unico.it/~pgr
-----------------------------------------



More information about the texhax mailing list