Am 03.11.2011 um 21:17 schrieb Idris Samawi Hamid ادريس سماوي حامد:

> On Tue, 01 Nov 2011 14:03:04 -0600, Wolfgang Schuster
> <schuster.wolfg...@googlemail.com> wrote:
> 
>>> 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!!!

For longer texts you can replace \mymargin{…} with \startmymargin 
…\stopmymargin.

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________
  • [NTG-context] reference ... Idris Samawi Hamid ادريس سماوي حامد
    • Re: [NTG-context] r... Wolfgang Schuster
      • Re: [NTG-contex... Idris Samawi Hamid ادريس سماوي حامد
        • Re: [NTG-co... Wolfgang Schuster
          • Re: [NT... Idris Samawi Hamid ادريس سماوي حامد
            • Re... Wolfgang Schuster
              • ... Idris Samawi Hamid ادريس سماوي حامد
                • ... Wolfgang Schuster
                • ... Idris Samawi Hamid ادريس سماوي حامد
          • Re: [NT... Idris Samawi Hamid ادريس سماوي حامد
            • Re... Wolfgang Schuster
              • ... Hans Hagen
                • ... Idris Samawi Hamid ادريس سماوي حامد
              • ... Idris Samawi Hamid ادريس سماوي حامد
          • Re: [NT... Idris Samawi Hamid ادريس سماوي حامد

Reply via email to