ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "John R. Culleton" <john@wexfordpress.com>
Subject: Re: Setting up chapter.
Date: Wed, 13 Jul 2005 17:37:35 +0000	[thread overview]
Message-ID: <200507131737.35979.john@wexfordpress.com> (raw)
In-Reply-To: <200507121631.02038.john@wexfordpress.com>

On Tuesday 12 July 2005 04:31 pm, John R. Culleton wrote:
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> But when time permits I will play with the other approaches
> mentioned.

Necessity overtook schedule. So I used the Jensen approach
(thanks) modified as recommended by Kavian (thanks) with a few
minor changes to suit my application. Herewith the final
product:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\numcommand#1{\hfil\webo m\tfd#1\webo m \hfil}
%\unexpanded\def\chaptercase{\uppercase}

\def\mychapter#1#2%
{\setupframed[width=\textwidth,align=middle,frame=off]\vbox{%
 \framed{\setupbodyfont[18pt]\setupinterlinespace[height=.1,depth=0]
#1}%
\framed{\setupbodyfont[15pt]\setupinterlinespace[line=2ex]#2\par}%
\deco\par}}

\setuphead[chapter][numbercommand=\numcommand,page=right,
header=high,
  command=\mychapter,%textcommand=\chaptercase,
   textstyle=\sl,numberstyle=\bf]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I kept the unused \chaptercase definition around just in case I
change my mind later on. 

This has been educational. Who says you can't teach an old dog
new tricks? 

-- 
John Culleton
Books with answers to marketing and publishing questions:
http://wexfordpress.com/tex/shortlist.pdf

Book coaches, consultants and packagers:
http://wexfordpress.com/tex/packagers.pdf

  reply	other threads:[~2005-07-13 17:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-11 17:12 John R. Culleton
2005-07-11 21:34 ` Stuart Jansen
2005-07-12  8:32   ` John R. Culleton
2005-07-12 13:05     ` Otared Kavian
2005-07-12 13:15     ` luigi.scarso
2005-07-12 16:31       ` John R. Culleton
2005-07-13 17:37         ` John R. Culleton [this message]
2005-07-14  5:35           ` luigi.scarso

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=200507131737.35979.john@wexfordpress.com \
    --to=john@wexfordpress.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).