Title in margin example from the wiki not working?
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
Am 07.08.2014 um 08:38 schrieb Mica Semrick
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
Thanks Wolfgang. I will test this later tonight and update the wiki when it is working. Best, Mica
participants (2)
-
Mica Semrick
-
Wolfgang Schuster