S.O.S. Mathematics CyberBoard

Your Resource for mathematics help on the web!
It is currently Mon, 20 May 2013 05:20:36 UTC

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Center environment does not work for tables
PostPosted: Tue, 18 Nov 2008 21:13:38 UTC 
Offline
S.O.S. Oldtimer

Joined: Sun, 25 Dec 2005 17:02:45 UTC
Posts: 283
Hi

I have designed a table in latex, in tabular environment, but there is a problem with its placing. I have place the table in a \begin{center}\end{center}, but to my surprise that environment does not place the table in the center of my page and the table overflows from right although there exist plenty of space in the left.
How can I resolve this problem?

Thanks for your help.


Top
 Profile  
 
 Post subject:
PostPosted: Tue, 18 Nov 2008 21:40:22 UTC 
Offline
Member of the 'S.O.S. Math' Hall of Fame
User avatar

Joined: Wed, 1 Oct 2003 04:45:43 UTC
Posts: 9632
Can you provide a code sample which replicates the problem?


Top
 Profile  
 
 Post subject:
PostPosted: Wed, 19 Nov 2008 09:19:26 UTC 
Offline
S.O.S. Oldtimer

Joined: Sun, 25 Dec 2005 17:02:45 UTC
Posts: 283
Ok. here it is.

Code:
\documentclass{article}
\usepackage{supertabular}
\begin{document}
\begin{center}
\begin{supertabular}{| c | c|}\hline
        \textbf{*} & \textbf{**}\\\hline
        A & B\\\cline{2-2}
C&D\\\cline{2-2}
&E, F\\\hline
\end{supertabular}
\end{center}
\end{document}


Last edited by Valentin on Wed, 19 Nov 2008 13:22:36 UTC, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed, 19 Nov 2008 11:05:43 UTC 
Offline
Member of the 'S.O.S. Math' Hall of Fame
User avatar

Joined: Wed, 1 Oct 2003 04:45:43 UTC
Posts: 9632
The problem is that the table is too wide for the document. Try narrowing the margins. For example, you can put in the preamble:

Code:
\usepackage[margin=1in]{geometry}

This decreases all margins (top, bottom, left, right) to 1 inch.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Contact Us | S.O.S. Mathematics Homepage
Privacy Statement | Search the "old" CyberBoard

users online during the last hour
Powered by phpBB © 2001, 2005-2011 phpBB Group.
Copyright © 1999-2013 MathMedics, LLC. All rights reserved.
Math Medics, LLC. - P.O. Box 12395 - El Paso TX 79913 - USA