TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the following flow chart but it appears uncentered. How can I center it?


\psovalbox[fillstyle=solid]{Begin} &
\psframebox[]{ChIP-seq} &
\psframebox[]{align to genome} &
\psdblframebox[framearc=.4,fillstyle=solid]{Find peaks} &
\psdblframebox[framearc=.4,fillstyle=solid]{Thresholding} &
\psdblframebox[framearc=.4,fillstyle=solid]{Analysis} &

share|improve this question
The \newline is in this line of your code: \psframebox[]{stop}\\`. Just remove the \\`. – Stefan Kottwitz Aug 25 '10 at 22:40
My bad. Thanks @Stefan. – denilw Aug 26 '10 at 16:29
up vote 7 down vote accepted

As frabjous already mentioned, the image is just too big and either image or margins require adjustment.

But there's trick how you can center oversized images: use \makebox. This way even your wide image gets properly centered:

share|improve this answer

As near as I can tell the only reason it isn't centered as it is that it is too large to fit within the margins. You have several options:

  • Scale the image down (sent the fonts smaller and the dimensions as well)
  • Change the paper size or margins with something like the geometry package
  • Put the page or the document as a whole in landscape mode

It is difficult to tell which of these options is the best without knowing more about the context.

share|improve this answer
Thank you for the answer, it was informative +1. I would prefer to center the image anyways through a hack rather than scale down in this case. – denilw Aug 25 '10 at 21:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.