TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I try the following in ConTeXt:


text text\inmargin{this is a note.} text text\inmargin{Another note.}

\input knuth 

text text\inmargin[stack=yes]{this is a note.} text text\inmargin[stack=yes]{Another note.}

\input knuth 

text text\inmargin[stack=yes]{this is a note. Now longer.} text text\inmargin[stack=yes]{Another note.}

\input knuth 


then it only works for short notes. For longer notes I found the suggestion to use stack=continue, but I could not make that work either.


So my question is: How to make it work with floating (not overlapping) text [edit: in MKIV]?

EDIT1: It only does not work in MKIV , MKII is fine

(ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2012.5.8 int: english/english)

(ConTeXt ver: 2011.05.18 18:04 MKII fmt: 2012.5.11 int: english/english)

share|improve this question
up vote 7 down vote accepted

For ConTeXt MK II, add \setupinmargin[stack=yes] to your preamble, e.g.:

    This is some text.\inmargin{This is in the margin.}
    This is some more text.\inmargin{This text is also in the margin.}

For more available options, see this article about setupinmargin at the ConTeXt Wiki.

If you are using ConTeXt Mk IV, you may use \margintext in place of \inmargin and also add \setupinmargin[stack=yes] to the preamble, e.g.:

    This is some text.\margintext{This is in the margin.}
    This is some more text.\margintext{This text is also in the margin.}
share|improve this answer
This does not work either and I would have been confused if it would have. However, it gave me another clue and I updated the question. – Andy May 11 '12 at 11:11
I have updated my answer. See if this works. – Village May 11 '12 at 11:43
It does work now. It breaks 'location=outer', but that is a different story... :( – Andy May 11 '12 at 12:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.