Hi all, I'm trying to define chapter style like the following: ------------------------------------------------------------------ Chapter 1 This is the name of chapter ------------------------------------------------------------------ But I can't found the option of \setuphead which allows me insert a "new line" (and a vertical space) between chapter number and chapter name yet. Any help will be appreciated, Thanks in advance, Quy NGUYEN-DAI -- http://vnoss.org/forum/
On Tue, 28 Dec 2004 21:11:20 +0100, VnPenguin
Hi all, I'm trying to define chapter style like the following: ------------------------------------------------------------------
Chapter 1
This is the name of chapter
------------------------------------------------------------------ But I can't found the option of \setuphead which allows me insert a "new line" (and a vertical space) between chapter number and chapter name yet.
Oops, just found it myself with style={\blank....} Sorry, Q.
VnPenguin wrote:
Hi all, I'm trying to define chapter style like the following: ------------------------------------------------------------------
Chapter 1
This is the name of chapter
------------------------------------------------------------------ But I can't found the option of \setuphead which allows me insert a "new line" (and a vertical space) between chapter number and chapter name yet.
Any help will be appreciated,
\def\MyChapterCommand#1#2{#1\blank#2} \setuphead[chapter][command=\MyChapterCommand] ----------------------------------------------------------------- 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 -----------------------------------------------------------------
On Wed, 29 Dec 2004 10:18:07 +0100, Hans Hagen
VnPenguin wrote:
Hi all, I'm trying to define chapter style like the following: ------------------------------------------------------------------
Chapter 1
This is the name of chapter
------------------------------------------------------------------ But I can't found the option of \setuphead which allows me insert a "new line" (and a vertical space) between chapter number and chapter name yet.
Any help will be appreciated,
\def\MyChapterCommand#1#2{#1\blank#2}
\setuphead[chapter][command=\MyChapterCommand]
Oh, I should learn that now :) Thank you for your help, Q.
On Wed, 29 Dec 2004 10:18:07 +0100, Hans Hagen
VnPenguin wrote:
Hi all, I'm trying to define chapter style like the following: ------------------------------------------------------------------
Chapter 1
This is the name of chapter
------------------------------------------------------------------ But I can't found the option of \setuphead which allows me insert a "new line" (and a vertical space) between chapter number and chapter name yet.
Any help will be appreciated,
\def\MyChapterCommand#1#2{#1\blank#2}
\setuphead[chapter][command=\MyChapterCommand]
Here is the code I try: ----------------------- begin of code -------------------------------------------- \language[en] \setuppapersize[A4] \def\MyChapterCommand#1#2{#1\blank[2cm]#2} \setuphead [chapter] [command=\MyChapterCommand] \starttext \chapter[foo]{This is first Chapter} \section{totototo} \subsection{tatata} blahblah \stoptext ------------ end of code --------------------------------------------------- Unfortunately, I can not get the thing for which I'm looking :-) I'm wrong some thing ? Q.
VnPenguin wrote:
On Wed, 29 Dec 2004 10:18:07 +0100, Hans Hagen
wrote:
you need to force vmode in order to make blank work \def\MyChapterCommand#1#2{\vbox{\ruledhbox{#1}\blank[2cm]\ruledhbox{#2}}} Hans
VnPenguin wrote:
Hi all, I'm trying to define chapter style like the following: ------------------------------------------------------------------
Chapter 1
This is the name of chapter
------------------------------------------------------------------ But I can't found the option of \setuphead which allows me insert a "new line" (and a vertical space) between chapter number and chapter name yet.
Any help will be appreciated,
\def\MyChapterCommand#1#2{#1\blank#2}
\setuphead[chapter][command=\MyChapterCommand]
Here is the code I try: ----------------------- begin of code -------------------------------------------- \language[en] \setuppapersize[A4]
\def\MyChapterCommand#1#2{#1\blank[2cm]#2}
\setuphead [chapter] [command=\MyChapterCommand]
\starttext \chapter[foo]{This is first Chapter} \section{totototo} \subsection{tatata} blahblah \stoptext ------------ end of code --------------------------------------------------- Unfortunately, I can not get the thing for which I'm looking :-) I'm wrong some thing ?
Q. _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Am 29.12.2004 um 16:05 schrieb Hans Hagen:
you need to force vmode in order to make blank work
\def\MyChapterCommand#1#2{\vbox{\ruledhbox{#1}\blank[2cm]\ruledhbox{#2} }}
Thanks, it's now in the wiki: http://contextgarden.net/Titles Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net
participants (3)
-
Hans Hagen
-
Henning Hraban Ramm
-
VnPenguin