[OS X TeX] Several page layouts in the same document

Ewan Delanoy ewan.delanoy at gmx.fr
Wed Jun 9 00:40:58 EDT 2010


Victor Ivrii said : 
>So you need define matching page style


To be more specific :

 if I write

\documentclass[a4paper]{article}
\usepackage[margin=0in]{geometry}
\usepackage{tikz}

\begin{document}
\noindent \begin{tikzpicture}[x=1cm,y=1cm]
\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}
 {
 \draw (\x ,0) -- (\x ,29.65);
 };
\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}
 {
 \draw (0, \y) -- (21, \y);
 };
\end{tikzpicture}
\end{document}

 I get a nice paving of the first page.

 Now I want to do this without invoking \usepackage[margin=0in]{geometry},
I want to define the matching page style. I tried the following :


\documentclass[a4paper]{article}
\usepackage{tikz}

\begin{document}
\thispagestyle{\setlength{\textwidth}{21cm}}
\thispagestyle{\setlength{\textheight}{29.65cm}}
\noindent \begin{tikzpicture}[x=1cm,y=1cm]
\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}
 {
 \draw (\x ,0) -- (\x ,29.65);
 };
\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}
 {
 \draw (0, \y) -- (21, \y);
 };
\end{tikzpicture}
\end{document}

 but this does not work ... how should I correct this ?


 Ewan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20100609/aff5718c/attachment.html>


More information about the MacOSX-TeX mailing list