Gerion Entrup schrieb am 01.08.2024 um 16:20:
Am Donnerstag, 1. August 2024, 16:13:23 MESZ schrieb Wolfgang Schuster:
Gerion Entrup schrieb am 01.08.2024 um 14:28:
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},
]
Use \setupmarginframed for the alignment.

\setupmarginframed
    [inmargin]
    [align={inner,nothyphenated}]
Does the align parameter of \setupmargindata has any function, then?
Also, using setupmarginframed leads to other problems:
- The margin text is bold now(?)
- All margin nodes are on the left of the page now (this should be only the 
case for even pages)

The location of the margin block and the style are still controlled by \setupmargindata and only the alignment has to be changed with \setupmarginframed.

\setupmargindata
  [inmargin]
  [location=outer,
   style=italic]

\setupmarginframed
  [inmargin]
  [align={inner,nothyphenated}]

Wolfgang

___________________________________________________________________________________
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