This is a follow-up to Drawing a background grid based on linespread value. In a two-column document, the background lines are drawn in the first column only. Is there a way to show them in both columns?
Here is a short document for testing:
% compile with lualatex or xelatex:
\documentclass[twocolumn]{book}
\usepackage{fontspec,lipsum,microtype}
\setmainfont[Contextuals=Alternate]{EB Garamond}
\linespread{1.0609}
\AtBeginDocument{\setlength{\parindent}{1em}}
\setlength{\topskip}{\baselineskip}
\usepackage[centering,columnsep=1.5em,heightrounded]{geometry}
% grid from tex.stackexchange.com/a/150621:
\usepackage{atbegshi,picture,xcolor}
\AtBeginShipout{%
\AtBeginShipoutUpperLeft{%
\color{red}%
\put(\dimexpr 1in+\oddsidemargin,
-\dimexpr 1in+\topmargin+\headheight+\headsep+\topskip)%
{%
\vtop to\dimexpr\vsize+\baselineskip{
\hrule
\leaders\vbox to\baselineskip{\hrule width\hsize\vfill}\vfill
}%
}%
}%
}
\begin{document}
\raggedbottom
\lipsum[1-8]
\end{document}
