<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:windowtext;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span lang="EN-US" style="color:windowtext">From:</span></b><span lang="EN-US" style="color:windowtext"> Paul A. Rubin <parubin73@gmail.com>
<br>
<b>Sent:</b> Sunday, January 26, 2020 16:11<br>
<b>To:</b> Bernt Lie <Bernt.Lie@usn.no>; lyx-users@lists.lyx.org<br>
<b>Subject:</b> Re: Table row alignment?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 1/26/20 9:49 AM, Bernt Lie wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:windowtext;mso-fareast-language:EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext;mso-fareast-language:EN-US"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span lang="EN-US" style="color:windowtext">From:</span></b><span lang="EN-US" style="color:windowtext"> lyx-users
<a href="mailto:lyx-users-bounces@lists.lyx.org"><lyx-users-bounces@lists.lyx.org></a>
<b>On Behalf Of </b>Paul A. Rubin<br>
<b>Sent:</b> Saturday, January 25, 2020 21:49<br>
<b>To:</b> <a href="mailto:lyx-users@lists.lyx.org">lyx-users@lists.lyx.org</a><br>
<b>Subject:</b> Re: Table row alignment?</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<p class="MsoNormal">On 1/21/20 3:58 AM, Bernt Lie wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext">I use LyX 2.3.3 on 64bit Windows 10, latest version.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext">I have a floating table with 3 columns. In the first column, I have a figure, in the second column I need to rows of equations, and in the third column, I have a text line:</span><o:p></o:p></p>
<p class="MsoNormal"><img border="0" width="647" height="263" style="width:6.7395in;height:2.7395in" id="Picture_x0020_1" src="cid:image001.jpg@01D5D465.FA549410"><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext">To get two rows of equations in a sigle table cell, I inserted a 2x1 table within the cell, and inserted a single-line equation in each sub cell. [If I instead insert a multiline equation in the
 cell, LyX preview crashes.]</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext">My main problem is that I find it “ugly” that the three columns in the row (figure, two lines of equations, and text line] don’t align up well, horizontally.  I have tried to choose the row containing
 the cylinder, the equations (Jz = ½*m..., Jx = Jy = ...), and the text (“Hollow cylinder...”), and select, say, top alignment, or centered alignment, but those icons/choices are disabled.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext">Is there a way to control the horizontal alignment?</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext">Thanks.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext">-B</span><o:p></o:p></p>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
</blockquote>
<p class="MsoNormal" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in">
Without a MWE on which to experiment, it's hard to be certain. A couple of possibilities come to mind. One is to replace the 2x1 inner table with a multiline math formula (such as a "gathered" environment). Another is to click in a cell in the first column¸
 click Edit > Table Settings (or right click and do the equivalent), set a fixed width for the first column and a vertical alignment of "Middle" in the column settings dialog.<br>
<br>
Paul<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US" style="color:windowtext">--</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US" style="color:windowtext">I have attached a minimal LyX document with the *.svg file that I use. In the figure path of LyX, I have put the figure in a subdirectory “figs” – which can easily
 be changed.</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US" style="color:windowtext">I’ve tested a bit more, and it is the insertion of the *<b>figure</b>* that causes the problem. My “trick” of getting multiline math by inserting a table within a
 table cell works fine.</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US" style="color:windowtext">So: is it possible to vertically center the figure at the insertion point?</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US" style="color:windowtext"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US" style="color:windowtext">-B</span><o:p></o:p></p>
</blockquote>
<p class="MsoNormal" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in">
What I proposed above works. Put the cursor in the "Geometry" cell, right click, select Settings..., and in the Column settings section of the Table Settings tab set a fixed width for the column. That enables the Vertical alignment control, which you set to
 Middle. You might want to horizontally center as well; that's up to you.<br>
I've attached a modified version of the MWE.<br>
<br>
Paul<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US" style="color:windowtext">Thanks! I get it! I need to *<b>specify width</b>* in order to *<b>enable vertical alignment</b>* -- at least for cells with graphics.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US" style="color:windowtext">-B<o:p></o:p></span></p>
</div>
</body>
</html>