On Mon, May 11, 2009 at 8:06 PM, Corsair <[email protected]> wrote:
> Hi all,
>
> I'm typesetting a double-sided document. And I want the chapter
> numbers to be in the right margin, while the chapter titles remain in
> the main text area. So I write
>
> \def\MyChapter#1#2
> {\inright{#1} #2}
>
> \setuphead
> [chapter]
> [command=\MyChapter]
>
> But it renders such that all the chapter numbers disappear while
> chapter titles seem normal. Any idea?
>
I extract the following fragment from my document and I wish it can help you :)
\def\PlaceChapter#1#2{%
\vbox{%
\inoutermargin{%
\hbox to .6\rightmarginwidth{%
\hfil\switchtobodyfont[32pt,myfont,rm]{#1}\hss}%
}\tfc #2%
}%
}
\setuphead
[chapter]
[command=\PlaceChapter,header=empty,footer=empty]
\starttext
\chapter{Test}
This is only a test!
\stoptext
--
Best wishes,
Li Yanrui
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________