ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: dorecurse problem
Date: Fri, 20 Jan 2017 06:46:22 +0100	[thread overview]
Message-ID: <C052A060-BC48-47F8-A460-170A5C528D58@gmail.com> (raw)
In-Reply-To: <ee501659-9a2f-b245-ba91-3bb17dc21098@rik.users.panix.com>


[-- Attachment #1.1: Type: text/plain, Size: 1868 bytes --]

Hi Rik,

I can confirm the behaviour you are reporting (even without \startstandardmakeup—\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=\textwidth,
>      height=\textheight]
> 
>   \setupbackgrounds
>     [page]
>     [background=blocks]
> 
>   \starttext
>     \dorecurse{1}{          % comment to clear error
>       \startstandardmakeup
>         \setlayerframed
>           [blocks]
>           [preset=lefttop,
>            frame=off,
>            align=right]{
>           \startlines
>             Line one on the left
>             Line two on the left
>           \stoplines
>         }
>         \setlayerframed
>           [blocks]
>           [preset=righttop,
>            frame=off,
>            align=flushright]{
>           \startlines
>             thgir eht no eno eniL
>             thgir eht no owt eniL
>           \stoplines
>         }
>       \stopstandardmakeup
>     }                       % comment to clear error
>   \stoptext
> 
> -- 
> Rik


[-- Attachment #1.2: Type: text/html, Size: 30253 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2017-01-20  5:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-20  3:34 Rik Kabel
2017-01-20  5:46 ` Otared Kavian [this message]
2017-01-20  7:59 ` Aditya Mahajan
2017-01-20  9:08   ` Hans Hagen
2017-01-20 16:42     ` Otared Kavian
2017-01-20 17:00       ` Rik Kabel
2017-01-20 17:06         ` Otared Kavian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C052A060-BC48-47F8-A460-170A5C528D58@gmail.com \
    --to=otared@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).