From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64565 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Vedran_Mileti=C4=87?= Newsgroups: gmane.comp.tex.context Subject: Re: \par in end of define fails Date: Thu, 16 Dec 2010 18:28:09 +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 Content-Type: multipart/mixed; boundary="===============0973644685==" X-Trace: dough.gmane.org 1292520535 14906 80.91.229.12 (16 Dec 2010 17:28:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Dec 2010 17:28:55 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 16 18:28:51 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 1PTHdJ-0004Hp-2O for gctc-ntg-context-518@m.gmane.org; Thu, 16 Dec 2010 18:28:49 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AEDA6CA90A; Thu, 16 Dec 2010 18:28:47 +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 iEsc8Ou2BXyD; Thu, 16 Dec 2010 18:28:47 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 25D70CA8F7; Thu, 16 Dec 2010 18:28:44 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 70028CA8F7 for ; Thu, 16 Dec 2010 18:28:42 +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 hS9H7txRO0p4 for ; Thu, 16 Dec 2010 18:28:31 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 01299CA8B9 for ; Thu, 16 Dec 2010 18:28:30 +0100 (CET) Original-Received: from mail-ey0-f172.google.com (mail-ey0-f172.google.com [209.85.215.172]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oBGHSUni002209 for ; Thu, 16 Dec 2010 18:28:30 +0100 Original-Received: by eyd10 with SMTP id 10so2054014eyd.3 for ; Thu, 16 Dec 2010 09:28:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=kW+SsUMGx6VE7kDVQpouGZO5gOSNJSD2HRLMCRNi3Bg=; b=ognztsYEuKL/M8WZUZcMxT+Vd3ExkhjOMcWPDxap6ck21PLGxB/MfosavvEaeT044W g5rAUN25DS86h+SV1KWdr6m5LpH6Ag2nqnYSggjOFyzjwp7bklRqswkFQlM0oJyQi63a +vNThCuSHDaEMPO2Hsy65Ab5B+1BIznbrQHGU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=CpWtDwcOA3pzH0AxnkyP2cGN8h5ohTnbKWcHQBj3H4Cptuqxwzn+IARVsiJ8kVp5Xe CUV/ZFFoxoj9eJdZAdTJRwEP2DhZIdz1myvqoskC/cQliebUibzXpaDwqFR/dSKmvuHL dENfSR/pA2L7k0Hm5ATG6YOKNNqCjo3Eql8Ag= Original-Received: by 10.216.187.7 with SMTP id x7mr6340422wem.38.1292520509970; Thu, 16 Dec 2010 09:28:29 -0800 (PST) Original-Received: by 10.217.5.136 with HTTP; Thu, 16 Dec 2010 09:28:09 -0800 (PST) In-Reply-To: <5ktpt7-h73.ln1@news.jonasstein.de> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.172; 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: 06DHRsulw - 530235af5692 - 20101216 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:64565 Archived-At: --===============0973644685== Content-Type: multipart/alternative; boundary=001485f44a30dcb07f04978a6177 --001485f44a30dcb07f04978a6177 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2010/12/16 Jonas Stein > >>> \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=C4=87 --001485f44a30dcb07f04978a6177 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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 }=C2=A0
fails too

\long\def\myoneliner#1{#1 \par} should w= ork.

Regards,

Vedran Mileti=C4=87
--001485f44a30dcb07f04978a6177-- --===============0973644685== 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 ___________________________________________________________________________________ --===============0973644685==--