Graphics, Figures & TablesTable Border Gap

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
aleph_0
Posts: 3
Joined: Thu Sep 15, 2011 9:08 pm

Table Border Gap

Post by aleph_0 »

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

\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}

Recommended reading 2024:

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

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

Post Reply