tags:

views:

407

answers:

3

I repeatedly get the LaTeX warning:

LaTeX Warning: Marginpar on page x moved.

What does this mean? Is that a problem? How can I fix the corresponding problem?

A: 

It means that you have a marginal note (marginpar) which was in one place on your last compile, and is now someplace else.

uckelman
I'm not sure about this... I get exactly the same warning at each compile, at exactly the same pages, so it does not seem to be related to any previous compile. In fact, it shows up even for the first compile, after I cleared the auxiliary files.
Olivier
Check your marginal notes. Are they all showing up in the places you expect? Do they jump around on successive compiles?
uckelman
Not exactly, but now I see where this comes from: the `todonotes` package. It happens when two notes are close to each other.
Olivier
No. It's when two marginal notes would naturally overlap and one has to move
Rob Hyndman
+5  A: 

Alternate explanation:

Do you have multiple marginpars? It may be that placed in their natural position they would overlap each other, so one (or move) was moved a bit to make room.

I've used marginpars for a internal FIXME tool before, and using a lot can result in some being displaced from their associated text.

dmckee
The warnings do not go away. It happens indeed when two notes are close to each other on the same page.
Olivier
+1  A: 

Thank you for the answers! I add my own since I found it on the todonotes package author's blog page:

http://midtiby.blogspot.com/2008/05/updated-todonotes-package.html?showComment=1215360900000#c7770492295748791763

In fact, just deactivating the todonotes packages makes the warning go away. This is fine since those notes are only useful for the draft version.

Olivier
if the todonotes package, which i really, really like, is giving you marginpar problems, you should consider using the inline option of the todonotes package: `\todo[inline]{to do text}`
Mica

related questions