From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/97110 Path: news.gmane.org!.POSTED!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: dorecurse problem Date: Fri, 20 Jan 2017 06:46:22 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Content-Type: multipart/mixed; boundary="===============5180274692414453318==" X-Trace: blaine.gmane.org 1484891250 32127 195.159.176.226 (20 Jan 2017 05:47:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2017 05:47:30 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 20 06:47:25 2017 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 1cUS2I-0005GJ-2K for gctc-ntg-context-518@m.gmane.org; Fri, 20 Jan 2017 06:46:54 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A4B541240377; Fri, 20 Jan 2017 06:46:40 +0100 (CET) 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 qpgESTh6-wA3; Fri, 20 Jan 2017 06:46:39 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id E35181240382; Fri, 20 Jan 2017 06:46:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3689B1240365 for ; Fri, 20 Jan 2017 06:46:39 +0100 (CET) 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 It8mBhRalicG for ; Fri, 20 Jan 2017 06:46:38 +0100 (CET) Original-Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) (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 8DC571240362 for ; Fri, 20 Jan 2017 06:46:28 +0100 (CET) Original-Received: by mail-wm0-f54.google.com with SMTP id c206so27239957wme.0 for ; Thu, 19 Jan 2017 21:46:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=PJtLkB06z1usGQQpn3UfZrrEnB+NUAnvCSH0RQWuMvs=; b=idyyPBaRCgEfYUWQ397mdrES0s3O1qGZydqNHsaxo9YpcQTxmtCWDUvKVHmJWYLeFQ kz4XxHDE1hsY8TaVQX+cAUp0+ni6+zHlcj5kIM99h+wKBpNZui/tHWfV28zLEubdv8iZ qQ1ZIhVOHJcZke3de7eKhsfSU2q8a04ZudW+zypl06DZYneETh5j/7Nl1L/xawTACcrt 2GTr7JV6jjuCZdCqbebsDGMGWloJW8QAoXax8I5N7lGlTPjJ8gufVK+J1Wcwz+huvjZS EgG3W4mcnP+pGvcLUorX0hJR1Q9GD5P3KAVSlOGOcDg7/NuNvj2tD4RybadE19bn6kRg 220Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=PJtLkB06z1usGQQpn3UfZrrEnB+NUAnvCSH0RQWuMvs=; b=P2okK82KlCXQ5p9htUDNpWgu3427qMaz2qJ9arJnyVj/rrGpa+MbCMsld8Gen7trcf lnKzSoon3uJqmeQy6/XoSjrYqQT319jS7yGLnNCNiDJb0uYkPK/ch/6Rd39j1vDwM0gc TPrPa8ZBe4tFAJmDFtDdQxIJZxaNxEE5l7wJxC+DNLLA7bqCY+Xxe+guGurktbab1Ha0 GVVvXJUyK9xMQODY/MkOueWcgbOIUzfsbFFXasa9obzf84cMrtQB7/vBVAyXFl9bMdMi YkrFkALJE7DpEzthVRP7I2IC2k794pu9VATjUsQ+EXjC4UurtjVttYKIrqDXm6yLIWuO Yw+Q== X-Gm-Message-State: AIkVDXLiiK4T95uziAEaMFBS9aQ/r2aLehC0WrxACEyXNM5E1YJdkwc6sJgpxZckNUfr3Q== X-Received: by 10.28.135.82 with SMTP id j79mr1680955wmd.19.1484891187872; Thu, 19 Jan 2017 21:46:27 -0800 (PST) Original-Received: from ?IPv6:2a01:e34:ec02:4760:b519:2907:5c6f:428e? ([2a01:e34:ec02:4760:b519:2907:5c6f:428e]) by smtp.gmail.com with ESMTPSA id d14sm3452840wmd.19.2017.01.19.21.46.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2017 21:46:26 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3259) 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:97110 Archived-At: --===============5180274692414453318== Content-Type: multipart/alternative; boundary="Apple-Mail=_3AA0A672-A42C-4DA3-8492-91600290B8EE" --Apple-Mail=_3AA0A672-A42C-4DA3-8492-91600290B8EE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Rik, I can confirm the behaviour you are reporting (even without = \startstandardmakeup=E2=80=94\stopstandardmakeup, but adding a line of = text in the document in order to have an output). It seems that \dorecurse suppresses the passage to another line, since = if one says \dorecurse{10} the texts in the framed layer are typeset ten = times on the same line, as if the command \startlines were not there. Best regards: OK > On 20 Jan 2017, at 04:34, Rik Kabel = wrote: >=20 > ConTeXters, >=20 > When \dorecurse is active in the following MWE, the lines of text are = overprinted. At least, this is the case for me, please confirm it for = yourself. When \dorecurse is disabled, the lines print as they should, = separately. Please tell me what I am doing wrong with this, if anything, = and how to fix it. (Running ConTeXt ver: 2017.01.17 17:37 MKIV beta = fmt: 2017.1.19 on Win10 x64. There are no errors in the log.) >=20 > \definelayer > [blocks] > [width=3D\textwidth, > height=3D\textheight] >=20 > \setupbackgrounds > [page] > [background=3Dblocks] >=20 > \starttext > \dorecurse{1}{ % comment to clear error > \startstandardmakeup > \setlayerframed > [blocks] > [preset=3Dlefttop, > frame=3Doff, > align=3Dright]{ > \startlines > Line one on the left > Line two on the left > \stoplines > } > \setlayerframed > [blocks] > [preset=3Drighttop, > frame=3Doff, > align=3Dflushright]{ > \startlines > thgir eht no eno eniL > thgir eht no owt eniL > \stoplines > } > \stopstandardmakeup > } % comment to clear error > \stoptext >=20 > --=20 > Rik --Apple-Mail=_3AA0A672-A42C-4DA3-8492-91600290B8EE Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi Rik,

I = can confirm the behaviour you are reporting (even without = \startstandardmakeup=E2=80=94\stopstandardmakeup, but adding a line of = text in the document in order to have an output).
It = seems that \dorecurse suppresses the passage to another line, since if = one says \dorecurse{10} the texts in the framed layer are typeset ten = times on the same line, as if the command \startlines were not = there.

Best = regards: OK

On = 20 Jan 2017, at 04:34, Rik Kabel <context@rik.users.panix.com> wrote:

ConTeXters,

When \dorecurse is active in the following MWE, = the lines of text are overprinted. At least, this is the case for me, = please confirm it for yourself. When \dorecurse is disabled, the lines = print as they should, separately. Please tell me what I am doing wrong = with this, if anything, and how to fix it. (Running ConTeXt  ver: = 2017.01.17 17:37 MKIV beta  fmt: 2017.1.19 on Win10 x64. There are = no errors in the log.)

  \definelayer
    [blocks]
    [width=3D\textwidth,
     height=3D\textheight]

  \setupbackgrounds
    [page]
    [background=3Dblocks]

  \starttext
    \dorecurse{1}{ =          % comment to clear = error
      \startstandardmakeup=
        \setlayerframed=
          [bl= ocks]
          [pr= eset=3Dlefttop,
          &nb= sp;frame=3Doff,
          &nb= sp;align=3Dright]{
          \st= artlines
          &nb= sp; Line one on the left
          &nb= sp; Line two on the left
          \st= oplines
        }
        \setlayerframed=
          [bl= ocks]
          [pr= eset=3Drighttop,
          &nb= sp;frame=3Doff,
          &nb= sp;align=3Dflushright]{
          \st= artlines
          &nb= sp; thgir eht no eno eniL
          &nb= sp; thgir eht no owt eniL
          \st= oplines
        }
      \stopstandardmakeup<= br style=3D"font-family: Times-Roman; font-size: 16px; font-style: = normal; font-variant-caps: normal; font-weight: normal; letter-spacing: = normal; orphans: auto; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; widows: auto; word-spacing: = 0px; -webkit-text-stroke-width: 0px;" class=3D"">    } =             &n= bsp;         % comment to = clear error
  \stoptext

-- 
Rik

= --Apple-Mail=_3AA0A672-A42C-4DA3-8492-91600290B8EE-- --===============5180274692414453318== 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 --===============5180274692414453318==--