![](https://secure.gravatar.com/avatar/a4358949522f2efc1bab8ed68385b00c.jpg?s=120&d=mm&r=g)
On Tue, 01 Nov 2011 14:03:04 -0600, Wolfgang Schuster
Well, that's quite frustrating... I have a 400-page document I'm trying to port to MkIV full of references, the old \inmargin no longer respect [align=outer], so I switched to the new system, and now the new system does not support references …
The old \inmargin command is gone, Hans rewrote the whole code for \inmargin etc. You can change the alignment global with \setupmarginframed[align=outer] for for a single command with \inmargin[][align=outer]{…}
Is there any workaround, either for \inmargin or \inoutermargin? My publisher is going to kill me \usemodule[annotation] %\defineannotation[mymargin][alternative=inmargin] \define[2]\MymarginCommand {\inmargin[scope=local]{#2}} \defineannotation [mymargin] [alternative=command, command=\MymarginCommand] \starttext See is a test.\mymargin[reference=mar:test]{Test} See \at{page}[mar:test]. \stoptext
Ok, here is an example that takes both align=outer and references into account: ==================== \usemodule[annotation] \setuplayout[location={middle,doublesided},backspace=2cm] \setuppagenumbering[alternative=doublesided] \setupmargindata[inoutermargin][location=outer,align=inner,style=\tfxx\setupinterlinespace] \define[2]\MymarginCommand {\inoutermargin[scope=local]{#2}} \defineannotation [mymargin] [alternative=command, command=\MymarginCommand] \starttext This is a test.\mymargin[reference=mar:test]{Test} See \at{page}[mar:testt]. \dorecurse{8}{\input zapf \mymargin{This is a test of the margindata system and the inmargin macros}\par } \blank[7*big] This is a test.\mymargin[reference=mar:testt]{Test} See \at{page}[mar:test]. \stoptext ==================== Appears to work well, and I have to give you a BIG THANK YOU!!! Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department of Philosophy Colorado State University Fort Collins, CO 80523