From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101569 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: How can I remove a blank leading line from a buffer Date: Mon, 13 Aug 2018 21:52:27 +0200 Message-ID: <13236aa2-5150-6415-efe6-5f7b56f111e7@gmail.com> References: <1cd49a92-b6c9-0c48-d148-c863a503a809@xs4all.nl> <1bcbc82c-b9e3-4055-8e18-4786cdd8cc68@gmail.com> <0adfd084-48ce-f956-383b-3265ed4b5fee@rik.users.panix.com> <01b9ac7b-89d5-7c9d-5b26-4895e37017c5@gmail.com> <48094c7d-5f59-fe1f-2fca-233a51dca3e5@rik.users.panix.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4860531881522730774==" X-Trace: blaine.gmane.org 1534189863 21586 195.159.176.226 (13 Aug 2018 19:51:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 13 Aug 2018 19:51:03 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 PostboxApp/6.1.1 Cc: mailing list for ConTeXt users To: Rik Kabel Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 13 21:50:58 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fpIri-0005VI-N0 for gctc-ntg-context-518@m.gmane.org; Mon, 13 Aug 2018 21:50:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 128255040D; Mon, 13 Aug 2018 21:52:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8y2xKL83ElEi; Mon, 13 Aug 2018 21:52:43 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 600A650410; Mon, 13 Aug 2018 21:52:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CE33E50410 for ; Mon, 13 Aug 2018 21:52:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gZUKy16fn9fq for ; Mon, 13 Aug 2018 21:52:41 +0200 (CEST) Original-Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A63AE5040D for ; Mon, 13 Aug 2018 21:52:31 +0200 (CEST) Original-Received: by mail-ed1-f52.google.com with SMTP id h4-v6so8884206edi.6 for ; Mon, 13 Aug 2018 12:52:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=5z8WSR4gLw9Evsu+ekmEJqA9bmZVEe2ZM2iOq6VLw0E=; b=LCSkIM18367NwksYUSkxGdSRvGdcV2+Q3/8dwBXQSoRTrP4WxSuwzLDIM4Sw+XSPzU gFrPO2ZzjgrDfNb9S+p/FIH6gzwT2r8lvsMHw8RxC5c7JTLkIurSpqvief68xTBrAY56 10yTWy9qVYA8sfhZ1xUVPCMFZBXgNrCNEX4fsWvgPRo2VDiDJSAhSp0KjIojfacvA8Ly YItOfN2Ye2UW/vZ2PJMw198mUcCVyDLhzhBtu2oDhlyzkWNeE0dxOzUNXucEBSqNDk35 JisTUmmUfsf7c5QPgg5uJihQ8OlCwarRVuGXgg4iagHbRhwT2+/IdyHzv4RhorFXwFan WUHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=5z8WSR4gLw9Evsu+ekmEJqA9bmZVEe2ZM2iOq6VLw0E=; b=Kcfgylk1hE7nvWL+eraRp59aeCJDw9NpNP9kP8WJEYtRlRFO27vEipMS7MSLZhEVEI x8wJMsXMZhtkkFB0gnVounW+AhdrOQHDKdzcT1FstrEBvT9yzqx3AuoPf3HvTaH7CZdA 9ck0y5xCPnHHPmPZaEMVq9kXtVbe4k7dphYrhXgT94It/h+PdcDQRXV7KMq7EaM1Rm7j XiIELOVbqILOamIF0VGP4YE7LtYuS6feGidu2s94ZULc7uCAgSuKDaoFrpP8lTeCFwZv FIu0iDg27cBp6ryaM1SL//AmptpQS/DX64FZjbkYwerVt+o4VmVNqrP7ypatgWm/QaXs oGGQ== X-Gm-Message-State: AOUpUlEhoFsS/U4oNs8kFDDFqeLHGiV+8vex4IWnp/556ILhIBJyVi0x YyQDmbIyKCc260t7Jr6a5yvqhhfA X-Google-Smtp-Source: AA+uWPy1dRsvTqPCvN5DmVzi7N1ipI35zBtZPYQE2LlDMS4YID2Z3CwUtB+0sGQhquJ8ra5x5PiOIg== X-Received: by 2002:a50:9084:: with SMTP id c4-v6mr23860962eda.179.1534189951027; Mon, 13 Aug 2018 12:52:31 -0700 (PDT) Original-Received: from [192.168.1.11] (x4dbd8157.dyn.telefonica.de. [77.189.129.87]) by smtp.gmail.com with ESMTPSA id s12-v6sm6809458edq.20.2018.08.13.12.52.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Aug 2018 12:52:30 -0700 (PDT) In-Reply-To: <48094c7d-5f59-fe1f-2fca-233a51dca3e5@rik.users.panix.com> Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:101569 Archived-At: This is a multi-part message in MIME format. --===============4860531881522730774== Content-Type: multipart/alternative; boundary="------------2A78B9903EBC6ADD4BDC1ED9" Content-Language: en-US This is a multi-part message in MIME format. --------------2A78B9903EBC6ADD4BDC1ED9 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Rik Kabel schrieb am 13.08.18 um 20:27: > On 8/13/2018 13:46, Wolfgang Schuster wrote: >> >> \starttext >> >> \BeforePar{\dontleavehmode\llap{? }}\GotoPar >> >> \input knuth >> >> \startnarrower >> >> \BeforePar{\dontleavehmode\llap{? }}\GotoPar >> >> \input knuth >> >> \stopnarrower >> >> \stoptext >> >> Wolfgang > > I am applying it incorrectly, or it does not work with the buffers > created by \grabbufferdata: > > \setupwhitespace[none] > \setupindenting[none] > \starttexdefinition unexpanded startBufTest > \bgroup > \dosingleempty\dostartBufTest > \stoptexdefinition > \starttexdefinition dostartBufTest [#SETUPS] > \getrawparameters[BufTest][xx=yy,#SETUPS] > \grabbufferdata[TestBuffer][startBufTest][stopBufTest] > \stoptexdefinition > \starttexdefinition stopBufTest > \startnarrower[left,right] > \startparagraph > \BeforePar{\dontleavehmode\llap{? }}\GotoPar > \inlinebuffer[TestBuffer] > \stopparagraph > \stopnarrower > \egroup > \stoptexdefinition > \starttexdefinition stopBufTest \startnarrower[left,right] \startparagraph \dontleavehmode\llap{? }% \blank[overlay] \inlinebuffer[TestBuffer] \stopparagraph \stopnarrower \egroup \stoptexdefinition Wolfgang --------------2A78B9903EBC6ADD4BDC1ED9 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Rik Kabel schrieb am 13.08.18 um 20:27:
On 8/13/2018 13:46, Wolfgang Schuster wrote:

\starttext

\BeforePar{\dontleavehmode\llap{? }}\GotoPar

\input knuth

\startnarrower

\BeforePar{\dontleavehmode\llap{? }}\GotoPar

\input knuth

\stopnarrower

\stoptext

Wolfgang

I am applying it incorrectly, or it does not work with the buffers created by \grabbufferdata:

\setupwhitespace[none]
\setupindenting[none]
\starttexdefinition unexpanded startBufTest
  \bgroup
  \dosingleempty\dostartBufTest
\stoptexdefinition
\starttexdefinition dostartBufTest [#SETUPS]
  \getrawparameters[BufTest][xx=yy,#SETUPS]
  \grabbufferdata[TestBuffer][startBufTest][stopBufTest]
\stoptexdefinition
\starttexdefinition stopBufTest
  \startnarrower[left,right]
  \startparagraph
    \BeforePar{\dontleavehmode\llap{? }}\GotoPar
    \inlinebuffer[TestBuffer]
  \stopparagraph
  \stopnarrower
  \egroup
\stoptexdefinition

\starttexdefinition stopBufTest
  \startnarrower[left,right]
  \startparagraph
    \dontleavehmode\llap{? }%
    \blank[overlay]
    \inlinebuffer[TestBuffer]
  \stopparagraph
  \stopnarrower
  \egroup
\stoptexdefinition


Wolfgang
--------------2A78B9903EBC6ADD4BDC1ED9-- --===============4860531881522730774== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============4860531881522730774==--