ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "\"H. Özoguz\"" <h.oezoguz@mmnetz.de>
To: ntg-context@ntg.nl
Subject: Layer for all pages and for specific pages
Date: Mon, 06 May 2013 08:26:06 +0200	[thread overview]
Message-ID: <51874CFE.3000605@mmnetz.de> (raw)

Hi,

I use a vertical line (realized as a layer) for a bilingual project. My 
question is:
1. How can I set this line on all pages?
2. How can I control, on which pages it is set, and on which not? I 
tried it with state=start/stop/repeat, but that did not work.

Here my try:

\definelayer[mybg]
     [x=0mm, y=0mm,
      width=\paperwidth, height=\paperheight]
\setlayer[mybg]
     [hoffset=10cm, voffset=4cm]
     {\blackrule[width=1pt, height=\vsize, depth=0.5ex]}
\setupbackgrounds[page][background=mybg]
\setuptolerance[tolerant,stretch]

\starttext
\input knuth
\page
\input knuth
\stoptext

Thanks for help.
Huseyin
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


             reply	other threads:[~2013-05-06  6:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-06  6:26 "H. Özoguz" [this message]
2013-05-06 10:19 ` Wolfgang Schuster
2013-05-06 13:55 "H. Özoguz"
2013-05-06 15:06 ` Wolfgang Schuster
2013-05-07  5:49 "H. Özoguz"
2013-05-07 10:38 ` Wolfgang Schuster

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=51874CFE.3000605@mmnetz.de \
    --to=h.oezoguz@mmnetz.de \
    --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).