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.)
Am 07.04.2011 um 11:27 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
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
Thanks for the piece of code.
The macro is temporary - not systematic.
It should just help me to restyle some copy-pasted text from Word to .mkiv
source.
This way, I'm just prefixing such lines with e.g. \foo, no extra job is
necassary, just to create a valid body of the macro (\dofoo).