How do I color a page within the margin and still being able to write text on the page? I would like to make something like this.enter image description here

2 Answers 2


You can e.g. use eso-pic:



enter image description here


If you are using OpTeX, you can use \pgbackground tokens register and create \hrule with desired dimensions shifted by \voffset and \hoffset:


\setbox\bgbox=\vbox{\LiGreen\hrule height\dimexpr\vsize+3pt width\hsize}
\pgbackground={\kern\voffset \moveright\hoffset\copy\bgbox}



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.