tags:

views:

1180

answers:

4

I have many types of diagrams in my whitepaper about databases. I use at the moment horizontal pages to make pictures readable.

I would like to know how you can remove LaTeX margins from pages where there are pictures.

How can you have no margins for pictures in LaTeX?

+2  A: 

Either diddle the various variables directly or use the geometry package.

LaTeX uses a lot of variable to describe the page, so setting them directly is a hassle, I really reccomend using geometry.

And remember there is a silent 1 inch margin. Moreover how close to the edge of the page you can actually print is dependent on you printer. Most won't actually let you get to the edge on any side.

dmckee
The geometry package finally solves the problem. - Thank you!
Masi
geometry only works for the whole document, right?
Will Robertson
@Will: Not positive, but I think so. This is the nth question related to another of Masi's ambitious projects. I think that he really only want to have a bunch of full page pictures.
dmckee
+2  A: 

You can specify the width of the figure to be bigger than \textwidth.

I think includegraphics is the non-clipping version, (as opposed to includegraphics*)

I assume this would work as long as the vertical size would fit on the page.

Otherwise I'd look on CTAN for packages which allow you to change the margins on the fly.

Juan
Though it will throw overfull hbox warning all over the place.
dmckee
+3  A: 

I did this exact thing before. Here's the code:

\newenvironment{changemargin}{%
 \begin{list}{}{%
\setlength{\textwidth}{\paperwidth}
\setlength{\textheight}{\paperheight}
%\setlength{\oddsidemargin}{-1in}
%\setlength{\evensidemargin}{-1in}
\setlength{\topmargin}{-1in}
\setlength{\topsep}{-1in}%
   \setlength{\leftmargin}{-1.5in}%
   \setlength{\rightmargin}{-1.5in}%
   \setlength{\listparindent}{\parindent}%
   \setlength{\itemindent}{\parindent}%
   \setlength{\parsep}{\parskip}%
 }%
\centering%
\item[]%
}{\end{list}}

On the page in question, I also used \clearpage, \pagestyle{empty} and enlargethispage{...}.

Paul Biggar
+2  A: 

The changepage package can be used to locally change the size of the area that content is put in. Documentation within the .sty file until I get around to writing a real manual.

Will Robertson