Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How can you set the vertical alignment of table cells in LyX? The right-click menu shows three choices ("Top", "Middle", "Bottom") but none of them is enabled, they are all greyed out.

share|improve this question
    
You need to load the array package (no idea how that translates to lyx, sorry) –  David Carlisle Jan 25 '13 at 11:45
1  
This corresponds to p, m or b type columns, respectively, which means you have to assign a width to the columns. Once you do so you should be able to set the vertical alignment as well. (LyX should load array itself). –  cgnieder Jan 25 '13 at 12:26

1 Answer 1

up vote 6 down vote accepted

Vertical alignment of cells in LyX is TeXnically based on the p, m, or b column types offered by the array package. However, for these types you also have to specify a width.

In LyX, just open the "Table Settings" window. After you have specified a width, the "Vertical alignment in row" combo box becomes enabled.

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.