Spacing at the top and bottom of tabular

Dan topsquarks at gmail.com
Wed Feb 8 00:51:39 UTC 2023


The code is working just fine, but I need to add something to give a little
more space at the top and bottom of a table.

Here's the code:
\begin{tabular}{|c|c|}
\hline
\text{Example}  &  \text{Code} \\
\hline
x = \dfrac{-b\pm\sqrt{b^{2}-4ac}}{2a}  &  \textrm{ x = \backslash frac\{-b
\backslash pm \backslash sqrt\{ b \hat{} 2 - 4ac\} \}\{2a\} } \\
\hline
\end{tabular}

The square root at the top of the box is crushed up into the \hline and the
2a at the bottom is similar.  I can find all sorts of things to do to
change horizontal spacing, and I even found a method to add extra vertical
space to the rows (\arraystretch), but it doesn't do anything with the very
top and bottom.

A have attached a full file.

Thanks!
-Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20230207/93547a53/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Sample.lyx
Type: application/lyx
Size: 2550 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20230207/93547a53/attachment-0001.bin>


More information about the lyx-users mailing list