From: Giuseppe Bilotta <gip.bilotta@iol.it>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Symmetrical layer positioning?
Date: Mon, 16 Jul 2007 18:41:20 +0200 [thread overview]
Message-ID: <1569133368.20070716184120@iol.it> (raw)
In-Reply-To: <alpine.WNT.0.999.0707161141140.3904@nqvgln>
Monday, July 16, 2007 Aditya Mahajan wrote:
> On Mon, 16 Jul 2007, Giuseppe Bilotta wrote:
>> Hello all,
>>
>> is there a "secret power switch" to tell ConTeXt that a
>> particular layer has different positioning depending on
>> wether it's on a left or right page?
> You can possible use setups and use \doifoddpageelse to set the
> layers. See
> http://archive.contextgarden.net/thread/20061102.171506.2fa793e2.en.html
Thanks a lot. I don't know if using presets is actually
going to reduce the coding, though.
In the mean time, I've found that layers have a doublesided
option. This apparently allows you to override the
left/right settings of a layer, so I tried
\definelayer[title][
x=\dimexpr\backspace+\wdall-\wdtit,
y=\topspace,
width=\wdtit,
height=\httit,
state=repeat,
doublesided=true,
]
\setuplayer[lefttitle][
x=\backspace,
]
\definelayer[desc][
x=\backspace,
y=\topspace,
width=\wddesc,
height=\htdesc,
state=repeat,
doublesided=true,
]
\setuplayer[leftdesc][
x=\dimexpr\backspace+\wdall-\wddesc,
]
\definelayer[figs][
x=\dimexpr\backspace+\wdall-\wdfig,
y=\dimexpr\topspace+\makeupheight-\htfig,
width=\wdfig,
height=\htfig,
]
\setuplayer[leftfigs][
x=\backspace,
]
\setupbackgrounds[page][background={color,title,desc,figs},backgroundcolor=elux-ultralight]
However, the 'main' setup is always used, the left one is
never used. Am I doing something wrong?
--
Giuseppe "Oblomov" Bilotta
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2007-07-16 16:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-16 15:29 Giuseppe Bilotta
2007-07-16 15:45 ` Aditya Mahajan
2007-07-16 16:41 ` Giuseppe Bilotta [this message]
2007-07-17 1:31 ` Giuseppe Bilotta
2007-07-17 6:57 ` Wolfgang Schuster
2007-07-17 9:52 ` Giuseppe Bilotta
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=1569133368.20070716184120@iol.it \
--to=gip.bilotta@iol.it \
--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).