Graphics, Figures & TablesTable with too full boxes in spite of conditions

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
revellix
Posts: 3
Joined: Sun Nov 25, 2012 4:12 pm

Table with too full boxes in spite of conditions

Post by revellix »

Hi Everyone,

I am new to this forum. I didnt find any solution here too. I want to set the width of a table with a condition but I always get a too full boxes warning. See my example below. I already included the array package.

Can anyone help ?

Code: Select all

\begin{table}[ht]
	\centering
	\caption{Gegenüberstellung der Roboter}\label{Robspez}
         \vspace*{-3mm}	
	           \begin{tabular}{c|p{2cm}|c}
	            hallo & hallo & hallo
	            \end{tabular}
	\vspace*{-3mm}
\end{table}
Image

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
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Table with too full boxes in spite of conditions

Post by cgnieder »

Hi revellix,

Welcome to the LaTeX community!

You need to give us more information, preferably in form of a Infominimal working example. Your code alone gives a different output than in your picture:

Code: Select all

\documentclass{article}
\usepackage{array}

\begin{document}

\begin{table}[ht]
  \centering
  \caption{Gegenüberstellung der Roboter}\label{Robspez}
  \vspace*{-3mm}
  \begin{tabular}{c|p{2cm}|c}
   hallo & hallo & hallo
  \end{tabular}
  \vspace*{-3mm}
\end{table}

\end{document}
tabelle.png
tabelle.png (5.69 KiB) Viewed 2498 times
It is rather unclear what you want to achieve!

Regards
site moderator & package author
revellix
Posts: 3
Joined: Sun Nov 25, 2012 4:12 pm

Re: Table with too full boxes in spite of conditions

Post by revellix »

Hi thx for your reply.


Actually this is the problem. My picture shows the interpreted code. And it should be different. The second coloumn should be defined to 2cm. What I get instead is what you can see in the picture. The second coloumn seems to grow infinite.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Table with too full boxes in spite of conditions

Post by cgnieder »

Again: please provide us with a complete Infominimal working example that shows the undesired behaviour. Otherwise everything will be guessing at best instead of any real help.

Regards
site moderator & package author
revellix
Posts: 3
Joined: Sun Nov 25, 2012 4:12 pm

Re: Table with too full boxes in spite of conditions

Post by revellix »

I solved it exluding the package {pdfsync}.

Thank you anyway, next time I will provide a full example.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Table with too full boxes in spite of conditions

Post by localghost »

Post Reply