From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82139 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Re: Why does startlines not work in a function Date: Fri, 26 Apr 2013 22:30:09 +0200 Message-ID: References: <517AA990.5090602@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1367008213 32662 80.91.229.3 (26 Apr 2013 20:30:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Apr 2013 20:30:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 26 22:30:18 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UVpHc-0005Cs-VB for gctc-ntg-context-518@m.gmane.org; Fri, 26 Apr 2013 22:30:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3C540101F0; Fri, 26 Apr 2013 22:30:16 +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 BLC23lAz3QEF; Fri, 26 Apr 2013 22:30:13 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id CB0C3101E4; Fri, 26 Apr 2013 22:30:13 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AA09C101E4 for ; Fri, 26 Apr 2013 22:30:12 +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 jgfdQQ1kdGJ5 for ; Fri, 26 Apr 2013 22:30:12 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 17DAE101E0 for ; Fri, 26 Apr 2013 22:30:11 +0200 (CEST) Original-Received: from mail-wi0-x233.google.com (mail-wi0-x233.google.com [IPv6:2a00:1450:400c:c05::233]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3QKU9bt028510 for ; Fri, 26 Apr 2013 22:30:09 +0200 Original-Received: by mail-wi0-f179.google.com with SMTP id l13so1046341wie.0 for ; Fri, 26 Apr 2013 13:30:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=meDgr1PdQKB3xX2Xv0ECXzA8UL2upb3+HmlLylYVlWQ=; b=v3sTVNN1SP90HU6bIzAeTRMoMq9uNn87urn57Qa7s3DjnprrbsuyKjPOPEwS2hQmWC /14iZR8wNnPWORr4JUJP0b9iDArc4QQRXG+zX/BbLaafFU37cjjwPekfNXnVStq5n8HJ 4kfv+oJ2sh9tB/ZIhSJmzDAJX1FHmAq6NmYOVVuVwfHIBgAM30nJTtej5IZl5LI0JYku viM1xIe9BGwtA8dVtyIi4uNIvskZl5hW/QU3q81Z+phddrwN+Hk4zkTauiuXADMUSPfi G6BgZ3EtbL1RHVh/kJOWmWV/3LYJqCJ6RI08a3cQEJe0V7CwI/SiHTrwxWov1sraShZ5 EZTw== X-Received: by 10.180.189.205 with SMTP id gk13mr6280307wic.25.1367008209595; Fri, 26 Apr 2013 13:30:09 -0700 (PDT) Original-Received: by 10.194.109.233 with HTTP; Fri, 26 Apr 2013 13:30:09 -0700 (PDT) In-Reply-To: <517AA990.5090602@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::233; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WJsIu9sW - 95ff3bf5c10e - 20130426 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82139 Archived-At: 2013/4/26 Hans Hagen : > On 4/26/2013 5:19 PM, Cecil Westerhof wrote: >> >> I have the following code: > >> ... > >> But then the text becomes one line instead of several lines. > > > because catcode changes are involved > > \startbuffer [meta:personalInfo:long] > \startlines > > longline 1 > longline 2 > longline 3 > longline 4 > longline 5 > longline 6 > longline 7 > longline 8 > \stoplines > \stopbuffer > > \startbuffer [meta:personalInfo:] > \startlines > > shortline 1 > shortline 2 > shortline 3 > shortline 4 > \stoplines > \stopbuffer > > \starttext > > \getbuffer[meta:personalInfo:\getvariable{meta}{personalInfo}] > > \stoptext Works. Thanks. -- Cecil Westerhof ___________________________________________________________________________________ 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 ___________________________________________________________________________________