Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase the space between two tables in LaTeX?

Tags:

latex

I'm completely new to LaTeX and something I'm wanting to do is eluding me. Below, I have the code for two tables which appear side-by-side (which is what I wanted). But they're very close together, I'd like to have maybe an inch in-between the two tables. How would I achieve that effect?

     \begin{center}
      \begin{tabular}[t]{ c | c }
       $n$ &$f(n)$ \\ \hline
       1 & 6 \\
       2 & 7 \\
       3 & 6 \\
       4 & 7 \\
       5 & 6 \\
      \end{tabular}
      \begin{tabular}[t]{ c | c c c c c}
       $g$ &  6 &  7 &  8 &  9 & 10  \\ \hline
       1   & 10 & 10 & 10 & 10 & 10  \\
       2   &  7 &  8 &  9 & 10 &  6  \\    
       3   &  7 &  7 &  8 &  8 &  9  \\   
       4   &  9 &  8 &  7 &  6 & 10  \\   
       5   &  6 &  6 &  6 &  6 &  6  \\   
      \end{tabular}
     \end{center}
like image 365
Iain Avatar asked Jan 04 '09 16:01

Iain


1 Answers

You could insert \hspace{2em} between the tables. Change the value if you want more or less space.

like image 114
Bob Avatar answered Nov 07 '22 16:11

Bob