Hi Marcel,
As far as I know, margins end up directly next to columns: multiple
columns do not share one margin at the edge of the page. This answer
on tex.stackexchange.com comes tot the same conclusion:
http://tex.stackexchange.com/questions/67078/text-in-outer-margin-of-multipl...
If margins are indeed per-column instead of per-page, that should be
reflected in the code determining where to set margin text.
In [`typo-mar.lua`](http://repo.or.cz/w/context.git/blob/HEAD:/tex/context/base/typo-mar.lua),
line 434 (in the `realign`) function suggests the margintext's box is
moved by hsize:
if location == v_left then
move_x = (reference.x or 0) - (blob.x or 0)
elseif location == v_right then
move_x = (reference.x or 0) - (blob.x or 0) +
(reference.w or 0) - hsize
else
The `hsize` is as wide as the column one is currently in, and the
variable `columns` is defined once and used never in the file. So that
indeed suggests columns are not taken into account.
Hans will know for sure, though.
Cheers,
Sietse
On Thu, Aug 30, 2012 at 12:25 PM, Marc Rummel
Hello,
I have a problem with margin texts in combination with multiple columns using mkiv. I want to set a text in the outer margin of a double sided document. This works well using \inouter as seen in the following document:
--- \setuppagenumbering[alternative=doublesided]
\starttext
\inouter{Text in Margin} \input knuth
\page[yes]
\inouter{Text in Margin} \input knuth
\stoptext ---
But fails, when I use it in combination with multiple columns. Then the margin text of the odd pages is set in the second column (probably in the margin of the first column) instead of the margin of the whole page.
--- \setuppagenumbering[alternative=doublesided]
\starttext
\inouter{Text in Margin} \startcolumns \input knuth \stopcolumns
\page[yes]
\inouter{Text in Margin} \startcolumns \input knuth \stopcolumns
\stoptext ---
I hope someone can help me.
Best wishes, Marc ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________