From: Peter Park Nelson <peter.park.nelson@gmail.com>
To: ntg-context@ntg.nl
Subject: Layout: partial width blocks
Date: Wed, 23 Nov 2011 21:33:37 -0600 [thread overview]
Message-ID: <CAGfkPG=_-9B0Brg1gw=89svAUkiFZAtSSGcY0xxkNw6WnHuYzA@mail.gmail.com> (raw)
[-- 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
___________________________________________________________________________________
reply other threads:[~2011-11-24 3:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGfkPG=_-9B0Brg1gw=89svAUkiFZAtSSGcY0xxkNw6WnHuYzA@mail.gmail.com' \
--to=peter.park.nelson@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).