ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Gilbert van den Dobbelsteen" <gilbert@login-bv.com>
Subject: Re: Page Layout
Date: Mon, 7 Jun 1999 11:50:55 +0200	[thread overview]
Message-ID: <00d101beb0cb$3cf82e60$0c01a8c1@worf.login-bv.com> (raw)

>Is there such a thing available in Context?

Not really, and Context doesn't show all boxes (like edges), so what I
usually do is this:

\def\BOX#1#2{\framed[width=#1,height=#2]{}}

And then:

\setuptexttexts
  [edge]
  [\BOX\leftedgewidth,\textheight]
  [\BOX\rightedgewidth,\textheight]

This shows some boxes on places where you want it. If this clobbers your
usual stuff, you can use overlays and backgrounds to do so. It is not
exactly the same as \showlayout etc, but it gets the job done:

\defineoverlay[BACKFRAME][{\BOX\overlaywidth\overlayheight}]

\setupbackgrounds
  [text]
  [leftedge]
  [background=BACKFRAME]

This also shows the offset if you had one.

The \showlayout macro creates a solid filled box, which clobbers all
backgrounds, I don't know if this is a bug or a feature, but sometimes I do
not want to have the backgrounds clobbered, especially if I use offsetted
backgrounds.

So ok, there is no in-the-box solution, but as usual, you can roll your own.

Happy experimenting, Gilbert.


             reply	other threads:[~1999-06-07  9:50 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-07  9:50 Gilbert van den Dobbelsteen [this message]
1999-06-07 11:52 ` Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2010-04-02 10:13 page layout Sebastien Mengin
2010-04-02 11:56 ` Wolfgang Schuster
2010-04-06 14:37   ` Sebastien Mengin
2010-04-06 18:52     ` Willi Egger
2010-04-06 18:58       ` Willi Egger
2010-04-06 19:27         ` Sebastien Mengin
2010-04-06 19:44           ` Willi Egger
2010-04-06 19:23       ` Sebastien Mengin
2010-04-06 19:43         ` Willi Egger
2010-04-06 20:05           ` Sebastien Mengin
2010-04-06 20:54             ` Willi Egger
2010-04-06 20:21         ` Hans Hagen
2010-04-06 21:45         ` Wolfgang Schuster
2010-04-07 13:08           ` Sebastien Mengin
2010-04-07 13:16             ` Vianney le Clément
2010-04-07 13:23               ` Taco Hoekwater
2010-04-07 13:31                 ` Sebastien Mengin
2010-04-07 13:39                   ` Vianney le Clément
2010-04-07 13:46                     ` Sebastien Mengin
2010-04-07 13:27               ` Sebastien Mengin
2010-04-07 14:19                 ` Hans Hagen
2010-04-08 11:55                 ` R. Bastian
1999-06-07 13:24 Page Layout Gilbert van den Dobbelsteen
1999-06-08  7:24 ` Hans Hagen
1999-06-03 18:43 David Arnold
1999-06-03 23:13 ` Hans Hagen

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='00d101beb0cb$3cf82e60$0c01a8c1@worf.login-bv.com' \
    --to=gilbert@login-bv.com \
    /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).