From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64569 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \par in end of define fails Date: Thu, 16 Dec 2010 22:23:14 +0100 Message-ID: References: <2v2ot7-bk5.ln1@news.jonasstein.de> <5ktpt7-h73.ln1@news.jonasstein.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: multipart/mixed; boundary="===============0814053420==" X-Trace: dough.gmane.org 1292534638 8779 80.91.229.12 (16 Dec 2010 21:23:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Dec 2010 21:23:58 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 16 22:23:54 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PTLIn-0001V9-TV for gctc-ntg-context-518@m.gmane.org; Thu, 16 Dec 2010 22:23:53 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5B040CA8FF; Thu, 16 Dec 2010 22:23:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id N5mTSS4i1CVg; Thu, 16 Dec 2010 22:23:49 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6B8EFCA8B5; Thu, 16 Dec 2010 22:23:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 367FACA8B5 for ; Thu, 16 Dec 2010 22:23:48 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zZdb1-2eobzd for ; Thu, 16 Dec 2010 22:23:33 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 57411CA8B0 for ; Thu, 16 Dec 2010 22:23:33 +0100 (CET) Original-Received: from mail-bw0-f45.google.com (mail-bw0-f45.google.com [209.85.214.45]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oBGLNW1L001756 for ; Thu, 16 Dec 2010 22:23:32 +0100 Original-Received: by bwz16 with SMTP id 16so151539bwz.18 for ; Thu, 16 Dec 2010 13:23:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:mime-version :content-type:subject:date:in-reply-to:to:references:message-id :x-mailer; bh=0LDaAkF3Sa05652yoSGvaUlu7XfqZAGlg/AVYe7NG1U=; b=ZmCeV06OM0NQ7VF3iyJSxzOrjt7UMTX8B8wFvmDrCcM02gs+LItXo9aVgjLjIoga9/ A90iPgKUzDM1UNlMLf2ENxw8/McB0oe132tQ5pLZwNbxIKAdAICTitP2lALbjd+ahM6Q vZvAc8WnHsk2z5zUtQPF/93c8wMNW+NcgF0fE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; b=N9b6O5pJBDeGcgqhcq6bmpkFSQiNacnyDtUI+TjS7kh6YE1R/AW+cDwt1/zd+8a3/C vwCDN51zZl624mC9Tdejgv7wxckISpGNOqSXmrDWzwG3ML/2TJJCqi1TYbo5FL1uc1M+ QoexCq8OS4GERSmUOY6UJbpuaNdkv9CSvqL2s= Original-Received: by 10.204.117.147 with SMTP id r19mr1117150bkq.186.1292534612050; Thu, 16 Dec 2010 13:23:32 -0800 (PST) Original-Received: from [192.168.2.23] (p5B294A68.dip.t-dialin.net [91.41.74.104]) by mx.google.com with ESMTPS id b6sm628694bkb.10.2010.12.16.13.23.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 16 Dec 2010 13:23:30 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.45; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bDHVnwNo - 2337ec685169 - 20101216 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:64569 Archived-At: --===============0814053420== Content-Type: multipart/alternative; boundary=Apple-Mail-1-694781643 --Apple-Mail-1-694781643 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Am 16.12.2010 um 18:28 schrieb Vedran Mileti=C4=87: > 2010/12/16 Jonas Stein > >>> \define[1]\myoneliner{#1 \par } > >>> raises an error. >=20 > >> \define[1]\myoneliner{#1 \endgraf} >=20 > works fine. Thank you! >=20 > > This is also nicely covered in TeXBook. > > Alternatively \long\def might work. >=20 > \long\define[1]\myoneliner{#1 \par }=20 > fails too >=20 > \long\def\myoneliner#1{#1 \par} should work. You don=E2=80=99t need \long in this case, the problem is that \define itself isn=E2=80=99t defined as \long while in mkiv all commands are defined as \long. Wolfgang --Apple-Mail-1-694781643 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
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=E2=80=99t = need \long in this case, the problem is = that
\define itself isn=E2=80=99t defined as \long while = in mkiv
all commands are defined as = \long.

Wolfgang

= --Apple-Mail-1-694781643-- --===============0814053420== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0814053420==--