From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: reference bug: MkiV
Date: Thu, 3 Nov 2011 21:24:53 +0100 [thread overview]
Message-ID: <7DD7167D-9C4B-4449-9FB3-674249D0F390@googlemail.com> (raw)
In-Reply-To: <op.v4dzzukbpw6hmh@ishamid-pc>
Am 03.11.2011 um 21:17 schrieb Idris Samawi Hamid ادريس سماوي حامد:
> On Tue, 01 Nov 2011 14:03:04 -0600, Wolfgang Schuster
> <schuster.wolfgang@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
___________________________________________________________________________________
next prev parent reply other threads:[~2011-11-03 20:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-01 18:47 Idris Samawi Hamid ادريس سماوي حامد
2011-11-01 18:59 ` Wolfgang Schuster
2011-11-01 19:20 ` Idris Samawi Hamid ادريس سماوي حامد
2011-11-01 20:03 ` Wolfgang Schuster
2011-11-03 20:12 ` Idris Samawi Hamid ادريس سماوي حامد
2011-11-03 20:23 ` Wolfgang Schuster
2011-11-03 20:35 ` Idris Samawi Hamid ادريس سماوي حامد
2011-11-03 21:04 ` Wolfgang Schuster
2011-11-03 21:35 ` Idris Samawi Hamid ادريس سماوي حامد
2011-11-03 20:17 ` Idris Samawi Hamid ادريس سماوي حامد
2011-11-03 20:24 ` Wolfgang Schuster [this message]
2011-11-04 9:13 ` Hans Hagen
2011-11-05 14:05 ` Idris Samawi Hamid ادريس سماوي حامد
2011-11-05 14:07 ` Idris Samawi Hamid ادريس سماوي حامد
2011-11-03 20:18 ` Idris Samawi Hamid ادريس سماوي حامد
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7DD7167D-9C4B-4449-9FB3-674249D0F390@googlemail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).