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

Mica Semrick mica at silentumbrella.com
Thu Aug 7 08:38:15 CEST 2014


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}}

\starttext

\subject{First Subject}
\input weisman

\subject{Second Subject}
\input ward

\stoptext

from http://wiki.contextgarden.net/Titles#Titles_in_margin

The error being thrown is  ! Argument of \MyHead has an extra }

Please help!

Best,
Mica


More information about the ntg-context mailing list