ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Matthias Weber <matweber@indiana.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Placing text in the margin of a header or the top	right corner of a page
Date: Tue, 22 Nov 2011 23:54:33 -0500	[thread overview]
Message-ID: <0426B6F1-22AB-49D2-9B1A-A4F313210AEE@indiana.edu> (raw)
In-Reply-To: <004b01cca998$924d62d0$b6e82870$@gmx.de>

Fascinating. Thanks a lot. That is more than I hoped for, and was easy to adapt to what I wanted. 

One small issue: There is a tiny gap between the black layer box and the right margin (in white) that doesn't even disappear when I increase hoffset.
Any chance to make that disappear, too?

Thanks again -

Matthias


On Nov 22, 2011, at 11:30 PM, Christian wrote:

>> Dear All,
>> 
>> I am trying to place a framed text in the top right corner of each page of a
>> screen document and it looks like (cont-eni)  some invocation of
>> \setupheadertexts might do the job. Unfortunately, I have only been able to
>> place my text in the margin of the body of the page, using \margintext.
>> Ideally, I would like to have the framed text box flush with the top and right
>> edge of a page, but any approximate solution or a pointer to some document
>> to read (that could educate me) will be much appreciated.
> 
> Smells like Layers to me. Try this, for starters:
> 
> \definelayer[mybg][x=180mm, y=0mm,width=3cm, height=3cm,repeat=yes]
> \setlayer[mybg][hoffset=0cm, voffset=0cm]{\framed[frame=on, width=3cm, height=2cm,background=color,backgroundcolor=black,foregroundcolor=white]{LAYER}}
> \setupbackgrounds[page][background=mybg]
> \starttext
> Test
> \page
> Test1
> \page
> Test2
> \stoptext
> 
> More info here:
> http://wiki.contextgarden.net/layers
> 
> Hope that helps :)
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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:[~2011-11-23  4:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-23  4:01 Matthias Weber
2011-11-23  4:30 ` Christian
2011-11-23  4:54   ` Matthias Weber [this message]
2011-11-23  5:11     ` Christian
2011-11-23  9:29       ` Andreas Harder

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=0426B6F1-22AB-49D2-9B1A-A4F313210AEE@indiana.edu \
    --to=matweber@indiana.edu \
    --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).