4

When I use \marginnote in \begin{equation}\end{equation}, it seems to work fine, but if I try to place a margin note inside a multiline equation (at least when I use \begin{split}\end{split}), there is a weird extra space between the first two lines of the margin note. I've attached a MWE so you can see what I mean. (I made the font smaller with \footnotesize so it is easier to see (and also because in practice I would like the font to be the size of footnotes anyways).) MWE

\documentclass{article}

\usepackage{amsmath}
\usepackage{marginnote}

\begin{document}

\begin{equation}
\begin{split}
3x+2 & =\marginnote{\footnotesize{The solution is $x=1$.  Blah.  Blah.  Blah.  Blah.  Blah.  Blah.}}5 \\
4y-3 & =7.
\end{split}
\end{equation}

\end{document}
2

Put the marginnote before split (not inside). Further, as Gonzalo notes, changes to the font of marginnotes with the marginnote package are to be done using \marginfont. Also note that \footnotesize is a switch and it doesn't take any arguments.

 \documentclass{article}

\usepackage{amsmath}
\usepackage[fulladjust]{marginnote}
\renewcommand*{\marginfont}{\footnotesize}

\begin{document}

\begin{equation}
\marginnote{The solution is $x=1$.  Blah.  Blah.  Blah.  Blah.  Blah.  Blah.}
\begin{split}
3x+2 & =5 \\
4y-3 & =7.
\end{split}
\end{equation}

\end{document}

enter image description here

  • \footnotesize doesn't take arguments. In any case, changes to the font of marginnotes with the marginnote package are to be done using \marginfont. – Gonzalo Medina Mar 9 '14 at 1:39
  • Well, I can for a single marginnote put the command inside like done by OP (or for a set with defining a new command). \marginfont is useful, when I want to do this for all marginnotes. – Speravir Mar 9 '14 at 2:28
  • @Speravir well, the OP stated in his last sentence "I would like the font to be the size of footnotes anyways". – Gonzalo Medina Mar 9 '14 at 2:30
  • @GonzaloMedina: Oh, I overlooked this. I was referring to “are to be done”. It’s a case of misunderstanding on my side I guess. – Speravir Mar 9 '14 at 2:38
  • @Speravir It's OK. Perhaps I should've added "global changes are to be done". – Gonzalo Medina Mar 9 '14 at 2:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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