From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72609 Path: news.gmane.org!not-for-mail From: Matthias Weber Newsgroups: gmane.comp.tex.context 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 Message-ID: <0426B6F1-22AB-49D2-9B1A-A4F313210AEE@indiana.edu> References: <004b01cca998$924d62d0$b6e82870$@gmx.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1322024121 3790 80.91.229.12 (23 Nov 2011 04:55:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 23 Nov 2011 04:55:21 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 23 05:55:17 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RT4rd-0004ch-5I for gctc-ntg-context-518@m.gmane.org; Wed, 23 Nov 2011 05:55:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0393FCB103; Wed, 23 Nov 2011 05:55:16 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZHOXJPhNfOti; Wed, 23 Nov 2011 05:55:13 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 832F5CB139; Wed, 23 Nov 2011 05:55:13 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BBFF5CB139 for ; Wed, 23 Nov 2011 05:55:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id bu0oyUODh2ju for ; Wed, 23 Nov 2011 05:55:00 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id CB158CB103 for ; Wed, 23 Nov 2011 05:55:00 +0100 (CET) Original-Received: from irpt-internal-relay.indiana.edu (belushi.uits.indiana.edu [129.79.1.188]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pAN4sx7a018452 for ; Wed, 23 Nov 2011 05:54:59 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAGF8zE6BTwE+/2dsb2JhbABEqmGBBYFyAQEBAwEBAQE3TwtGJzAGExuHagiraYkFiX9jBIgckWWMZw Original-Received: from internal-relay.indiana.edu ([129.79.1.62]) by irpt-internal-relay.indiana.edu with ESMTP; 22 Nov 2011 23:54:38 -0500 Original-Received: from mail-relay.iu.edu (burns.uits.indiana.edu [129.79.1.202]) by internal-relay.indiana.edu (8.14.5/8.14.4/IU Messaging Team) with ESMTP id pAN4sbJx006623 for ; Tue, 22 Nov 2011 23:54:37 -0500 Original-Received: from [172.27.35.94] (c-98-223-202-18.hsd1.in.comcast.net [98.223.202.18]) (authenticated bits=0) by mail-relay.iu.edu (8.14.5/8.14.4/IU Messaging Team Submission) with ESMTP id pAN4sYBd028670 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Tue, 22 Nov 2011 23:54:36 -0500 In-Reply-To: <004b01cca998$924d62d0$b6e82870$@gmx.de> X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=129.79.1.188; country=US; region=IN; city=Bloomington; postalcode=47403; latitude=39.0790; longitude=-86.6175; metrocode=527; areacode=812; http://maps.google.com/maps?q=39.0790,-86.6175&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rG0sSXG6 - 19809d50fd56 - 20111123 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:72609 Archived-At: 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 ___________________________________________________________________________________