tags:

views:

71

answers:

5

I would like to reduce text width while keeping the right and left margins at their current size. The header should span over all available space (delimited by margins), but the main text should be narrower. My main goal is to have different widths for the header/footer and for the body.

How can I achieve this?

A: 

Is it related to http://stackoverflow.com/questions/1670463/latex-change-margins-of-only-a-few-pages?

Roland Illig
Not quite. I'm trying to set a document wide text margin.
ssn
A: 

Use the geometry package.

lhf
How? Can you post an example?
ssn
Setting left or right properties in geometry also changes the header / footer.
ssn
A: 

Is this what you want:?

\documentclass{article}

\def\lorem{Lorem ipsum dolor sit amet }
\def\blind{\lorem\lorem\lorem\lorem\lorem}
\def\bblind{\blind\blind\blind\blind\blind}

\begin{document}

\bblind

% Hand-made manipulation of the proper margins
{
  \addtolength{\leftskip}{1in}
  \addtolength{\rightskip}{1in}
  \bblind

}

\bblind

% There is also a standard LaTeX way to do this:
\begin{quote}
\bblind
\end{quote}

\bblind

\end{document}

Be sure to include a paragraph ending in the curly braces, or the margin will not change at all.

Roland Illig
A: 

use a minipage and declare the width

Mica
I want to use this document wide. Not practical to define minipages for all document pages.
ssn
ah. I think i posed a question like this to the texhax mailing list, the answer i got was to set the body text margins how you want them, then use sectsty and define a negative horizontal value that will pull all your headers out to where you want them. As for the images, I don't know, but I'd imagine that it would be much harder. Plus having your images stick out from your body block looks terrible in my opinion.
Mica
Yes, the images can have the text's width (gonna edit the original question). I am gonna look for that sectsty package.
ssn
A: 

It seems that simply adding to the preamble of the document:

\textwidth=5.5in

Does what I was looking for.

ssn