From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72659 Path: news.gmane.org!not-for-mail From: Peter Park Nelson Newsgroups: gmane.comp.tex.context Subject: Layout: partial width blocks Date: Wed, 23 Nov 2011 21:33:37 -0600 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1468467652==" X-Trace: dough.gmane.org 1322105643 17729 80.91.229.12 (24 Nov 2011 03:34:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Nov 2011 03:34:03 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 24 04:33:58 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 1RTQ4U-0001bX-2o for gctc-ntg-context-518@m.gmane.org; Thu, 24 Nov 2011 04:33:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 23ACDCB18E; Thu, 24 Nov 2011 04:33:57 +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 xJyR8Kba4dtP; Thu, 24 Nov 2011 04:33:56 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AF4CBCB178; Thu, 24 Nov 2011 04:33:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B7F70CB178 for ; Thu, 24 Nov 2011 04:33:51 +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 Lcqevmm3aZlG for ; Thu, 24 Nov 2011 04:33:40 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 0F29BCB177 for ; Thu, 24 Nov 2011 04:33:40 +0100 (CET) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pAO3Xb83010468 for ; Thu, 24 Nov 2011 04:33:37 +0100 Original-Received: by faas10 with SMTP id s10so3228767faa.14 for ; Wed, 23 Nov 2011 19:33:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=/d/P8fBstArfdiX4/7Us78e2bMghW+RwFLuivuOjFxQ=; b=xcdvzYQ/CQSXhXV5Tzoo3zH0Sek+F2guSWmsI9E/xAGpsdVyTQh89CbnjD00IdX5yq gulKO52OfLAbO1rV391ijfp7swCIL0VgPmz+ONOn1OZl5/QaQZ+D124P06PbYnxycp7X x2bQUv/6mGdONp5LvfZ+VdjFnQoVHI2c5a8YA= Original-Received: by 10.205.139.65 with SMTP id iv1mr14589802bkc.34.1322105617442; Wed, 23 Nov 2011 19:33:37 -0800 (PST) Original-Received: by 10.223.83.2 with HTTP; Wed, 23 Nov 2011 19:33:37 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; 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: 05G0PxBCo - 35fbeb7d129b - 20111124 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:72659 Archived-At: --===============1468467652== Content-Type: multipart/alternative; boundary=00151740163caee6ad04b272b316 --00151740163caee6ad04b272b316 Content-Type: text/plain; charset=ISO-8859-1 Hello again, I'm working on a 2-column layout for a journal, and I want to keep the title and abstract of each article from running across the full width of the page (a small graphic will appear in the upper right corner of the first article page). For the article title, this works: \def\ArticleTitle#1#2% {\hbox to \hsize\bgroup \setupframed[frame=off]% \tbox{\framed[offset=0pt,width=.8\makeupwidth,align=right]{#2}}% \hfill \egroup} \setuphead[title][% header=high, before={\hbox{}\blank[5mm]\vfill{}}, after={\hbox{}\blank[5mm]\vfill{}}, command=\ArticleTitle, style=\tfb\se, textstyle=\ss] And for the abstract, I have come up with this: \definebodyfontenvironment[10pt][text=10pt,interlinespace=12pt] \defineframedtext[topwidth][% style={\switchtobodyfont[10pt]}, width=.8\makeupwidth, offset=0pt, frame=off] \definedescription[abstract][% location=serried, width=broad, headstyle={\ss\se}, text={Abstract}, before=\starttopwidth, after=\stoptopwidth] However I can't control the lineheight within the abstract; I'm stuck with the default lineheight but I would ilke it to be larger. 1. Can someone tell me why I can change the font size inside the abstract block but not control the line height? 2. Is there a more efficient way of defining an area that is narrower than the full page width to hold these items, instead of using defineframedtext/definedescription for each one? Thanks, PPN -- Peter Park Nelson peter.park.nelson@gmail.com --00151740163caee6ad04b272b316 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello again,

I'm working on a 2-column layout for a journal, an= d I want to keep the title and abstract of each article from running across= the full width of the page (a small graphic will appear in the upper right= corner of the first article page).

For the article title, this works:

\def\ArticleTitle#1#2%
= =A0 {\hbox to \hsize\bgroup
=A0=A0=A0 \setupframed[frame=3Doff]%
=A0= =A0=A0 \tbox{\framed[offset=3D0pt,width=3D.8\makeupwidth,align=3Dright]{#2}= }%
=A0=A0=A0 \hfill
=A0=A0=A0 \egroup}

\setuphead[title][%
=A0 header=3Dhigh,
=A0 before=3D{\hbox{}\blan= k[5mm]\vfill{}},
=A0 after=3D{\hbox{}\blank[5mm]\vfill{}},
=A0 comm= and=3D\ArticleTitle,
=A0 style=3D\tfb\se,
=A0 textstyle=3D\ss]
And for the abstract, I have come up with this:

\definebodyfontenvironment[10pt][text=3D10pt,interlinespace=3D12pt]
=
\defineframedtext[topwidth][%
=A0 style=3D{\switchtobodyfont[10pt]},=
=A0 width=3D.8\makeupwidth,
=A0 offset=3D0pt,
=A0 frame=3Doff]
\definedescription[abstract][%
=A0 location=3Dserried,
=A0 width=3Dbroad,
=A0 headstyle=3D{\ss\se},<= br>=A0 text=3D{Abstract},
=A0 before=3D\starttopwidth,
=A0 after=3D\s= toptopwidth]

However I can't control the lineheight within the a= bstract; I'm stuck with the default lineheight but I would ilke it to b= e larger.

1. Can someone tell me why I can change the font size inside the abstra= ct block but not control the line height?

2. Is there a more effici= ent way of defining an area that is narrower than the full page width to ho= ld these items, instead of using defineframedtext/definedescription for eac= h one?

Thanks,
PPN

--
Peter Park Nelson
peter.park.nelson@gmail.com --00151740163caee6ad04b272b316-- --===============1468467652== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1468467652==--