Graphics, Figures & TablesCentering a Table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
isharp2
Posts: 23
Joined: Fri Feb 11, 2011 2:06 am

Centering a Table

Post by isharp2 »

Hi,
This question probably has a really simple answer. i am wondering why centering a table seems to push it off to the right of the page... example:

Code: Select all

\begin{center}
  \begin{tabular*}{1.1\textwidth}{@{\extracolsep{\fill}} c | c | c | c }
      \hline
      INSTITUTION AND LOCATION       & DEGREE  &  MM/YY   &    FIELD OF STUDY    \\
      U of I  &   B.A.      &   05/07   &   \begin{tabular}{@{\extracolsep{\fill}} l} Biochemistry \end{tabular}      \\
      University of Illinois at Chicago      &   Ph.D.    &   08/11   &   Bioengineering    \\
      \hline
    \end{tabular*}
\end{center}
On a side note, I've noticed the same thing happens with figures as well.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Centering a Table

Post by Stefan Kottwitz »

Hi,

perhaps check if the table is too wide and doesn't fit to the page. This can help then: Centering wide tables or figures.

Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Centering a Table

Post by localghost »

It's no surprise here because you specify the with of the table as 1.1\textwidth. If you do so for your figures, you've got the culprit. If you want to keep that width, Stefan has given the solution.


Thorsten
Post Reply