Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

centering diagrams on the page

0 views
Skip to first unread message

Björn Gohla

unread,
Jul 22, 2008, 1:08:47 PM7/22/08
to
hi,

i have numerous xy-pic diagrams that are much wider than \textwidth. if they
are on an odd page they reach onto the outer margin, which is ok. on even
pages however they will often extend beyond the right edge of the page. i
played with various paramters, yielding no consistent result.

so my question is, is there an easy way of making these diagrams (stuck in
equation evironments) either line up with the inner edge of the text body,
or or have them centered horizontally on the page?

--
regards,
bjoern gohla

Werner Grundlingh

unread,
Jul 22, 2008, 3:13:44 PM7/22/08
to

Have you tried
\makebox[\textwidth][r]{\includegraphics{...}}%
so that you force the width of the box to be that of \textwidth and is
right-aligned so that it may stick over the left side of the page (on
an even page, of course).

Werner

Will Robertson

unread,
Jul 22, 2008, 6:47:08 PM7/22/08
to
On 2008-07-23 02:38:47 +0930, Björn Gohla <bgo...@math.uni-bremen.de> said:

> so my question is, is there an easy way of making these diagrams (stuck in
> equation evironments) either line up with the inner edge of the text body,
> or or have them centered horizontally on the page?

You can use the changepage package (which is also part of the memoir
class) to define regions with different margins. Examples and usage are
given in the package .sty file.

The memoir class gives an example (and some code) of how to calculate
the parameters to pass to the adjustwidth environment to achieve
centering with respect to the page boundaries.

Hope this helps,
Will

Björn Gohla

unread,
Jul 23, 2008, 11:07:41 AM7/23/08
to
Will Robertson wrote:
[...]

> You can use the changepage package (which is also part of the memoir
> class) to define regions with different margins. Examples and usage are
> given in the package .sty file.
>
> The memoir class gives an example (and some code) of how to calculate
> the parameters to pass to the adjustwidth environment to achieve
> centering with respect to the page boundaries.
[...]

looks good, thanks,
bjoern

0 new messages