<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><title></title><meta http-equiv="Content-type" content="text/html; charset=UTF-8" /><style type="text/css">p { margin:0px; padding:0px; }</style></head><body style='background-color:rgb(255, 255, 255);background-image:none;background-repeat:repeat;background-position:0% 0%;font-family:serif;font-size:12px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;padding-top:5px;padding-bottom:5px;padding-left:5px;padding-right:5px;'><p><span style="font-family:Verdana;"><font size="1"></font></span></p><pre>  Thanks Alan and Alain ... your solution almost works,<br />although for some reason the new geometry package<br />behaves slightly differently from the old one : with<br />the old one I got an exact paving of the page, with<br />the new one the paving overlaps and is too far left.<br /><br />  the natural fix to this would be to change the coordinates<br />of the rectangle, e.g. <br />  <br />\draw[xstep=1.75cm,ystep=2.47,gray!50] (a,b) grid (21,29.65);<br /><br />instead of<br /><br />\draw[xstep=1.75cm,ystep=2.47,gray!50] (0,0) grid (21,29.65);<br /><br />where a and b are ad hoc values.<br />Not surprisingly, the paving's location in the page stays the same whatever <br />values I put for a and b. Any ideas on how to fix this ?<br /><br />     Ewan<br /><br /><br />Alain Matthes said :<br /><br />>\documentclass[a4paper]{article}<br />>\usepackage{lipsum}<br />>\usepackage{geometry} <br />>\usepackage{tikz}<br />><br />>\begin{document}<br />>\newgeometry{margin=0in} % use this to temporarily change the margins<br />>\noindent   \begin{tikzpicture}[x=1cm,y=1cm] <br />>\draw[xstep=1.75cm,ystep=2.47,gray!50] (0,0) grid (21,29.65);<br />>\end{tikzpicture}<br />>\restoregeometry<br />>\lipsum[1-2] % just to demonstrate that it works<br />>\end{document} <br />><br />><br />><br />>You can use changepage.sty to modify mid-layout but geometry is perfect  <br />><br />><br />>To change the first page and add a grid on the first page, you can also use <br />>eso-pic.<br />><br />>Best Regards <br />><br />>Alain Matthes<br /></pre></body></html>