From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/53518 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \starbuffer in own macros Date: Sun, 18 Oct 2009 11:14:19 +0200 Message-ID: <8CACE944-2B73-4387-90CE-1351EE13B8F4@googlemail.com> References: <6faad9f00910161206h7540f0fai2d6cde281cbc9977@mail.gmail.com> <4AD9DBA5.1020707@bredband.net> <4AD9E6F3.5090406@bredband.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset="windows-1252"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1255857831 23766 80.91.229.12 (18 Oct 2009 09:23:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Oct 2009 09:23:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 18 11:23:41 2009 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.50) id 1MzRqZ-0000eq-CK for gctc-ntg-context-518@m.gmane.org; Sun, 18 Oct 2009 11:14:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D5BCFC9B41; Sun, 18 Oct 2009 11:14:37 +0200 (CEST) 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 weqp1C4qKJQA; Sun, 18 Oct 2009 11:14:37 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 72852C9B91; Sun, 18 Oct 2009 11:14:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4133EC9B91 for ; Sun, 18 Oct 2009 11:14:32 +0200 (CEST) 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 Wd+rWd0m2fMx for ; Sun, 18 Oct 2009 11:14:27 +0200 (CEST) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by balder.ntg.nl (Postfix) with ESMTP id 24AA8C9B41 for ; Sun, 18 Oct 2009 11:14:27 +0200 (CEST) Original-Received: by fg-out-1718.google.com with SMTP id d23so850502fga.2 for ; Sun, 18 Oct 2009 02:14:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=L2lcV2QRArua+C3D3CT86VJuXIYBjA1DxQwOTm/ooUc=; b=hph0FpLdO6KllPTTxFhXHVRdogh76FnWcjW0qz5k2Sxi3ufkphTan8BQKCgXyb7PIE MKPzfcYcT0wr/dzKgP3QOuNSKPUTxJqATmmvxrfSx/BhX5VXcf2Gc1DF+M9Uuk0ZlMsi Gr8OitbfOJj5Hu8OPrJvvckdUfE3PLo4hGXRg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=E78KPO0JvziZCJLSaSjAOK4ZhxYdzFMB/Q4j8bti55pqL7Gz2fTXJ/br1naNaMDXhu xu/KhSriVPy8N6v5JQxVl5rdSwoTVh75DYalwynktNhaGGrk3TN0YgesJ3xvbOqBraZ3 qHgK4/5JukP9kTKhVHdD4Y5vKdC2tKXxspaQE= Original-Received: by 10.103.126.27 with SMTP id d27mr1427699mun.56.1255857266862; Sun, 18 Oct 2009 02:14:26 -0700 (PDT) Original-Received: from ?192.168.2.23? (p54953F25.dip.t-dialin.net [84.149.63.37]) by mx.google.com with ESMTPS id j10sm4686189mue.6.2009.10.18.02.14.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 18 Oct 2009 02:14:25 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1076) 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:53518 Archived-At: Am 17.10.2009 um 22:29 schrieb Andreas Harder: > Hi all, > > now that \inline[ref] etc. work=97whereas in the case of \someline = > [ref] \inline[ref] always jumps to the else-branch of its definition = > and outputs the same line twice=97I tried, obviously naive, to realize = > the following functionality (attachment). > > It seems that the (wrong?) use of \starbuffer in a macro is the = > cause of the error: ! File ended while scanning use of = > \dododowithbuffer. > > Can someone provide a correction? 1. This \doifelsesamelinereference macro in page-lin.mkiv should be = changed to: \def\doifelsesamelinereference#1#2#3% {\doifreferencefoundelse{lr:b:#1} {\edef\fline{\currentreferencedefault}% was \currentreferencetext \doifreferencefoundelse{lr:e:#1} {\edef\tline{\currentreferencedefault}% was = \currentreferencetext \ifx\fline\tline#2\else#3\fi} {\unknownreference{#1}#2}} {\unknownreference{#1}#2}} 2. You can't hide start/stopbuffer. Before I help you provide us with more information, e.g. should the = text in the buffer appear also in the complete text or do you it only in the snippet? Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________