ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: mp on odd and even
  2002-09-19 19:27 ` Henning Hraban Ramm
@ 2002-05-20  7:36   ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2002-05-20  7:36 UTC (permalink / raw)
  Cc: Michel van Ast, ntg-context

At 09:27 PM 9/19/2002 +0200, Henning Hraban Ramm wrote:
>Am Donnerstag, 19. September 2002 10:41 schrieb Michel van Ast:
> > In the lay-out of one of my styles I use a MetaPost-graphic. How can I
> > get this "graphic" placed on odd pages on the right and on even pages on
> > the left? Is it something like:
>
>Use \definelogo, see manual chapter page layout.
>You can define different logos or different placements for right and left
>pages.

It depends on where the decision is made:

(1) when the page ornaments are added: logo space can be used indeed, as 
well as:

\setupbackgrounds[leftpage][...]

and alike

(2) when the decisions are to be made during the running text, there is a 
macro:

   \doifrightpageelse {} {}

but in order to get the right decission, one also need to put a signal with

   \signalrightpage

beware: since the signal introduces a node in the mvl, you need to put it 
there where it cannot hurt the spacing and also make sure that it does not 
get loose from the thing related to your decision; also, there is a one-one 
match of \doif.. and \signal... (so don't let them get out of sync!)

Hans

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* mp on odd and even
@ 2002-09-19  8:41 Michel van Ast
  2002-09-19 19:27 ` Henning Hraban Ramm
  0 siblings, 1 reply; 3+ messages in thread
From: Michel van Ast @ 2002-09-19  8:41 UTC (permalink / raw)


Hello, 

In the lay-out of one of my styles I use a MetaPost-graphic. How can I
get this "graphic" placed on odd pages on the right and on even pages on
the left? Is it something like:

\ifodd
            ...
\else
            ...
\fi

TNX!
Michel.


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

* Re: mp on odd and even
  2002-09-19  8:41 mp on odd and even Michel van Ast
@ 2002-09-19 19:27 ` Henning Hraban Ramm
  2002-05-20  7:36   ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Henning Hraban Ramm @ 2002-09-19 19:27 UTC (permalink / raw)


Am Donnerstag, 19. September 2002 10:41 schrieb Michel van Ast:
> In the lay-out of one of my styles I use a MetaPost-graphic. How can I
> get this "graphic" placed on odd pages on the right and on even pages on
> the left? Is it something like:

Use \definelogo, see manual chapter page layout.
You can define different logos or different placements for right and left 
pages.

Grüßlis vom Hraban!
-- 
http://www.fiee.net
http://www.ramm.ch
---


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

end of thread, other threads:[~2002-09-19 19:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-19  8:41 mp on odd and even Michel van Ast
2002-09-19 19:27 ` Henning Hraban Ramm
2002-05-20  7:36   ` Hans Hagen

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