Hi,

Something seems wrong with the align processing inside \setupmargindata, 
because using a macro like

\def\Inmargin#1{\inmargin{\blank[-line]\startalignment[inner,nothyphenated]#1\stopalignment}}

works ok (the \blank[-line] is a side-effect of using the environment inside a 
margin text).

Best, Taco


> On 1 Aug 2024, at 14:28, Gerion Entrup <gerion.ent...@flump.de> wrote:
> 
> Hi,
> 
> I want to make a two sided document with margin notes.
> The notes should not be hyphenated and always aligned to the inner text body.
> However, I did not get this to work.
> It hyphenates and the alignment is only correct at even pages.
> 
> Do you know the correct way?
> 
> Here is a MWE:
> ```
> \setuppagenumbering[location={footer, right}, alternative=doublesided]
> 
> \definealign[myalign][inner, nothyphenated]
> \setupmargindata[inmargin][
> location=outer,
> style=italic,
>          % nothing of that seems to have any effect
> % align=myalign,
> % align=inner,
> % align=nothyphentated,
> align={inner, nothyphentated},
> ]
> 
> \starttext
> 
> \inmargin{significant incredible components}\input knuth
> \inmargin{significant incredible components}\input knuth
> \inmargin{significant incredible components}\input knuth
> \inmargin{significant incredible components}\input knuth
> \inmargin{significant incredible components}\input knuth
> \inmargin{significant incredible components}\input knuth
> \inmargin{significant incredible components}\input knuth
> \inmargin{significant incredible components}\input knuth
> 
> \stoptext
> ```
> 
> Best,
> Gerion___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki     : https://wiki.contextgarden.net
> ___________________________________________________________________________________

— 
Taco Hoekwater              E: t...@bittext.nl
genderfluid (all pronouns)


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to