Hi, The following minimal example works on live.contextgarden.net but with the latest beta the command parameter doesn't seem work (the "TEST" does not appear in the margin). \showframe \starttext \define[2]\cmd{\inmargin{TEST}} \startsubject[title=Title,command=\cmd] \input knuth \stopsubject \stoptext Can someone confirm this? Adam
Am 09.12.2012 um 02:35 schrieb reviczky@caesar.elte.hu:
Hi,
The following minimal example works on live.contextgarden.net but with the latest beta the command parameter doesn't seem work (the "TEST" does not appear in the margin).
\showframe \starttext \define[2]\cmd{\inmargin{TEST}} \startsubject[title=Title,command=\cmd] \input knuth \stopsubject \stoptext
Can someone confirm this?
You have to use “alternative=command” before you can apply a command: \define[2]\SubjectCommand {\inmargin{TEST}} \setuphead [subject] [alternative=command, command=\SubjectCommand] \showframe \starttext \startsubject[title=Title] \input knuth \stopsubject \stoptext When you want more control about the layout of your header use \defineheadalternative to create it: \defineheadalternative [Subject] [alternative=horizontal, renderingsetup=Subject] \startsetups[Subject] \headsetupspacing \inmargin{TEST} \stopsetups \setuphead [subject] [alternative=Subject, distance=0pt] \showframe \starttext \startsubject[title=Title]% \input knuth \stopsubject \stoptext Wolfgang
participants (2)
-
reviczky@caesar.elte.hu
-
Wolfgang Schuster