Re: [NTG-context] \par in end of define fails
On Thu, Dec 16, 2010 at 05:58, Aditya Mahajan wrote: On Thu, 16 Dec 2010, Jonas Stein wrote: \define[1]\myoneliner{#1 \par } raises an error. (Untested) \define[1]\myoneliner{#1 \endgraf} This is also nicely covered in TeXBook. Alternatively \long\def might work. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / 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 ___
Re: [NTG-context] \par in end of define fails
\define[1]\myoneliner{#1 \par } raises an error. \define[1]\myoneliner{#1 \endgraf} works fine. Thank you! This is also nicely covered in TeXBook. Alternatively \long\def might work. \long\define[1]\myoneliner{#1 \par } fails too kind regards, -- Jonas Stein n...@jonasstein.de ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / 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 ___
Re: [NTG-context] \par in end of define fails
2010/12/16 Jonas Stein n...@jonasstein.de \define[1]\myoneliner{#1 \par } raises an error. \define[1]\myoneliner{#1 \endgraf} works fine. Thank you! This is also nicely covered in TeXBook. Alternatively \long\def might work. \long\define[1]\myoneliner{#1 \par } fails too \long\def\myoneliner#1{#1 \par} should work. Regards, Vedran Miletić ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / 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 ___
Re: [NTG-context] \par in end of define fails
Am 16.12.2010 um 18:28 schrieb Vedran Miletić: 2010/12/16 Jonas Stein n...@jonasstein.de \define[1]\myoneliner{#1 \par } raises an error. \define[1]\myoneliner{#1 \endgraf} works fine. Thank you! This is also nicely covered in TeXBook. Alternatively \long\def might work. \long\define[1]\myoneliner{#1 \par } fails too \long\def\myoneliner#1{#1 \par} should work. You don’t need \long in this case, the problem is that \define itself isn’t defined as \long while in mkiv all commands are defined as \long. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / 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 ___
[NTG-context] \par in end of define fails
\define[1]\myoneliner{#1 \par } raises an error. Why, and how should i repair it? Kind regards, -- Jonas Stein n...@jonasstein.de ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / 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 ___
Re: [NTG-context] \par in end of define fails
On Thu, 16 Dec 2010, Jonas Stein wrote: \define[1]\myoneliner{#1 \par } raises an error. (Untested) \define[1]\myoneliner{#1 \endgraf} Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / 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 ___