I want to delimit margin note area by a background color for all the document like in some nice books.
I tried with marginnote
and todonote
packages without success.
You are my last hope...
I want to delimit margin note area by a background color for all the document like in some nice books.
I tried with marginnote
and todonote
packages without success.
You are my last hope...
This is a job for the background
and tikzpagenodes
packages:
\documentclass{book}
\usepackage{tikzpagenodes}
\usepackage{background}
\usepackage{lipsum}
\backgroundsetup{
scale=1,
angle=0,
contents={\tikz[remember picture,overlay]\fill[red!30] (current page marginpar area.north west) rectangle (current page marginpar area.south east);
}}
\begin{document}
\lipsum[1-15]
\end{document}
The code needs two or three runs to stabilize.