ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Giuseppe Bilotta <gip.bilotta@iol.it>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Layers in ConTeXt
Date: Mon, 16 Jul 2007 00:42:14 +0200	[thread overview]
Message-ID: <1697352827.20070716004214@iol.it> (raw)
In-Reply-To: <alpine.WNT.0.999.0707141048110.1908@nqvgln>

Saturday, July 14, 2007 Aditya Mahajan wrote:

> On Fri, 13 Jul 2007, Giuseppe Bilotta wrote:

>> Hello all,

> Welcome back Giuseppe. I had benifitted a lot from your efforts of
> improving the math support in ConTeXt. Had it not been for the amsl
> module, I might have never switched to ConTeXt and would have missed a
> lot of fun.

Thanks :) I really hope I'll be able to get back at ConTeXt
development and/or other contributions to the TeX world.

> This is how I would do it. Not sure if this is the best way. Use
> tokens to keep track of the current information that should go to the
> layer, and repeat the layer on each page.

> \newtoks\testtoks

> \definelayer[test]
>              [ width=\paperwidth,
>               height=\paperheight,
>              ]

> \startsetups make:test
> \setlayer[test][x=5cm,y=3cm]{\framed[align=normal,width=5cm]{\the\testtoks}}
> \stopsetups

> \setupbackgrounds[page][setups=make:test,background=test]

An interesting approach. I really need to learn to use
setups.

In the end, as the layout specifications got defined more
accurately, it turns out the number and position of the
layer elements is much less flexible than I originally
thought, so I don't need this approach anymore, but I'll
keep it in mind for future needs.

One thing that I've noticed with repeating layers is that
they appear also on 'empty' pages (as in those left by
forcing an even or odd page). Is it possible to suppress
then in those cases? Do the blank pages left by these
commands have a particular setup that can be tweaked?

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


      parent reply	other threads:[~2007-07-15 22:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-13  9:31 Giuseppe Bilotta
2007-07-13  9:43 ` luigi scarso
2007-07-13 12:08 ` Peter Rolf
2007-07-13 15:49   ` Giuseppe Bilotta
2007-07-13 16:22     ` Peter Rolf
2007-07-13 21:28       ` Giuseppe Bilotta
2007-07-14 14:51 ` Aditya Mahajan
2007-07-14 16:14   ` endnotes Horacio Suarez
2007-07-15 22:42   ` Giuseppe Bilotta [this message]

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=1697352827.20070716004214@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).