From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72608 Path: news.gmane.org!not-for-mail From: "Christian" Newsgroups: gmane.comp.tex.context Subject: Re: Placing text in the margin of a header or the top right corner of a page Date: Wed, 23 Nov 2011 05:30:03 +0100 Message-ID: <004b01cca998$924d62d0$b6e82870$@gmx.de> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1322022632 27894 80.91.229.12 (23 Nov 2011 04:30:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 23 Nov 2011 04:30:32 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 23 05:30:28 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 1RT4Tb-0007Bq-Fn for gctc-ntg-context-518@m.gmane.org; Wed, 23 Nov 2011 05:30:27 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CF18CCB146; Wed, 23 Nov 2011 05:30:26 +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 ae+H0-I8vysU; Wed, 23 Nov 2011 05:30:23 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9C243CB137; Wed, 23 Nov 2011 05:30:23 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 482AFCB137 for ; Wed, 23 Nov 2011 05:30:22 +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 wATpgdW6XBVO for ; Wed, 23 Nov 2011 05:30:10 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 89F31CB11A for ; Wed, 23 Nov 2011 05:30:10 +0100 (CET) Original-Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id pAN4U9eh008052 for ; Wed, 23 Nov 2011 05:30:09 +0100 Original-Received: (qmail invoked by alias); 23 Nov 2011 04:30:08 -0000 Original-Received: from f053215071.adsl.alicedsl.de (EHLO christiandelux) [78.53.215.71] by mail.gmx.net (mp065) with SMTP; 23 Nov 2011 05:30:08 +0100 X-Authenticated: #61879178 X-Provags-ID: V01U2FsdGVkX19kRCNi7+hkiMVmhwbP65NrgYOJeOpUZHQwLby6aZ 3eVXQTQRcaDaTL In-Reply-To: X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHvCLfbYLW/iwLAoXQiODRfbr2qjZV1HwuQ Content-Language: de X-Y-GMX-Trusted: 0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.165.64.23; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0cG0su98U - 169bfcae1c0f - 20111123 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:72608 Archived-At: > 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 ___________________________________________________________________________________