Maybe what I did helps: see "Figures III" on http://wiki.contextgarden.net/Biochemistry_textbook. Although I used mkII at the time. Cheers, Jörg R. Ermers writes:
Hi Marco,
Thank you very much indeed for your reply. This topic apparently does not interest many people.
In your suggestion the figures are put in the outer margin in a vertical row below one another close to the top of the page, and not near the position in the text.
I want them positioned close to the place in the text which should flow around them. I have seen examples of this made by Context. This can be obtained by specifying default=left, or default=right, only I need the figures to protrude into the (outer) margin. This for some reason does not work under mkiv.
I still have some time, but my deadline is approaching.
Thanks again!
Kind regards,
Robert
Op 10 sep. 2013, om 09:59 heeft Marco Patzer het volgende geschreven:
On 2013–09–10 R. Ermers wrote:
I have problems with the placement of floats. I need them to be placed in the outer edge of the text, but Context puts them in the middle of the page. The outer, inner, outeredge, inneredge, commands do not work. Right and left do work.
You probably confused edge and margin. By default the edge has zero width and has to be enabled using \setuplayout.
Preferably the criterium option should also work
\setupexternalfigures [location=default]
\setuppagenumbering [alternative=doublesided]
\definefloat [marginfigure] [marginfigures] [figure]
\setupfloat [marginfigure] [default=margin, criterium=\marginwidth]
\setupcaption [marginfigure] [number=no]
\showframe \starttext \dorecurse{9}{%% \input knuth \startplacemarginfigure \externalfigure [cow] [width=\recurselevel cm] \stopplacemarginfigure} \stoptext
Marco