![](https://secure.gravatar.com/avatar/2fdcba87c4ff4a507fcb4566f6e63b3e.jpg?s=120&d=mm&r=g)
Hi, my solution would be like this:
I have 3 cases where the usual command "align=left|right|... doesn't work:
1) \setuppagenumbering [alternative=doublesided,location={header,inmargin}]
The page number is aligned left on a right page and vice versa. How can I change this to align left on left pages and right on right pages? (So the page number doesn't rag when flipping from page 1 to 100)
\setupheadertexts[][section][chapter][] % that wasn't too difficult o)
2) \setupheader[style=\MyStyle] \setupheadertexts[section][][][chapter]
The chapter title behaves like the pagenumber. How can I change the alignment from inner to outer here?
\def\mypagenumber#1{\inframed[width=\marginwidth,frame=on,align={\doifoddpageelse{left}{right}}]{#1}} \setuppagenumbering [command=\mypagenumber,alternative=doublesided,location={header,inmargin}]
3) \setupfootnotedefinition[location=inleft]
The footnote's numbers here are aligned left, both on the left and the right page. What would be the command to align them right, with a constant distant to the note's text?
\def\myFNnumber#1{\inframed[width=20pt,offset=.0em,frame=on,align=right]{#1}} \setupfootnotedefinition[command=\myFNnumber,location=left] Probably not very elaborated - but it's working. Steffen