Consider the following MWE:




\section{Foo bar}

\marginline{A note}

Foo bar baz.


which produces

enter image description here

how can I vertically align the margin note to have it at the same height of the section heading, without the blank space I get now?

1 Answer 1


You would need to put the \marginline command inside the argument to \section. Note, however, that this would also attempt to put a \marginline in the page header (and table of contents if you had it) which is likely not desired. Instead, you would have to use the optional argument to \section to create a version that doesn't do that:

\section[Foo bar]{Foo bar \marginline{A note}}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .