* \par in end of define fails
@ 2010-12-16 0:26 Jonas Stein
2010-12-16 4:58 ` Aditya Mahajan
0 siblings, 1 reply; 7+ messages in thread
From: Jonas Stein @ 2010-12-16 0:26 UTC (permalink / raw)
To: ntg-context
\define[1]\myoneliner{#1 \par }
raises an error.
Why, and how should i repair it?
Kind regards,
--
Jonas Stein <news@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: \par in end of define fails
2010-12-16 0:26 \par in end of define fails Jonas Stein
@ 2010-12-16 4:58 ` Aditya Mahajan
2010-12-16 13:22 ` Mojca Miklavec
0 siblings, 1 reply; 7+ messages in thread
From: Aditya Mahajan @ 2010-12-16 4:58 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: \par in end of define fails
2010-12-16 4:58 ` Aditya Mahajan
@ 2010-12-16 13:22 ` Mojca Miklavec
2010-12-16 17:07 ` Jonas Stein
0 siblings, 1 reply; 7+ messages in thread
From: Mojca Miklavec @ 2010-12-16 13:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: \par in end of define fails
2010-12-16 13:22 ` Mojca Miklavec
@ 2010-12-16 17:07 ` Jonas Stein
2010-12-16 17:28 ` Vedran Miletić
0 siblings, 1 reply; 7+ messages in thread
From: Jonas Stein @ 2010-12-16 17:07 UTC (permalink / raw)
To: ntg-context
>>> \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 <news@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: \par in end of define fails
2010-12-16 17:07 ` Jonas Stein
@ 2010-12-16 17:28 ` Vedran Miletić
2010-12-16 21:23 ` Wolfgang Schuster
0 siblings, 1 reply; 7+ messages in thread
From: Vedran Miletić @ 2010-12-16 17:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 410 bytes --]
2010/12/16 Jonas Stein <news@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ć
[-- Attachment #1.2: Type: text/html, Size: 940 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: \par in end of define fails
2010-12-16 17:28 ` Vedran Miletić
@ 2010-12-16 21:23 ` Wolfgang Schuster
2010-12-17 11:08 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2010-12-16 21:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 603 bytes --]
Am 16.12.2010 um 18:28 schrieb Vedran Miletić:
> 2010/12/16 Jonas Stein <news@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
[-- Attachment #1.2: Type: text/html, Size: 1555 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: \par in end of define fails
2010-12-16 21:23 ` Wolfgang Schuster
@ 2010-12-17 11:08 ` Hans Hagen
0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2010-12-17 11:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 16-12-2010 10:23, Wolfgang Schuster wrote:
> 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.
i'll make the mkii ones long
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-12-17 11:08 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-16 0:26 \par in end of define fails Jonas Stein
2010-12-16 4:58 ` Aditya Mahajan
2010-12-16 13:22 ` Mojca Miklavec
2010-12-16 17:07 ` Jonas Stein
2010-12-16 17:28 ` Vedran Miletić
2010-12-16 21:23 ` Wolfgang Schuster
2010-12-17 11:08 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).