ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* redefining chapter (etc) appearence
@ 2000-10-04 20:41 Giuseppe Bilotta
  2000-10-05  7:57 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Giuseppe Bilotta @ 2000-10-04 20:41 UTC (permalink / raw)


Hello,

I'm just beginning with ConTeXt, and thus I tried to do a thing that in
LaTeX was very easy to do (using an appropriate package blah blah blah):
redefining the appearence of the sectioning commands. More precisely, I want
them to appear like

                       Chapter <number>

                       <chapter title>

both being centered horizontally, with appropriate spacing, "Chapter
<number>" in small caps, \tfa (I use "real" small caps, and they seem to
work properly :->), and <chapter title> written in bolf, \tfb. So I tried

\def\ChapterHead#1#2{{\tfa \cap{Chapter #1}}\crlf{\tfb \bf #2}}

(left the centering for the second step), without luck: \crlf doesn't (seem
to) work, the chapter number is too big (even with {{\tfa\cap{Chapter}}#1}),
and the chapter title is not boldfaced. So

1) how do I make the "newline" with appropriate spacing? I did it in a
second experiment by \hboxing the contents; is there some other way?

2) how do I get a properly dimensioned chapter number?

3) how do I get the proper font to the chapter title?

4) (since we're at it) how do I center it all?

Giuseppe Bilotta


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

end of thread, other threads:[~2000-10-05  7:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-04 20:41 redefining chapter (etc) appearence Giuseppe Bilotta
2000-10-05  7:57 ` Hans Hagen

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