Text FormattingLyX: How to add space between the top and bottom of tables?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
topsquark
Posts: 71
Joined: Wed Oct 05, 2022 10:30 pm

LyX: How to add space between the top and bottom of tables?

Post by topsquark »

The code works fine (see below) but when I make the PDF the table lines are too close on the top and bottom. I can use arraystretch to give more space between cells but this doesn't work for the top and bottom. Here's the code:

Code: Select all

\begin{tabular}{|c|c|}
   \hline
   Example & Code \\
   \hline
   $f: A \to B : f(a) \mapsto a^{3}$ & \textrm{ $f: A \backslash to B : f(a) \backslash mapsto a \hat{} 3 $} \\
   \hline \hline
   $\lim_{h \to 0} \frac{f(x+h)-f(x)}{h}$ & \textrm{$ \backslash lim \_ \{ h \backslash to 0 \} \backslash frac \{ f(x + h) - f(x) 
 \} \{ h \} $}  \\
   \hline
\end{tabular}
Again, the code works fine. I just don't know how to pad this out.

Thanks!

-Dan

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply