From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74297 Path: news.gmane.org!not-for-mail From: Peter Park Nelson Newsgroups: gmane.comp.tex.context Subject: Re: Set a block of content at minimum distance from top of page? Date: Fri, 3 Feb 2012 20:16:04 -0600 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1328321793 20560 80.91.229.3 (4 Feb 2012 02:16:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 4 Feb 2012 02:16:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Feb 04 03:16:32 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RtVB0-0007og-8Q for gctc-ntg-context-518@m.gmane.org; Sat, 04 Feb 2012 03:16:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 52456CB1FB; Sat, 4 Feb 2012 03:16:29 +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 iWCKlCb08vZ8; Sat, 4 Feb 2012 03:16:26 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 26A58CB1F4; Sat, 4 Feb 2012 03:16:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C9215CB1F4 for ; Sat, 4 Feb 2012 03:16:24 +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 iwd-geUKGMNb for ; Sat, 4 Feb 2012 03:16:13 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 184E4CB1EA for ; Sat, 4 Feb 2012 03:16:12 +0100 (CET) Original-Received: from mail-tul01m020-f169.google.com (mail-tul01m020-f169.google.com [209.85.214.169]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q142G5qT013041 for ; Sat, 4 Feb 2012 03:16:11 +0100 Original-Received: by obbta7 with SMTP id ta7so6822674obb.14 for ; Fri, 03 Feb 2012 18:16:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=yROgPWCWc9GrVIQi4CZnGZM8f1vFRV9dIY51a6laK6o=; b=Em9Gp+f2JSz1Vt0cTLkrRYNHGYGM1xMZ/7c2TDx6vBBMEejKXYM+rRH7bvt1aAmfTl XEFtrVmwMVwR4R+yGX3cizk7iPoZJdusDLUtlPhEU/dBfY/nJF9gouMq2Nyy1p3GQ4+i RrbdPpGOBSs4VAqI5j6SvYU76nsDFKwVEE7QA= Original-Received: by 10.182.86.202 with SMTP id r10mr8740794obz.64.1328321764977; Fri, 03 Feb 2012 18:16:04 -0800 (PST) Original-Received: by 10.182.251.38 with HTTP; Fri, 3 Feb 2012 18:16:04 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03GtCg5a6 - bc5896ac2d55 - 20120204 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:74297 Archived-At: Aright, whatever, but does anybody use the positioning mechanism with \anchor described in the Details manual? On Thu, Feb 2, 2012 at 6:35 PM, Peter Park Nelson wrote: > On Thu, Feb 2, 2012 at 3:46 PM, Wolfgang Schuster > wrote: >> >> Am 02.02.2012 um 21:51 schrieb Peter Park Nelson: >> >>> Hi ConTeXt list, >>> >>> I have a document with a graphic (logo) in the upper right corner >>> (positioned on a layer and placed as a background). To the left of >>> this graphic are several text elements (Title, Author List, etc.) that >>> don't go all the way across the page. (Currently I have wrapped them >>> in \startnarrower...\stopnarrower -- is there a better way?) But this >>> is followed by an Abstract paragraph that uses the full width of the >>> page. >>> >>> I would like to ensure that the full-width text never starts high >>> enough on the page that it encroaches on the upper-right-corner >>> graphic. So, I'm looking for a way to protect the graphic, or to force >>> the Abstract to start a minimum distance from the top of the page. >>> >>> The Abstract can be forced down the page if necessary by manually >>> inserting a \godown[] command before it, but I would prefer a >>> programmatic solution. >>> >>> Floating the graphic and wrapping text around it does not seem like a >>> good option, because I want to ensure that its position is absolute >>> and it never moves. Also, the Abstract needs to be full-width >>> throughout, so I need to force it to start after the graphic rather >>> than partially wrapping it. >>> >>> Any suggestions appreciated=85 >> >> You can use something like the following code but without a example from= you it=92s difficult to give a answer. >> >> \showframe[text][text] >> >> \starttext >> >> \maxaligned\bgroup >> >> =A0 =A0 =A0 =A0\startframed[frame=3Doff,location=3Dtop,width=3D10cm,alig= n=3Dflushleft]% >> =A0 =A0 =A0 =A0line 1\\ >> =A0 =A0 =A0 =A0line 2\\ >> =A0 =A0 =A0 =A0line 3 >> =A0 =A0 =A0 =A0\stopframed >> >> =A0 =A0 =A0 =A0\hfill >> >> =A0 =A0 =A0 =A0\tbox{\externalfigure[dummy][width=3D3cm,height=3D4cm]}% >> >> \egroup >> >> \input knuth >> >> \stoptext >> >> Wolfgang >> >> ________________________________________________________________________= ___________ > > Here's a minimal example of what I'm talking about. > > I would like the Abstract to not start until it will be clear of the > logo graphic on the right side. > > In the real document, I cannot be sure how much vertical space will > taken up by text items (Authors, subtitle, etc.) between the Title and > the Abstract, hence my question. > > Maybe I am thinking about this in the wrong way and there is a > different approach? I have more of a DTP background. > > %%---start example -----------------------%% > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > %% PAGE LAYOUT > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > \setuppapersize[letter][letter] > > \setuplayout > =A0[width=3Dmiddle, > =A0backspace=3D15mm, > =A0topspace=3D10mm, > =A0height=3D254mm, > =A0header=3D5mm, > =A0headerdistance=3D3mm, > =A0footer=3D5mm, > =A0footerdistance=3D3mm, > =A0grid=3Dyes] > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > %%%%% LOGO ON FIRST PAGE: > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > \useexternalfigure[logo][dummy][type=3Dpdf,width=3D35mm,height=3D50mm] > > \definelayer > =A0[logo-layer] > =A0[width=3D\paperwidth,height=3D\paperheight] > > \setlayer > =A0[logo-layer] > =A0[preset=3Drighttop,hoffset=3D15mm,voffset=3D10mm] > =A0{\externalfigure[logo]} > > \setupbackgrounds[page][background=3D{logo-layer}] > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > %% HEADS > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > \setuphead[title] > =A0[header=3Dhigh, > =A0footer=3Dhigh, > =A0grid=3D{page}, > =A0width=3D140mm, > =A0textstyle=3D\tfc\ss\bf] > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > %% ARTICLE ABSTRACT > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > \definedescription[Abstract][% > =A0location=3Dserried, > =A0width=3Dbroad, > =A0text=3D{Abstract}, > =A0indentnext=3Dno]%, > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > %% ARTICLE TEXT > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > \starttext > > \title{The title of this article wraps at 140 mm so it doesn't hit the lo= go} > > % A VARIABLE NUMBER OF TEXT ITEMS WILL BE PLACED HERE... > > % \godown[3cm] % UNCOMMENT TO FORCE THE ABSTRACT BELOW THE LOGO > > \startAbstract > But the abstract can continue all the way across the page...\input tufte\= par > \stopAbstract > > \stoptext > > %%------- end example --------------% > > -- > Peter Park Nelson > peter.park.nelson@gmail.com -- = Peter Park Nelson peter.park.nelson@gmail.com ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________