ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: simple question: newline in chapter header?
Date: Fri, 05 Nov 2004 14:53:26 +0100	[thread overview]
Message-ID: <418B85D6.1050005@wxs.nl> (raw)
In-Reply-To: <20041105123802.GA4915@atoom.net>

Miek Gieben wrote:
> Hello,
> 
> I'm trying to switch from latex to context and I'm trying to 
> port the book class from latex to a context document.
> 
> Right now I'm working on the chapter def and I have:
> 
> \definetext[chapter][footer][pagenumber]
> \setuphead[chapter][
> header=empty, footer=chapter,
> textstyle=bold,
> numberstyle=bold,
> numbercommand=Chapter ,
> textcommand={\bfc},
> after={\blank[4*big]}]
> 
> But this doesn't give a newline after the chapter number. If I change
> 
> textcommand={\bfc},
> to
> textcommand={\\ \bfc},
> 
> I do get a newline, but then the chapter title is not aligned to the
> left side of the document? Even if I try to left aline this it does 
> seem work. :(
> 
> What I'm I missing here?

use

\def\MyHeadCommand#1#2%
   {\vbox{#1\par#2}}

with

command=\MyHeadCommand

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

  reply	other threads:[~2004-11-05 13:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-05 12:38 Miek Gieben
2004-11-05 13:53 ` Hans Hagen [this message]
2004-11-05 13:55   ` Miek Gieben
2004-11-08 17:29 ` m-bib problem Bernd Militzer
2004-11-08 18:23   ` Taco Hoekwater
2004-11-13 15:59     ` Bernd Militzer
2004-11-15  9:03       ` Taco Hoekwater
2004-11-16  7:22         ` Bernd Militzer

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=418B85D6.1050005@wxs.nl \
    --to=pragma@wxs.nl \
    --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).