I have solved this in the past by modifying the value of \arraystretch
you can do this by adding to your source :
{\renewcommand{\arraystretch}{1.2} %<- modify value to suit your needs
\begin{tabular}{|c|c|}
...
\end{tabular}
}
Edit:
Actually having researched this a bit more it seems that having equations in the cells has unexpected behaviour, where the space is increase disproportionally at the top (value set to 3 to start getting the space at the bottom):
more recently I have started to use the tabu
package to replace all tables (from tabular
to tabularx
to longtable
). It also provide a few more controls. in this case the \tabulinesep
has a much more appropirate effect on the results:
\documentclass[preview]{standalone}
\usepackage{tabu}
\begin{document}
{\tabulinesep=1.2mm
\begin{tabu} {|c|c|}
\hline
Cylindrical & $\displaystyle{{1 \over \rho}{\partial \over \partial\rho}\left(\rho {\partial f \over \partial \rho}\right)
+ {1 \over \rho^2}{\partial^2 f \over \partial \phi^2} + {\partial^2 f \over \partial z^2}}$\\\hline
Spherical & $\displaystyle{{1 \over r^2}{\partial \over \partial r}\!\left(r^2 {\partial f \over \partial r}\right)
\!+\!{1 \over r^2\!\sin\theta}{\partial \over \partial \theta}\!\left(\sin\theta {\partial f \over \partial \theta}\right)
\!+\!{1 \over r^2\!\sin^2\theta}{\partial^2 f \over \partial \phi^2}}$\\\hline
\end{tabu}}
\end{document}
which produces the following result:
table
encloses its contents in a box which will not break across pages, but which can "float" to a convenient location. longtable
gets rid of this box, is able to break across pages, and does not float. Hence enclosing longtable
inside a table
defeats the entire purpose. Remove table
environment.
longtable
provides a \caption
facility and hence you can add a \label
too.
A sample
\documentclass{article}
\usepackage{longtable}
\begin{document}
\begin{longtable}{|p{6.5cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|}
\caption[An optional table caption]{A long table\label{tab:list}}\\
\hline
Name & Company & Catalog Number & Comments \\ \hline
Small DNA FRAG Extract Kit-100PR & VWR & 97060-558 & \\ \hline
Acrylamide 40\% solution 500 mL & VWR & 97064-522 & \\ \hline
Bis-acrylamide 2\% (w/v) solution 500 mL & VWR & 97063-948 & \\ \hline
GeneRuler 100 bp DNA Ladder, 100-1,000 bp & Fermentas & SM0241 & \\ \hline
Mini Vertical PAGE System & VWR & 89032-300 & \\ \hline
\end{longtable}
A long table~\ref{tab:list} is here.
\end{document}
For more details read the longtable
documentation (available if you run texdoc longtable
from command prompt/terminal or from your tex editor's help menu.
Here is an improved version with better widths
\documentclass{article}
\usepackage{longtable,array,showframe} %% Remove showframe
\begin{document}
\begin{longtable}{|>{\raggedright}m{0.4\textwidth}|
>{\raggedright}p{0.13\textwidth}|
>{\raggedright}p{0.15\textwidth}|
>{\raggedright\arraybackslash}p{0.13\textwidth}|}
\caption[An optional table caption]{A long table\label{tab:list}}\\
\hline
Name & Company & Catalog Number & Comments \\ \hline
Small DNA FRAG Extract Kit-100PR & VWR & 97060-558 & \\ \hline
Acrylamide 40\% solution 500 mL & VWR & 97064-522 & \\ \hline
Bis-acrylamide 2\% (w/v) solution 500 mL & VWR & 97063-948 & \\ \hline
GeneRuler 100 bp DNA Ladder, 100-1,000 bp & Fermentas & SM0241 & \\ \hline
Mini Vertical PAGE System & VWR & 89032-300 & \\ \hline
\end{longtable}
A long table~\ref{tab:list} is here.
\end{document}
And this is obligatory booktabs
version:
\documentclass{article}
\usepackage{longtable,array,booktabs,showframe}
\begin{document}
\begin{longtable}{>{\raggedright}m{0.4\textwidth}
>{\raggedright}p{0.13\textwidth}
>{\raggedright}p{0.15\textwidth}
>{\raggedright\arraybackslash}p{0.13\textwidth}}
\caption[An optional table caption]{A long table\label{tab:list}}\\
\toprule
Name & Company & Catalog Number & Comments \\ \midrule
Small DNA FRAG Extract Kit-100PR & VWR & 97060-558 & \\
Acrylamide 40\% solution 500 mL & VWR & 97064-522 & \\
Bis-acrylamide 2\% (w/v) solution 500 mL & VWR & 97063-948 & \\
GeneRuler 100 bp DNA Ladder, 100-1,000 bp & Fermentas & SM0241 & \\
Mini Vertical PAGE System & VWR & 89032-300 & \\ \bottomrule
\end{longtable}
A long table~\ref{tab:list} is here.
\end{document}
Best Answer
Equations need to be in math mode, so you should surround the equations with dollar (
$
) signs: