Possible Duplicate:
Change paper size in mid-document
How can I use default
\documentclass[a4paper]
styles in Title page, index pages, header and footer - but the text itself as if I were using
\documentclass[a4paper]
\usepackage[top=2.5cm, bottom=2.5cm, left=1.5cm, right=6cm]{geometry}
The point is - long lines are not convenient to read, while I want to use A4 paper - to include code listings (I can exceed right=6cm manually in verbatim environment). And code listings look better at A4 paper (otherwise I have to cut lines all the time...)
P.S. Actually I get latex from sphinx. But I'm interested in general solutions as well.

Undefined control sequence. l.7 \newgeometry. I'm also interested in specifiying newgeometry inside a single page. Is it possible? – Adobe Aug 16 '12 at 16:20Undefined control sequencewarning here (maybe it's a sphinx issue). Specifying a new geometry within a single page is precisely what the example does: both\newgeometryand\restoregeometrycommands will start a clear page by their very definition (I only added the\clearpagecommands to illustrate it). Please, check if this question is not a duplicate to http://tex.stackexchange.com/questions/6834/change-paper-size-in-mid-document, as suggested by egreg (if so, consider closing this question) – henrique Aug 16 '12 at 21:29udefined newgeometryand found out that I have an outdatedtexliveand in particular - outdatedgeometry(I'm onkubutnu 12.04). I'm now updating it all (using the ppa) - and I think everything will be working after that. – Adobe Aug 17 '12 at 11:56\clearpage. – Adobe Aug 17 '12 at 13:43