LaTeX forum ⇒ Graphics, Figures & TablesTable Border Gap

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

Table Border Gap

Postby aleph_0 » Sat Sep 24, 2011 4:43 am

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:

  1. \documentclass[12pt, letterpaper]{article}
  2. \usepackage[table]{xcolor}
  3. \begin{document}
  4.  
  5. {\renewcommand{\arraystretch}{2}
  6. \begin{tabular}{| m{10cm} | m{4cm} |} \hline \\ \vspace{-.7cm}
  7. {\renewcommand{\arraystretch}{1} \begin{tabular}{| p{9.7cm} |} \hline \vspace{0cm}
  8. {\renewcommand{\arraystretch}{1.5} \begin{tabular}{| p{9.3cm} |} \hline
  9. 7. $\Big(\exists y\Big)\Big(Ip \land Iy \land a = \frac{p}{y}\Big)$ \vspace{0cm} \\ \hline
  10. \end{tabular}} \vspace{0cm} \\ \hline
  11. \end{tabular}} \vspace{0cm} &
  12. \vspace{-1cm} {\renewcommand{\arraystretch}{1} \begin{tabular}{| p{3.7cm} |} \hline \vspace{0cm}
  13. {\renewcommand{\arraystretch}{1.5} \begin{tabular}{| p{3.4cm} |} \hline
  14. EI 7 \\ \hline
  15. \end{tabular}} \vspace{0cm} \\ \hline
  16. \end{tabular}} \\ \hline
  17. \end{tabular}
  18. \end{document}

Link:
BBcode:
HTML:
Hide post links
Show post links

Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests