Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to use \marginpar directly beside a formula within a \begin{align} statement. I tried:

\begin{align}
E^2
\end{align}
\marginpar{Not correct}

but the 'Not correct' statement is written besides the next line. How can I achieve that is is written besides E^2 (means on the same height)?

And what if I have more than one formula, how to achieve to write it besides the very last of the align-environment?

share|improve this question

1 Answer 1

up vote 10 down vote accepted

You could use the marginnote package and use its \marginnote command. \marginnote is a non-floating version of \marginpar and can also be used inside the align environment:

\documentclass{article}

\usepackage{amsmath}
\usepackage{marginnote}

\begin{document}

\begin{align}
 E^2 \marginnote{Not correct}
\end{align}

\end{document}

enter image description here

share|improve this answer

Your Answer

 
discard

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.