-
Notifications
You must be signed in to change notification settings - Fork 402
SideNote
In the version 3.08, we introduced the marginpar=margintrue
and the test command \elegantpar
, but it brings a lot of problems. We decided to remove it in 3.09 and will not introduce it back into the book template until the marginpar command is substantially optimized. I am very sorry for the inconvenience. However, we still leave the marginpar option, and you can use marginpar=margintrue
to get the margins on the right side of the page. Then use the system command of \marginpar
or the macro package of marginnote
in \marginnote
command.
Notice When using marginpar, we need to note that the text and formula can be used directly in the marginpar.
% text
\marginpar{margin paragraph text}
% equation
\marginpar{
\begin{equation}
a^2 + b^2 = c^2
\end{equation}
}
However, the floating body (table, picture) should be noted that the floating body environment can not be used, we need to use direct illustration command or table command environment. Then set the title with \captionof
. To get a centered chart, use the \centerline
command or the center
environment. For more details please refer to: Caption of Figure in Marginpar。
% graph with centerline command
\marginpar{
\centerline{
\includegraphics[width=0.2\textwidth]{logo.png}
}
\captionof{figure}{your figure caption}
}
% graph with center environment
\marginpar{
\begin{center}
\includegraphics[width=0.2\textwidth]{logo.png}
\captionof{figure}{your figure caption}
\end{center}
}