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.
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
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- 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: 10360
- 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: 10360
- 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
