Am 21.11.2010 um 12:28 schrieb Philipp Gesang:

> Dear fellow Contexters,
> 
> there are some subheadings I’d like to place in the margin
> approximately like that:

\setuplayout[grid=yes]\showgrid

\define[2]\SectionCommand
  {\inleftmargin{#2}}

\setuphead
  [section]
  [alternative=text,
   style=bold,
   color=red,
   command=\SectionCommand,
   distance=0pt,
   before={\blank[nowhite]}]

\starttext

\dorecurse{10}
  {\section{Knuth}
   \input knuth\par}

\stoptext

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to