From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74282 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: Thu, 2 Feb 2012 18:35:08 -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 1328229333 6896 80.91.229.3 (3 Feb 2012 00:35:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Feb 2012 00:35:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 03 01:35: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 1Rt77k-0000dK-Ml for gctc-ntg-context-518@m.gmane.org; Fri, 03 Feb 2012 01:35:32 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D580BCB2A5; Fri, 3 Feb 2012 01:35:31 +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 ie3atSg1SrF4; Fri, 3 Feb 2012 01:35:29 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E0F90CB285; Fri, 3 Feb 2012 01:35:28 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1A383CB285 for ; Fri, 3 Feb 2012 01:35:27 +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 fJ3eS9Ks7t+o for ; Fri, 3 Feb 2012 01:35:15 +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 10CD7CB274 for ; Fri, 3 Feb 2012 01:35:14 +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 q130Z918005635 for ; Fri, 3 Feb 2012 01:35:09 +0100 Original-Received: by obbta7 with SMTP id ta7so4847984obb.14 for ; Thu, 02 Feb 2012 16:35:09 -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=XhKrvd90nHG7OxsKj0asngXGAdlWyDTSbqnNl9yWBTU=; b=U+eEPv6l/VxU66HJhMEwinNBpOnDC4o4zdWN8UL1gQ6GhJBQ0XvbU/3kdI3l1S+oWo r3JZQXBBrCF3+90QNnxl8GBsUk6yNMKYrg0EP131+Jx1QHVOnaKAgEwHn1IBvUExkro1 zt+pfEewIoXGUNLv893Z536DWM2pY6Fqho4yY= Original-Received: by 10.182.11.6 with SMTP id m6mr4521889obb.74.1328229309021; Thu, 02 Feb 2012 16:35:09 -0800 (PST) Original-Received: by 10.182.251.38 with HTTP; Thu, 2 Feb 2012 16:35:08 -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: 03Gtcz9ni - 9848f9df343d - 20120203 (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:74282 Archived-At: 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,align= =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 [width=3Dmiddle, backspace=3D15mm, topspace=3D10mm, height=3D254mm, header=3D5mm, headerdistance=3D3mm, footer=3D5mm, footerdistance=3D3mm, grid=3Dyes] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%% LOGO ON FIRST PAGE: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \useexternalfigure[logo][dummy][type=3Dpdf,width=3D35mm,height=3D50mm] \definelayer [logo-layer] [width=3D\paperwidth,height=3D\paperheight] \setlayer [logo-layer] [preset=3Drighttop,hoffset=3D15mm,voffset=3D10mm] {\externalfigure[logo]} \setupbackgrounds[page][background=3D{logo-layer}] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% HEADS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \setuphead[title] [header=3Dhigh, footer=3Dhigh, grid=3D{page}, width=3D140mm, textstyle=3D\tfc\ss\bf] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% ARTICLE ABSTRACT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \definedescription[Abstract][% location=3Dserried, width=3Dbroad, text=3D{Abstract}, indentnext=3Dno]%, %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% ARTICLE TEXT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \starttext \title{The title of this article wraps at 140 mm so it doesn't hit the logo} % 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 ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________