[NTG-context] Title in margin example from the wiki not working?

Wolfgang Schuster schuster.wolfgang at gmail.com
Thu Aug 7 10:36:47 CEST 2014


Am 07.08.2014 um 08:38 schrieb Mica Semrick <mica at silentumbrella.com>:

> Hello,
> 
> I'm trying to get the subject heading in the margin. I found this code on the wiki, but it is not compiling with the latest version of ConTeXt.
> 
> \setuppapersize[A5]
> \setuphead
>  [subject]
>  [alternative=text,distance=0pt,command=\MyHead,style=\sc]
> 
> \def\MyHead#1#2{\inmargin{#1 #2}}

You have to use \define to create your custom layout for the heading, e.g.

\define[2]\MyHead
  {\inmargin{#1 #2}}

Wolfgang


More information about the ntg-context mailing list