TeX - LaTeX Asked on November 1, 2021
I am using the bindingoffset
command of the geometry
package to shift the page margin in order to compensate for the actual binding. Is there any way to represent this offset from bindingoffset
as a shaded region on the page? I’d like to have it visible on the page to be able to distinguish it from the actual page margin.
Below is a mock-up of what I’m trying to achieve. The shaded region represents the bindingoffset
‘s length e.g. 10mm.
Easy with eso-pic
. Here is an example with two-sided printing:
documentclass[12pt]{book}
usepackage{lipsum}
usepackage{indentfirst}
usepackage[top=3cm, bottom=3cm, left=3cm, right=2cm, bindingoffset=1cm, showframe]{geometry}
usepackage[svgnames]{xcolor}
usepackage{eso-pic}
usepackage{etoolbox}
AddToShipoutPictureBG{AtPageLowerLeft{color{Gainsboro}ifnumodd{arabic{page}}{}{hspace*{dimexprpaperwidth-1cm}}rule{10mm}{paperheight}}}
begin{document}
tableofcontents
chapter{Introduction}
lipsum[1-20]
end{document}
Answered by Bernard on November 1, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP