Hans, et alia, Thanks for mentioning typo-mar.mkiv. Once I found it, and figured out what to do with it (put it in my texmf-local directory), it appears to, as you say, "offer more control over margindata". My (rather belated) thanks for offering this extended functionality, though my grasp of context is still too fragile to really understand how to use it. typo-mar.mkiv appears to introduce a bug in my Arabic typesetting. In my bilingual text, my margin data (pg/lb numbers) are placed correctly in the margin of the English text, but the margins of the Arabic text appear to be miscalculated and the margindata overwrites the beginnings of the lines (or disappears beyond the edge if I set margin 'left'). My tyronic fooling around may certainly be at fault, but if you could offer any observations on the following, I'd be grateful. ConTeXt  ver: 2011.04.24 15:15 MKIV My environment file is included below, stripped down as far as I could to its essentials. I've attached the ara-style.tex file setting up ScheherazadeRegOT; a stripped down example of my tei/xml source; and the pdf output I'm getting. I hope I violate no convention of the list in attaching these files, but in my naivete I'm not sure how much information is too much. \startxmlsetups xml:teisetups        \xmlsetsetup{#1}{*}{-}        \xmlsetsetup{#1}{body|p|pb|lb|}{xml:*}        \xmlsetsetup{#1}{div[@xml:id='apr_arab']}{xml:div:arab}        \xmlsetsetup{#1}{div[@xml:id='apr_engl']}{xml:div:engl}                \xmlsetsetup{#1}{pb}{xml:pb}                \xmlsetsetup{#1}{lb}{xml:lb} \stopxmlsetups \xmlregistersetup{xml:teisetups} \environment ara-sty \usetypescript[palatino] \setupbodyfont[palatino,10pt] \startxmlsetups xml:body    \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:p        \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:pb    \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:lb        \MarText{\tfxx{xml pb/lb numbers}}        \xmlflush{#1} \stopxmlsetups \definemargindata [MarText][right][color=red] \startxmlsetups xml:div:arab        \setarabic{\switchtobodyfont[Arabic] \xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:div:engl        \setlatin{\switchtobodyfont[palatino, 12pt] \xmlflush{#1}} \stopxmlsetups On Wed, Apr 27, 2011 at 4:28 AM, Hans Hagen wrote: > On 27-4-2011 1:26, Jon Crump wrote: >> >> All, >> >> After being away from my project for a while I returned to find that >> something that worked now no longer does. I updated the minimals on my >> Mac and context is running as I would expect: >> >> jjc% context --version >> mtx-context     | main context file: >> /Users/jjc/context/tex/texmf-context/tex/context/base/context.mkiv >> mtx-context     | current version: 2011.04.24 15:15 >> >> But now, while running my environment.tex file against my target >> TEI/xml file context complains: >> >> ! Undefined control sequence. >> l.77 \defineinmargin >>                      [lineNumbers] [normal] >> ? > > see typo-mar.mkiv ... more control over margindata and new commands > > Hans > > ----------------------------------------------------------------- >                                          Hans Hagen | PRAGMA ADE >              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com >                                             | www.pragma-pod.nl > ----------------------------------------------------------------- >