Graphics, Figures & TablesExtended vertical Lines in Table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
gloednieuw
Posts: 3
Joined: Mon May 27, 2013 7:37 pm

Extended vertical Lines in Table

Post by gloednieuw »

Hi,

Since a few days I've been trying to write my thesis in Latex. However, when inserting tables, the vertical lines of my table extend beyond the table through my text. How do I resolve this?

This is the code for a typical table:

Code: Select all

\begin{tabular}{|rrl||c|c|c|c|c|c|c|}\hline
\multicolumn{3}{|c||}{[540]} & {\sc */500/} & {\sc */540/} & {\sc */560/} & {\sc */520/} & {\sc *W(20)} & {\sc *W(40)} & {\sc *W(60)} \\ \hline\hline
\LCC
& &  & &\lightgray &\lightgray &\lightgray &\lightgray &\lightgray &\lightgray \\ \hline
  &  & {/500/} & *! &  &  &  &  & * & \\ \hline
\ECC
\LCC
& &  &  &  & &\lightgray &\lightgray &\lightgray &\lightgray \\ \hline
  & \ding{43} & {/520/} &  &  &  & * & * &  & \\ \hline
\ECC
\LCC
& &  &  & &\lightgray &\lightgray &\lightgray &\lightgray &\lightgray \\ \hline
  &  & {/540/} &  & *! &  &  &  &  & \\ \hline
\ECC
\LCC
& &  &  &  & &\lightgray &\lightgray &\lightgray &\lightgray \\ \hline
  &  & {/560/} &  &  & *! &  & * &  & \\ \hline
\ECC
\end{tabular}
This is what it looks like.
table-problem.png
table-problem.png (38.14 KiB) Viewed 3757 times
I'm getting pretty desperate, so any help would be greatly appreciated!
Last edited by localghost on Mon May 27, 2013 7:52 pm, edited 1 time in total.

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Extended vertical Lines in Table

Post by Johannes_B »

Please do always prepare a self-contained minimal working example. It is easier for us to help you.

For example, I don't know, where the command \ECC and similar are from.

You also might want to take a look at the booktabs package.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
gloednieuw
Posts: 3
Joined: Mon May 27, 2013 7:37 pm

Re: Extended vertical Lines in Table

Post by gloednieuw »

Thanks for your advice. I decided to remove all packages and then add them one by one, which showed that I could easily get rid of a few. Even better, the lining is now back to normal! Thanks again, and at least now I know how to solve things myself.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Extended vertical Lines in Table

Post by Johannes_B »

Just for the other users comming here by a google link:
You could post your anwser showing everybody how to do it. It's not necesary but really appreciated.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply