<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">Victor Ivrii said : <br />>So you need define matching page style<br /><br /><br />To be more specific :<br /><br /> if I write<br /><br />\documentclass[a4paper]{article}<br />\usepackage[margin=0in]{geometry}<br />\usepackage{tikz}<br /><br />\begin{document}<br />\noindent \begin{tikzpicture}[x=1cm,y=1cm]<br />\foreach \x in {0,1.75,3.5,5.25,7,8.75,10.5,12.25,14,15.75,17.5,19.25,21}<br /> {<br /> \draw (\x ,0) -- (\x ,29.65);<br /> };<br />\foreach \y in {0,2.47,4.94,7.41,9.88,12.35,14.83,17.3,19.77,22.24,24.71,27.18,29.65}<br /> {<br /> \draw (0, \y) -- (21, \y);<br /> };<br />\end{tikzpicture}<br />\end{document}<br /><br /> I get a nice paving of the first page.<br /><br /> Now I want to do this without invoking \usepackage[margin=0in]{geometry},<br />I want to define the matching page style. I tried the following :<br /><br /><br />\documentclass[a4paper]{article}<br />\usepackage{tikz}<br /><br />\begin{document}<br />\thispagestyle{\setlength{\textwidth}{21cm}}<br />\thispagestyle{\setlength{\textheight}{29.65cm}}<br />\noindent \begin{tikzpicture}[x=1cm,y=1cm]<br />\foreach \x in {0,1.75,3.5,5.25,7,8.75,10.5,12.25,14,15.75,17.5,19.25,21}<br /> {<br /> \draw (\x ,0) -- (\x ,29.65);<br /> };<br />\foreach \y in {0,2.47,4.94,7.41,9.88,12.35,14.83,17.3,19.77,22.24,24.71,27.18,29.65}<br /> {<br /> \draw (0, \y) -- (21, \y);<br /> };<br />\end{tikzpicture}<br />\end{document}<br /><br /> but this does not work ... how should I correct this ?<br /><br /><br /> Ewan<br /><br /></font></span></p></body></html>