<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 1/26/20 10:31 AM, Bernt Lie wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:AM6PR09MB2310C736D410B3B75F6094AA9C080@AM6PR09MB2310.eurprd09.prod.outlook.com">
      <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]-->
      <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 style="color:windowtext"
                  lang="EN-US">From:</span></b><span
                style="color:windowtext" lang="EN-US"> Paul A. Rubin
                <a class="moz-txt-link-rfc2396E" href="mailto:parubin73@gmail.com"><parubin73@gmail.com></a>
                <br>
                <b>Sent:</b> Sunday, January 26, 2020 16:11<br>
                <b>To:</b> Bernt Lie <a class="moz-txt-link-rfc2396E" href="mailto:Bernt.Lie@usn.no"><Bernt.Lie@usn.no></a>;
                <a class="moz-txt-link-abbreviated" href="mailto:lyx-users@lists.lyx.org">lyx-users@lists.lyx.org</a><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 style="color:windowtext"
                    lang="EN-US">From:</span></b><span
                  style="color:windowtext" lang="EN-US"> lyx-users
                  <a href="mailto:lyx-users-bounces@lists.lyx.org"
                    moz-do-not-send="true"><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"
                    moz-do-not-send="true">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 style="color:windowtext"
                lang="EN-US">I use LyX 2.3.3 on 64bit Windows 10, latest
                version.</span><o:p></o:p></p>
            <p class="MsoNormal"><span style="color:windowtext"
                lang="EN-US"> </span><o:p></o:p></p>
            <p class="MsoNormal"><span style="color:windowtext"
                lang="EN-US">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
                style="width:6.7395in;height:2.7395in"
                id="Picture_x0020_1"
                src="cid:part3.72B8C441.77A5461C@gmail.com" class=""
                border="0" width="647" height="263"><o:p></o:p></p>
            <p class="MsoNormal"><span style="color:windowtext"
                lang="EN-US"> </span><o:p></o:p></p>
            <p class="MsoNormal"><span style="color:windowtext"
                lang="EN-US">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 style="color:windowtext"
                lang="EN-US"> </span><o:p></o:p></p>
            <p class="MsoNormal"><span style="color:windowtext"
                lang="EN-US">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 style="color:windowtext"
                lang="EN-US"> </span><o:p></o:p></p>
            <p class="MsoNormal"><span style="color:windowtext"
                lang="EN-US">Is there a way to control the horizontal
                alignment?</span><o:p></o:p></p>
            <p class="MsoNormal"><span style="color:windowtext"
                lang="EN-US"> </span><o:p></o:p></p>
            <p class="MsoNormal"><span style="color:windowtext"
                lang="EN-US">Thanks.</span><o:p></o:p></p>
            <p class="MsoNormal"><span style="color:windowtext"
                lang="EN-US">-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
              style="color:windowtext" lang="EN-US">--</span><o:p></o:p></p>
          <p class="MsoNormal" style="margin-bottom:12.0pt"><span
              style="color:windowtext" lang="EN-US">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
              style="color:windowtext" lang="EN-US">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
              style="color:windowtext" lang="EN-US">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
              style="color:windowtext" lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal" style="margin-bottom:12.0pt"><span
              style="color:windowtext" lang="EN-US">-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
            style="color:windowtext" lang="EN-US">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
            style="color:windowtext" lang="EN-US">-B<o:p></o:p></span></p>
      </div>
    </blockquote>
    That's true for any cell content, not just for graphics. To set a
    vertical alignment in a column, you first have to fix the column
    width.<br>
    <br>
    Paul<br>
    <br>
    <br>
  </body>
</html>