Adding margin notes
You can add notes to the margin to make a text more dynamic, annotate critical passages, and explain or comment on a piece of the body text. This can enhance understanding and aid in studying.
How to do it...
For our first document with margin notes, we will use the very first document from Chapter 1, Exploring Various Document Classes. Edit that document as follows:
- Load the marginnote package in the document preamble:
\usepackage{marginnote}
- To highlight margin notes using color, load the xcolor package :
\usepackage{xcolor}
- Choose a font shape, color, or size for the margin notes, such as the following:
\renewcommand*{\marginfont}{\strut\color{blue}% \sffamily\scriptsize}
- Within the document text, add margin notes in the lines where you want them to be positioned. For example, like this:
\addsec{Introduction} This document will be our starting point for simple documents.\marginnote{No chapters supported!} It is suitable for a...