Re: [NTG-context] inothermargin overlaps
Hi Hans, > % \setupinmargin[left][sidemethod=2] > % \setupinmargin[left][sidemethod=3] > % \setupinmargin[left][sidemethod=4] I've tried each of them (with both left and right). In my minimal example, there is no difference. In my complete document, I noticed sidemethod=3 caused on margin text to shift a bit (not even an entire lineheight), nothing else seems to have changed. I've dug into the code a bit and the sidemethod does indeed change the code paths a bit (in \dopositionmarginbox), but I've been unable to understand what happens there exactly. Any suggestions on what the above should be doing? It seems it selects different position schemes for margin boxes, but I can't seem to tell what is supposed to happen exactly... Gr. Matthijs signature.asc Description: Digital signature ___ 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 ___
Re: [NTG-context] inothermargin overlaps
Matthijs Kooijman wrote: Hi all, I've been using \inmargin to put some stuff in the margin of my text, but when I use multiple \inmargin's close together, the stuff in the margin will overlap. Is there any way to let ConTeXt just move things down to prevent overlap? I'm not forced to move my \inmargin's around, guessing where the line wraps will be, which is not quite elegant and a lot of work... try to set % \setupinmargin[left][sidemethod=2] % \setupinmargin[left][sidemethod=3] % \setupinmargin[left][sidemethod=4] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 ___
Re: [NTG-context] inothermargin overlaps
> Try > \starttext > Foo Baz \inmargin {Blerf \\ Baz} > \stoptext Hmm, that might work, but my real case is slightly more complicated. I have the \inmargin wrapped in a \refdef command, that references some topic on some page. So I say \refdef{foo} and it looks up both the text and page number for foo and puts that into the margin. I could probably complicate my \refdef command into taking multiple references at the same time. However, that will still require me to merge those commands when they are close together, which might mean some of the rerefences are not in their logical place anymore. For example: Some short paragraph referencing foo. \refdef{foo} And another paragraph refering bar. \refdef{bar} This has the references in the logical places. With your suggestions, I must change this to: Some short paragraph referencing foo. \refdef{foo,bar} And another paragraph refering bar. Which is more error prone when I start moving around text... So, it's a workable solution, but it's not quite ideal yet... Gr. Matthijs signature.asc Description: Digital signature ___ 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 ___
Re: [NTG-context] inothermargin overlaps
On Wed, Dec 2, 2009 at 11:47 AM, Matthijs Kooijman wrote: > W00ps, forgot to include the testcase I made: > > \starttext > Foo \inmargin{Blerf} Bar \inmargin {Baz} > \stoptext Your code is ok Try \starttext Foo Baz \inmargin {Blerf \\ Baz} \stoptext \starttext Foo Baz \inmargin {Blerf Baz} \stoptext -- luigi ___ 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 ___
Re: [NTG-context] inothermargin overlaps
W00ps, forgot to include the testcase I made: \starttext Foo \inmargin{Blerf} Bar \inmargin {Baz} \stoptext signature.asc Description: Digital signature ___ 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] inothermargin overlaps
Hi all, I've been using \inmargin to put some stuff in the margin of my text, but when I use multiple \inmargin's close together, the stuff in the margin will overlap. Is there any way to let ConTeXt just move things down to prevent overlap? I'm not forced to move my \inmargin's around, guessing where the line wraps will be, which is not quite elegant and a lot of work... Gr. Matthijs signature.asc Description: Digital signature ___ 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 ___