Consider the MWE below. When I edit manuscripts I often tend to use the fixme package and its marginnote layout for notes to myself or the editor. In the latest project, I had to comment inside a listings construction. I my MWE I've boiled it down to having breaklines active and adding a long comment inside an escape to LaTeX in the listing.

Here are some observations

  1. why does the size of breakindent affect the marginnote?
  2. what exactly is the width of the marginnote, it does not seem to break corerctly
  3. if one replace \marginnote by \marginpar then everything work correctly. So which document resetting is \marginnote missing?
  4. one also get the correct breaks if one use `\marginnote{\parbox...}

Any comments on item 1–4?

BTW: I use the marginote layout over the marginpar one as the marginnote can be used everywhere!


%  breakindent=0pt,


% all is suppose to be written on one long line
test Y\test{this is a long note that just keeps on going forever and ever and ever and ever and ever and ever}Y test test test test test test test test test test test


Sniplet of the output I get:

enter image description here

closed as off-topic by Schweinebacke, Stefan Pinnow, Sebastiano, TeXnician, dexteritas Jul 23 '18 at 10:47

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 4
    I'm voting to close this question as off-topic because the problem is outdated. If can be fixed by updating at least package marginnote. – Schweinebacke Jul 23 '18 at 7:17
  • Should we ask the marginnote maintainer to add this to the code? Seems relevant now that marginpar seems to do so (haven't checked) – daleif Jun 27 '18 at 14:42
  • @daleif probably should do \@parboxrestore which resets a host of things, including this. – David Carlisle Jun 27 '18 at 14:56
  • I'll have a look tomorrow and will write the maintainer – daleif Jun 27 '18 at 14:58

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