LyX ⇒ How to add height to a table row?
How to add height to a table row?
Currently im doing some big maths equations inside a table.
The problem is that the row lines are way too close to the text. Is there any way to increase the row height? (Adding some padding to the top and bottom of each row).
Cheers.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10329
- Joined: Mon Mar 10, 2008 9:44 pm
How to add height to a table row?
welcome to the board!
You could redefine \arraystretch, the factor for the default distance of the rows, for example:
Code: Select all
\renewcommand{\arraystretch}{1.5}
Or use \extrarowheight, \strut or \rule etc. like described here: Spacing lines in tables.
Stefan
Re: How to add height to a table row?
Thanks your your reply. Im really noob with code and was wondering where do I paste this code?
Im using lyx 1.6.2 btw.
Cheers.
- Stefan Kottwitz
- Site Admin
- Posts: 10329
- Joined: Mon Mar 10, 2008 9:44 pm
How to add height to a table row?
Code: Select all
\usepackage{array}
Code: Select all
\setlength{\extrarowheight}{length}
Stefan
Re: How to add height to a table row?
The only problem is that it only adds height to the top padding. Is it possible to add right to both above and below the text?
Cheers.
- Stefan Kottwitz
- Site Admin
- Posts: 10329
- Joined: Mon Mar 10, 2008 9:44 pm
How to add height to a table row?
Code: Select all
\renewcommand{\arraystretch}{1.5}
Stefan
Re: How to add height to a table row?
Thanks for your help
