Hello,
how to define a macro to take the new-line character as end-of-parameter?
The following macro:
\def\T#1\par{#1}
takes everything until \par (or empty line as it equals \par primitive) as #1,
so the following is valid:
\T abc def\par
\T abc
\T def
(#1 becomes: "abc def", "abc" and "def".)
How to define the same macro to accept end-of-line as end-of-parameter?
I tried (although I'm aware this may not lead to the goal):
\def\T#1^^M{#1}
or
\def\T#1\crlf{#1}
to allow writing:
\T abc def
\T abc
\T def
So how to define the macro?
Thanks in advance.
Kind regards,
Lukas
--
Ing. Lukáš Procházka [mailto:[email protected]]
Pontex s. r. o. [mailto:[email protected]] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4
Tel: +420 244 062 238
Fax: +420 244 461 038
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________