Please see my screen shot below to get the rough idea. The even-numbered pages have bad marginpar layout. It is not the case for odd-numbered pages.
Do you have any idea to solve it?
Here is my minimal code snippet:
Code: Select all
\documentclass[a4paper,twoside,10pt]{book}
\usepackage[innermargin=25mm,outermargin=5mm,marginparwidth=50mm,includemp=true]{geometry}
\usepackage{xcolor,lipsum}
\newcommand{\mmp}[1]{\marginpar[\raggedleft\footnotesize\color{red}\fbox{\parbox{\marginparwidth}{\color{blue}#1}}]%
{\raggedright\footnotesize\color{blue}\fbox{\parbox{\marginparwidth}{\color{red}#1}}}}
\begin{document}
\lipsum[1]
\mmp{\LaTeXe\ is cool. However there are some bugs that can make you disappointed.}
\lipsum[1-4]
\lipsum[1]
\mmp{\LaTeXe\ is cool. However there are some bugs that can make you disappointed.}
\lipsum[1-5]
\end{document}
regards,
Yoyo