Featured Book

LaTeX Beginners Guide

Who is online

In total there are 12 users online :: 0 registered, 0 hidden and 12 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 12 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

Table Border Gap

Add tags Information and discussion about graphics, figures & tables in LaTeX documents.

Table Border Gap

Postby aleph_0 on Sat Sep 24th, 2011

I'm trying to make a relatively complex table and I keep getting this problem, where the borders on the side have a gap in them where they meet the top border. I've had this problem before and always have it when I try to adjust a table using vspace. I'd be happy to avoid using vspace but I don't know how else to put white space between the tables inside of tables. Here's the problem code:

Code: Select all  •  Open in writeLaTeX
\documentclass[12pt, letterpaper]{article}
        \usepackage[table]{xcolor}
\begin{document}

{\renewcommand{\arraystretch}{2}
        \begin{tabular}{| m{10cm} | m{4cm} |} \hline \\ \vspace{-.7cm}
                {\renewcommand{\arraystretch}{1} \begin{tabular}{| p{9.7cm} |} \hline \vspace{0cm}
                        {\renewcommand{\arraystretch}{1.5} \begin{tabular}{| p{9.3cm} |} \hline
7. $\Big(\exists y\Big)\Big(Ip \land Iy \land a = \frac{p}{y}\Big)$ \vspace{0cm} \\ \hline
                        \end{tabular}} \vspace{0cm} \\ \hline
                \end{tabular}} \vspace{0cm} &
                \vspace{-1cm} {\renewcommand{\arraystretch}{1} \begin{tabular}{| p{3.7cm} |} \hline \vspace{0cm}
                        {\renewcommand{\arraystretch}{1.5} \begin{tabular}{| p{3.4cm} |} \hline
EI 7 \\ \hline
                        \end{tabular}} \vspace{0cm} \\ \hline
                \end{tabular}} \\ \hline
        \end{tabular}
\end{document
}
aleph_0
 
Posts: 3
Joined: Thu Sep 15th, 2011

Return to Graphics, Figures & Tables

Who is online

Users browsing this forum: No registered users and 12 guests