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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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 2455 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