4

If I typeset the following, (obviously) the top of the marginpar aligns with the last line of the paragraph, which looks ugly.

\documentclass{article}
\begin{document}
Some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text.\marginpar{Lorem ipsum dolor sit amet, consectetur adipiscing elit.}
\end{document}

Is there a way to align the bottom of a marginpar with the last line of the paragraph?

4

Yes. Note that it pokes above the top of the text area.

\documentclass{article}
\begin{document}
Some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text.
\marginpar{\raisebox{\height}[0pt]{\parbox{\marginparwidth}{\sloppy Lorem ipsum dolor sit amet, consectetur adipiscing elit.}}}
\end{document}

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.