ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Layout definitions ..
Date: Wed, 22 Sep 2004 23:34:01 +0200	[thread overview]
Message-ID: <4151EFC9.9020004@wxs.nl> (raw)
In-Reply-To: <BAY12-F41j7XGeFaata0005fe97@hotmail.com>

Dirar BOUGATEF wrote:

> 2. I would like to define a new layout that does not contain left and 
> right margins.
> This layout is going to divide my page to 4 parts as a matrix of 2x2.
> How can i do that ?
> Is there anyway to identify each part of them in the same way as we 
> identify the left and right margins within the default layout ?
> Is this in relation with margin and opposite blocks ?

depends on what you want to do; an option is to make A6 pages and to 
impose the pages; another option is to use layers:

\setuplayout
  [page]

\definelayer[lt] \setuplayer[lt][width=.5\textwidth,height=.5\textheight]
\definelayer[lb] \setuplayer[lb][width=.5\textwidth,height=.5\textheight]
\definelayer[rt] \setuplayer[rt][width=.5\textwidth,height=.5\textheight]
\definelayer[rb] \setuplayer[rb][width=.5\textwidth,height=.5\textheight]

\definelayer[pp] \setuplayer[pp][width=\textwidth,height=\textheight]

\startsetups buildpage

    \setlayer[pp][preset=lefttop]    {\tightlayer[lt]}
    \setlayer[pp][preset=righttop]   {\tightlayer[rt]}
    \setlayer[pp][preset=leftbottom] {\tightlayer[lb]}
    \setlayer[pp][preset=rightbottom]{\tightlayer[rb]}

    \startstandardmakeup \tightlayer[pp] \stopstandardmakeup

\stopsetups

\starttext

    \setlayerframed[lt][preset=middle,rotation=45]{welcome}
    \setlayerframed[rt][preset=middle,rotation=315]{to}
    \setlayerframed[rb][preset=middle,rotation=225]{context's}
    \setlayerframed[lb][preset=middle,rotation=135]{layers}

    \setups[buildpage]

\stoptext


(something for the wiki archive)

Hans

  reply	other threads:[~2004-09-22 21:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-22 18:15 Dirar BOUGATEF
2004-09-22 21:34 ` Hans Hagen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-09-21 12:21 Dirar Bougatef

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=4151EFC9.9020004@wxs.nl \
    --to=pragma@wxs.nl \
    --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).