First of all: thanks for your quick answer! On Mon, 2002-11-04 at 19:17, Andre Poenitz wrote: > On Mon, Nov 04, 2002 at 07:08:48PM +0100, Víctor Martínez-Moll wrote: > > I'm writing my PhD with Lyx and I need to write some arrays filled with > > formulas an I've found the following problem: when I write two formulas > > with fractions and/or big brackets and subscripts/superscripts in two > > cells placed just one above the other there is no vertical space between > > the two formulas. The problem only occurs in the compiled dvi file, in > > contrast in the lyx screen everything looks great. > > So LyX gets it wrong. > > However, I still like to have a bit more space on screen than in the .dvi > as I believe it makes editing a bit easier for the eyes. > > > I've the same problem when I put formulas inside tables. > > I've searched this topics in the lyx-tips and in the manuals and all > > I've found is a solution for the latter case: > > I should use: > > > > \renewcommand\arraystretch{2.0} > > > > before each table > > You could put it in just once. > > > This solution does not work for the array problem and I think it is not > > very elegant so please, if anyone knows a better solution,again please, > > tell me about it!!! > > What's wrong with \arraystretch?
The problem with \arraystretch is that the formula does not appear centered (vertically) in the cell, so if you want the bottom line of the cell not to contact the bottom of the formula, then you get allot of space in the top. I think I'm not very clear (my English does no allow for more) so may be the best thing is again a little example: #LyX 1.2 created this file. For more info see http://www.lyx.org/ \lyxformat 220 \textclass book \language spanish \inputencoding auto \fontscheme times \graphics default \float_placement !h \paperfontsize 12 \spacing single \papersize a4paper \paperpackage a4 \use_geometry 1 \use_amsmath 1 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 4 \tocdepth 3 \paragraph_separation skip \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \begin_inset ERT status Open \layout Standard \backslash renewcommand \backslash arraystretch{2.0} \end_inset \layout Standard \begin_inset Tabular <lyxtabular version="3" rows="2" columns="1"> <features> <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt"> <row topline="true" bottomline="true"> <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> \begin_inset Text \layout Standard And this is the table issue \end_inset </cell> </row> <row topline="true" bottomline="true"> <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> \begin_inset Text \layout Standard \begin_inset Formula $\frac{1}{E_{22}}=\frac{1}{V_{f}+\frac{1}{2}(1-V_{f})}\left[V_{f}\frac{1}{E_{f}}+\frac{1}{2E_{m}}(1-V_{f})\right]$ \end_inset \end_inset </cell> </row> </lyxtabular> \end_inset \the_end > > Andre' > > -- > Those who desire to give up Freedom in order to gain Security, > will not have, nor do they deserve, either one. (T. Jefferson)