Am 25.11.2014 um 03:47 schrieb Richard Sherman
: Hi all,
I am having trouble with the control of fonts in \inmargin{} and in page numbers. I'm also having trouble with the alignment in \inmargin{}, and with font sizes generally.
I've used what I know about \setupmargindata and \setupinmargin(and \setuppagenumbering).
Below is an example that (almost) does what I want.
The two or three problems I've tried and failed to solve are
1. control over the font size of the marginal note (rather than just \small; I want to choose a point-size)
2. control over the font and size of the page number. At first I used \setuppagenumbering[location={header, right, inmargin}] (yes, one of 'right' and 'inmargin' seems to be redundant). Getting a sans-serif page number, I assumed that \setupmargindata was controlling that, so I just switched to 'right', but my page number is still sans-serif. I've tried such things as [location={header, right}, style={normal, small}], as well as variants {\small}, {normal}, {\normal}, serif, \serif, etc. with not luck
3. in \setupmargindata and \setupinmargin, none of the 'align=' options seems to have any effect.
More generally, I have trouble understanding how to specify font sizes in ConTeXt, how to set up the font and font-size of page elements, how to include comma-separated lists following 'style=', where even within braces all but the first option seems to be ignored (at least in my margin setup commands).
I also can't figure out why, though the default (location) for \setuppagenumbering is {header, center} (and (font style) normal?), my page numbers default to sans, and when 'location=right' is specified without 'header', the page number is on the right in the ... footer (?!)
1. The font for the pagenumber can be changed with \setuppagenumbering[style=…]. 2. To use a certain font size for the margin text you can either use the \switchtobodyfont command or define a font command with \definefont and use this name as argument for the style key in \setupmargindata. 3. The alignment in the margin text can be set with \setupmarginframed or the second optional argument of \inmargin. \setuppagenumbering[style=\ttc] \setuplayout[backspace=4cm] \showframe \setupmarginframed[inmargin][align=flushleft] \setupmargindata [inmargin][style={\switchtobodyfont[ss,18]}] % Faster method to switch the font for \inmargin %\definefont[InmarginStyle][Sans at 18pt] %\setupmargindata[inmargin][style=InmarginStyle] \starttext \dorecurse{10} {\inmargin{Ward} \input ward\par \inmargin[][align=flushleft]{Knuth} \input knuth\par \inmargin[][align=flushright]{Tufte} \input tufte\par \inmargin[][align=middle]{Zapf} \input zapf\par} \stoptext Wolfgang