I tried the following both in Texmaker and Gummi (I'm on Ubuntu 11.10) but just get errors and no change in the margins of the PDF.
Code: Select all
\documentclass[11pt]{article}
\usepackage{geometry}
\geometry{hmargin={3cm,1.5cm},vmargin={2cm,3cm}}
\begin{document}
\noindent This is some text here on this line.\\
\newpage
\newgeometry{hmargin={6cm,6cm},vmargin={6cm,6cm}}
\noindent This is more text with a different page margin. \\
\restoregeometry
\end{document}
When I try to build it with Latex in Texmaker I get:
Code: Select all
Error line 7 ! Undefined control sequence.
Error line 9 ! Undefined control sequence.
BadBox line 5 Underfull \hbox (badness 10000) in paragraph at lines 5--6
BadBox line 7 Underfull \hbox (badness 10000) in paragraph at lines 7--10
Then I use:
Dvi->ps
ps->pdf
The second page of the pdf shows the following:
hmargin=6cm,6cm,vmargin=6cm,6cm This is more text with a different page margin.