ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* odd and even test: incorrect behavior on the first two lines
@ 2012-09-06 23:04 stdin | Alexandre Leray
  2012-09-06 23:28 ` Peter Münster
  0 siblings, 1 reply; 2+ messages in thread
From: stdin | Alexandre Leray @ 2012-09-06 23:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi,

I'm trying to make the content of an environment behave differently 
weither it appears on a right page or on a left page. It works mainly, 
except that with the following code, from the second page, the two first 
lines of subsequent pages don't show the expected behavior.

\setuppagenumbering[alternative=doublesided]
\definestartstop[foo][
     before={\doifrightpageelse{(right)}{(left)}},
]
\starttext
     \dorecurse{100}{
         \startfoo
         hello world\par
         \stopfoo
     }
\stoptext

Is it a known problem? How can one fix this?

Thanks,

Alex

-- 
Alexandre Leray
media & graphic design
http://stdin.fr | http://osp.constantvzw.org/
rue Gallaitstraat 80
1030 Bruxelles
+32 (0)4 87 04 70 30


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

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: odd and even test: incorrect behavior on the first two lines
  2012-09-06 23:04 odd and even test: incorrect behavior on the first two lines stdin | Alexandre Leray
@ 2012-09-06 23:28 ` Peter Münster
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Münster @ 2012-09-06 23:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Sep 07 2012, stdin | Alexandre Leray wrote:

> before={\doifrightpageelse{(right)}{(left)}},

before=(\signalrightpage\doifrightpageelse{right}{left}),

See also: http://bit.ly/QfkORJ ;)

-- 
           Peter
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-06 23:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-06 23:04 odd and even test: incorrect behavior on the first two lines stdin | Alexandre Leray
2012-09-06 23:28 ` Peter Münster

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).