[NTG-context] TeX: Macro definition

2011-04-07 Thread 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 following is valid: \T abc def\par \T abc \T def (#1 becomes: abc def, abc and def.)

Re: [NTG-context] TeX: Macro definition

2011-04-07 Thread Wolfgang Schuster
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

Re: [NTG-context] TeX: Macro definition

2011-04-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
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).