ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Forcing line-breaks in a Chapter title
@ 2002-07-02  3:26 Christopher Cardinale
  2002-07-02  7:03 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Cardinale @ 2002-07-02  3:26 UTC (permalink / raw)


I want the words "Chapter 1" to appear on one line and the title of the
chapter to appear on the line below it. I can't seem to get this to
work. Here is my code:

\def\ChapterStyle#1#2{%
	{\tx \bf Chapter {#1}}\\%
	{\tfd {#2}}%
}

\setuphead[chapter][%
	before={\blank[0.25\textheight,force]},
	after={\blank[medium]},
	numberstyle=\bf,
	textstyle=\bf,
	command=\ChapterStyle%
]

\chapter{My Chapter}

ConTeXt seems to be ignoring the \\ and just puts it all on one line.

Can anyone advise?

__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-07-02 22:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-02  3:26 Forcing line-breaks in a Chapter title Christopher Cardinale
2002-07-02  7:03 ` Hans Hagen
2002-07-02 12:35   ` Christopher Cardinale
2002-07-02 22:02     ` Christopher Cardinale

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).