LyX ⇒ How to add height to a table row?
How to add height to a table row?
Hi,
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.
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.
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
How to add height to a table row?
Hi redda2,
welcome to the board!
You could redefine \arraystretch, the factor for the default distance of the rows, for example:
Its default value is 1.
Or use \extrarowheight, \strut or \rule etc. like described here: Spacing lines in tables.
Stefan
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
LaTeX.org admin
Re: How to add height to a table row?
Hi,
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.
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: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
How to add height to a table row?
Insert this into the document preamble:
Later in the document, right before the tabular/table (inside a table environment) you could insert an ERT field:
This would increase the height of all rows of that table. For the length you could insert a value like 10pt, 1ex etc. If you want to adjust only certain rows it could be done another way.
Stefan
Code: Select all
\usepackage{array}
Code: Select all
\setlength{\extrarowheight}{length}
Stefan
LaTeX.org admin
Re: How to add height to a table row?
Hey Thanks it works!
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.
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: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
How to add height to a table row?
Try the effect of
instead of redefining \extrarowheight, at the same place.
Stefan
Code: Select all
\renewcommand{\arraystretch}{1.5}
Stefan
LaTeX.org admin
Re: How to add height to a table row?
Sweet.
Thanks for your help
Thanks for your help
