Am Fri, 16 Oct 2009 21:06:01 +0200 schrieb Mojca Miklavec:
On Tue, Oct 13, 2009 at 19:05, Martin Scholz wrote:
Hi List,
I'm trying to setup a new document in Context, and a newbee, so I now want to setup the section head as following
§ Secnum - Sectitle
Where the § Secnum part is set up in the margin and the Sectitle over the Text is there any solution how to get it done?
Not to be taken too seriously: you need to ask a more complex (challenging) questions to get a better chance for an answer :) :) :)
It's best to study chapter 8 of cont-eni.pdf from pragma-ade.com to get the idea of how to handle section modifications.
Here's one possible solution:
\def\mynumbercommand#1{§ #1 --} \setuphead [section] [numbercommand=\mynumbercommand, alternative=inmargin]
You may get a bit too big distance, but you can do one of the following tricks: a) shorten the distance between margin and text b) instead of just "--" you can use something like \hbox to 0.2mm{--\hss} to fake negative spacing or add explicit negative kerning.
Mojca
Hi Mojca, I'm a type of learner by reading the sourcecode, so it is easier for me if I see examples in the code then reading manuals... thanks for you help, will try your example later that day... Thanks and greetings Martin