ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Layout: partial width blocks
@ 2011-11-24  3:33 Peter Park Nelson
  0 siblings, 0 replies; only message in thread
From: Peter Park Nelson @ 2011-11-24  3:33 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1511 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1761 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-11-24  3:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-24  3:33 Layout: partial width blocks Peter Park Nelson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).