How to squeeze a long equation?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












2















I am writing in IEEEtran two-column environment and has a display formula like this sqrtfrac1^20.111222(0.111222times1.111163+0.066987^2times0.111222)-1=sqrt0.111222=0.111222. Before the first equal sign is a long square root. This square root is just a little bit wider than the column. Is there a way I can squeeze the square root within the column as a first line and put the rest beginning with the "=" as a second line?



enter image description here










share|improve this question



















  • 3





    Can't you write 0.111222 times (1.111163+0.066987^2) ?

    – Ulrike Fischer
    Dec 30 '18 at 19:42











  • I did not notice that, but those are meant to be random numbers, not necessarily the same.

    – nanjun
    Dec 30 '18 at 21:24











  • @nanjun A general solution doesn't exist, it would be better to have a “real world” example.

    – egreg
    Dec 30 '18 at 21:48















2















I am writing in IEEEtran two-column environment and has a display formula like this sqrtfrac1^20.111222(0.111222times1.111163+0.066987^2times0.111222)-1=sqrt0.111222=0.111222. Before the first equal sign is a long square root. This square root is just a little bit wider than the column. Is there a way I can squeeze the square root within the column as a first line and put the rest beginning with the "=" as a second line?



enter image description here










share|improve this question



















  • 3





    Can't you write 0.111222 times (1.111163+0.066987^2) ?

    – Ulrike Fischer
    Dec 30 '18 at 19:42











  • I did not notice that, but those are meant to be random numbers, not necessarily the same.

    – nanjun
    Dec 30 '18 at 21:24











  • @nanjun A general solution doesn't exist, it would be better to have a “real world” example.

    – egreg
    Dec 30 '18 at 21:48













2












2








2








I am writing in IEEEtran two-column environment and has a display formula like this sqrtfrac1^20.111222(0.111222times1.111163+0.066987^2times0.111222)-1=sqrt0.111222=0.111222. Before the first equal sign is a long square root. This square root is just a little bit wider than the column. Is there a way I can squeeze the square root within the column as a first line and put the rest beginning with the "=" as a second line?



enter image description here










share|improve this question
















I am writing in IEEEtran two-column environment and has a display formula like this sqrtfrac1^20.111222(0.111222times1.111163+0.066987^2times0.111222)-1=sqrt0.111222=0.111222. Before the first equal sign is a long square root. This square root is just a little bit wider than the column. Is there a way I can squeeze the square root within the column as a first line and put the rest beginning with the "=" as a second line?



enter image description here







math-mode equations






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 30 '18 at 23:21









Circumscribe

5,0011533




5,0011533










asked Dec 30 '18 at 19:38









nanjunnanjun

13516




13516







  • 3





    Can't you write 0.111222 times (1.111163+0.066987^2) ?

    – Ulrike Fischer
    Dec 30 '18 at 19:42











  • I did not notice that, but those are meant to be random numbers, not necessarily the same.

    – nanjun
    Dec 30 '18 at 21:24











  • @nanjun A general solution doesn't exist, it would be better to have a “real world” example.

    – egreg
    Dec 30 '18 at 21:48












  • 3





    Can't you write 0.111222 times (1.111163+0.066987^2) ?

    – Ulrike Fischer
    Dec 30 '18 at 19:42











  • I did not notice that, but those are meant to be random numbers, not necessarily the same.

    – nanjun
    Dec 30 '18 at 21:24











  • @nanjun A general solution doesn't exist, it would be better to have a “real world” example.

    – egreg
    Dec 30 '18 at 21:48







3




3





Can't you write 0.111222 times (1.111163+0.066987^2) ?

– Ulrike Fischer
Dec 30 '18 at 19:42





Can't you write 0.111222 times (1.111163+0.066987^2) ?

– Ulrike Fischer
Dec 30 '18 at 19:42













I did not notice that, but those are meant to be random numbers, not necessarily the same.

– nanjun
Dec 30 '18 at 21:24





I did not notice that, but those are meant to be random numbers, not necessarily the same.

– nanjun
Dec 30 '18 at 21:24













@nanjun A general solution doesn't exist, it would be better to have a “real world” example.

– egreg
Dec 30 '18 at 21:48





@nanjun A general solution doesn't exist, it would be better to have a “real world” example.

– egreg
Dec 30 '18 at 21:48










5 Answers
5






active

oldest

votes


















2














The answer is yes. Here's an illustration (followed by an explanation).



documentclassIEEEtran

usepackageamsmath

newcommand*squeezespaces[1]% %% <- #1 is a number between 0 and 1
thickmuskip=scalemuskipthickmuskip#1%
medmuskip=scalemuskipmedmuskip#1%
thinmuskip=scalemuskipthinmuskip#1%
nulldelimiterspace=#1nulldelimiterspace
scriptspace=#1scriptspace

newcommand*scalemuskip[2]%
muexpr #1*numexprdimexpr#2ptrelaxrelax/65536relax
%% <- based on https://tex.stackexchange.com/a/198966/156366

begindocument

This is a long equation This is a long equation This is a long equation
This is a long equation This is a long equation This is a long equation
[ %% vv Unaltered vv
sqrtfrac1^20.111222
(0.111222times1.111163+0.066987^2times0.111222)-1
= sqrt0.111222=0.111222
]
This is a long equation This is a long equation This is a long equation
This is a long equation This is a long equation This is a long equation
[ %% vv Squeezed and split vv
beginsplit %% <- split up equation, &'s will be aligned
kern 4em & kern-4em %% <- move anchor right by 4em
mbox$squeezespaces0.5 %% <- reduce whitespace, switch to textstyle
sqrtfrac1^20.111222
(0.111222times1.111163+0.066987^2times0.111222)-1
$
\&
= sqrt0.111222
\& %% <- leave this out if you want
= 0.111222
endsplit
]
This is a long equation This is a long equation This is a long equation
This is a long equation This is a long equation This is a long equation

enddocument


output



I've done the following:



  1. I've used the split environment from amsmath to split up the equation in three lines. You can reduce this to two lines by removing the second \&.


  2. To place the anchor (&) at the right spot, I've inserted a horizontal space in front of it and a negative horizontal space of equal magnitude after it with kern 4em & kern-4em.



  3. The amount of whitespace inserted at several places in an equation is governed by the following paramters: thickmuskip (; and space around e.g. =), medmuskip (: and space around e.g. +), thinmuskip (, and space around e.g. sum and sin), nulldelimiterspace (space around e.g. fractions) and scriptspace (space after sub-/superscripts). I've halved each of these lengths using squeezespaces0.5 (which is defined in the preamble).



    Doing this affects an entire equation and it can't be done inside split, so I've put the square root inside an mbox$<…>$ and used squeezespaces0.5 in the inner math environment. You can replace 0.5 by another number between 0 and 1 if you want.




  4. A side-effect of putting the sqrt in a box is that it is set in textstyle, which also saves space because it makes e.g. fractions smaller. You could also have accomplished this by using tfrac instead of frac or by inserting textstyle right before sqrt (or at the beginning of its first argument).



    If you don't want text style fractions you should use mbox$displaystyle<…>$.







share|improve this answer

























  • This looks great. I like how it could be fine-tuned. I have accepted it. Just a couple of questions. 1. Why the anchor has to be moved before the 1st line while it affects the alignment of the 2nd and 3rd lines? And why an equal amount of negative space is also necessary after the anchor? 2. What does the pair [ and ] do? It seems the code does not work properly without them.

    – nanjun
    Dec 30 '18 at 22:24







  • 1





    1. The & in each line will be aligned, so if you placed the & directly in front of the mbox the leftmost point of the = would line up with the leftmost point of the √. You can think of it like this: I'm first moving the cursor right by 4em, then inserting a & and then moving the cursor left by 4em, so it'll end up back where it started. The net effect is that the & is placed 4em to the right of the start of the √. Inserting kern4em after the & on both the second and third line would have the same effect.

    – Circumscribe
    Dec 30 '18 at 22:35












  • 2. [ is equivalent to beginequation* and ] is equivalent to endequation*.

    – Circumscribe
    Dec 30 '18 at 22:36












  • Just noticed that you changed in the preamble from thickmuskip=#1thickmuskip to thickmuskip=scalemuskipthickmuskip#1, and defined a new command scalemuskip. Can I know what is the additional benefit of this?

    – nanjun
    Jan 3 at 17:57







  • 1





    @nanjun: These skips have a base value and some maximum amount by which they can be stretched and shrunk if necessary (to improve the layout of a paragraph or equation). The old version of squeezespaces effectively removed this stretch/shrink, but the updated one scales it along with the base value. In this case it made no difference because the spaces in a sqrt can't be shrunk (nor can spaces within split or any of the other amsmath environments), but I felt I should do it right.

    – Circumscribe
    Jan 3 at 18:26


















3














For the math expression you provided -- I have no idea how representative it is of the real material in your document -- it suffices to rearrange the position of the denominator in order to make the material before the = symbol fit in a column; then, use an align* environment to split the full expression across two lines.



enter image description here



documentclassIEEEtran
usepackageamsmath % for 'align*' env.

begindocument
hrule % just to illustrate width of column
beginalign*
&sqrtfrac1^2(0.111222times1.111163
+0.066987^2times0.111222)0.111222-1\
&quad=sqrt0.111222=0.111222 % place remaining material on 2nd line
endalign*
enddocument





share|improve this answer






























    3














    documentclassIEEEtran
    usepackageamsmath
    begindocument

    hrule

    beginalign*
    &beginaligned[t]
    Bigl[frac1^20.111222(0.111222&times1.111163 \
    &+ 0.066987^2times0.111222)-1Bigr]^frac12
    endaligned\
    &= sqrt0.111222 \
    &= 0.111222
    endalign*

    hrule

    enddocument


    enter image description here



    Another option is to use 4 decimal-digits numbers (this is quite a standard in some software like MATLAB) unless these extra digits are very important.



    beginalign*
    &sqrtfrac1^20.1112(0.1112times1.1112 + 0.0670^2times0.1112)-1 \
    &quad = sqrt0.1112 \
    &quad = 0.1112
    endalign*


    enter image description here



    A third option would be to give variable names like x,y,z to these values:



    beginalign*
    &sqrtfrac1^2x(xtimes y + z^2times x)-1 \
    &quad = sqrt0.115650 \
    &quad = 0.340074
    endalign*
    %
    with $x=0.111222$, $y=1.111163$, and $z=0.066987$.


    enter image description here






    share|improve this answer




















    • 1





      Thanks. Would prefer to still keep the "square root sign" instead of writing to the power of 1/2.

      – nanjun
      Dec 30 '18 at 21:46






    • 1





      Then, Mico's answer is the way to go, IMO.

      – AboAmmar
      Dec 30 '18 at 21:48


















    2














    Try using split or multiline in the amsmath package. There are a couple of examples on page 2 of "Short Math Guide".



    Try:



    documentclassIEEEtran
    usepackageamsmath

    begindocument

    beginequation
    beginsplit
    sqrtfrac1^20.111222(0.111222times1.111163&\
    overlinerule0pt5mm+0.066987^2times0.111222)-1&\
    =sqrt0.111222=0.111222&
    endsplit
    endequation

    beginmultline
    sqrtfrac1^20.111222(0.111222times1.111163\
    overlinerule0pt5mm+0.066987^2times0.111222)-1\
    =sqrt0.111222=0.111222
    endmultline

    enddocument


    and adjust the 5mm in rule to get the overline spacing to look right.



    Some other options to adjust the overline spacing






    share|improve this answer




















    • 1





      Sorry, I don't have enough rep to comment on the post. I'm working on a more complete answer at the moment.

      – xerxes25
      Dec 30 '18 at 20:27











    • It would be better if your code employed the IEEEtran document class, which is employed by the OP, in order to demonstrate that your solution meets the OP's objective of fitting everything inside the width of a column.

      – Mico
      Dec 30 '18 at 20:58











    • @Mico thanks, fixed it. I was using 'multicol' in my test doc but removed it for simplicity when I posted the answer. Your suggestion makes more sense. Still new to this and learning something new every day!

      – xerxes25
      Dec 30 '18 at 21:04











    • @Circumscribe, fixed! Good to know about case sensitivity across platforms.

      – xerxes25
      Dec 30 '18 at 21:27


















    1














    Another solution: you can make it fit a single line with the splitfrac command from mathtools combined with mfrac (medium-sized fractions) from nccmath:



    documentclassIEEEtran
    usepackagemathtools, nccmath

    usepackagelipsum

    begindocument

    lipsum[11]
    beginequation*
    sqrtmfracsplitfrac1^2(0.111222times1.111163
    +0.066987^2times0.111222)0.111222-1=sqrt0.111222=0.111222 % place remaining material on 2nd line
    endequation*

    enddocument


    enter image description here






    share|improve this answer






















      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "85"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f467942%2fhow-to-squeeze-a-long-equation%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      5 Answers
      5






      active

      oldest

      votes








      5 Answers
      5






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      2














      The answer is yes. Here's an illustration (followed by an explanation).



      documentclassIEEEtran

      usepackageamsmath

      newcommand*squeezespaces[1]% %% <- #1 is a number between 0 and 1
      thickmuskip=scalemuskipthickmuskip#1%
      medmuskip=scalemuskipmedmuskip#1%
      thinmuskip=scalemuskipthinmuskip#1%
      nulldelimiterspace=#1nulldelimiterspace
      scriptspace=#1scriptspace

      newcommand*scalemuskip[2]%
      muexpr #1*numexprdimexpr#2ptrelaxrelax/65536relax
      %% <- based on https://tex.stackexchange.com/a/198966/156366

      begindocument

      This is a long equation This is a long equation This is a long equation
      This is a long equation This is a long equation This is a long equation
      [ %% vv Unaltered vv
      sqrtfrac1^20.111222
      (0.111222times1.111163+0.066987^2times0.111222)-1
      = sqrt0.111222=0.111222
      ]
      This is a long equation This is a long equation This is a long equation
      This is a long equation This is a long equation This is a long equation
      [ %% vv Squeezed and split vv
      beginsplit %% <- split up equation, &'s will be aligned
      kern 4em & kern-4em %% <- move anchor right by 4em
      mbox$squeezespaces0.5 %% <- reduce whitespace, switch to textstyle
      sqrtfrac1^20.111222
      (0.111222times1.111163+0.066987^2times0.111222)-1
      $
      \&
      = sqrt0.111222
      \& %% <- leave this out if you want
      = 0.111222
      endsplit
      ]
      This is a long equation This is a long equation This is a long equation
      This is a long equation This is a long equation This is a long equation

      enddocument


      output



      I've done the following:



      1. I've used the split environment from amsmath to split up the equation in three lines. You can reduce this to two lines by removing the second \&.


      2. To place the anchor (&) at the right spot, I've inserted a horizontal space in front of it and a negative horizontal space of equal magnitude after it with kern 4em & kern-4em.



      3. The amount of whitespace inserted at several places in an equation is governed by the following paramters: thickmuskip (; and space around e.g. =), medmuskip (: and space around e.g. +), thinmuskip (, and space around e.g. sum and sin), nulldelimiterspace (space around e.g. fractions) and scriptspace (space after sub-/superscripts). I've halved each of these lengths using squeezespaces0.5 (which is defined in the preamble).



        Doing this affects an entire equation and it can't be done inside split, so I've put the square root inside an mbox$<…>$ and used squeezespaces0.5 in the inner math environment. You can replace 0.5 by another number between 0 and 1 if you want.




      4. A side-effect of putting the sqrt in a box is that it is set in textstyle, which also saves space because it makes e.g. fractions smaller. You could also have accomplished this by using tfrac instead of frac or by inserting textstyle right before sqrt (or at the beginning of its first argument).



        If you don't want text style fractions you should use mbox$displaystyle<…>$.







      share|improve this answer

























      • This looks great. I like how it could be fine-tuned. I have accepted it. Just a couple of questions. 1. Why the anchor has to be moved before the 1st line while it affects the alignment of the 2nd and 3rd lines? And why an equal amount of negative space is also necessary after the anchor? 2. What does the pair [ and ] do? It seems the code does not work properly without them.

        – nanjun
        Dec 30 '18 at 22:24







      • 1





        1. The & in each line will be aligned, so if you placed the & directly in front of the mbox the leftmost point of the = would line up with the leftmost point of the √. You can think of it like this: I'm first moving the cursor right by 4em, then inserting a & and then moving the cursor left by 4em, so it'll end up back where it started. The net effect is that the & is placed 4em to the right of the start of the √. Inserting kern4em after the & on both the second and third line would have the same effect.

        – Circumscribe
        Dec 30 '18 at 22:35












      • 2. [ is equivalent to beginequation* and ] is equivalent to endequation*.

        – Circumscribe
        Dec 30 '18 at 22:36












      • Just noticed that you changed in the preamble from thickmuskip=#1thickmuskip to thickmuskip=scalemuskipthickmuskip#1, and defined a new command scalemuskip. Can I know what is the additional benefit of this?

        – nanjun
        Jan 3 at 17:57







      • 1





        @nanjun: These skips have a base value and some maximum amount by which they can be stretched and shrunk if necessary (to improve the layout of a paragraph or equation). The old version of squeezespaces effectively removed this stretch/shrink, but the updated one scales it along with the base value. In this case it made no difference because the spaces in a sqrt can't be shrunk (nor can spaces within split or any of the other amsmath environments), but I felt I should do it right.

        – Circumscribe
        Jan 3 at 18:26















      2














      The answer is yes. Here's an illustration (followed by an explanation).



      documentclassIEEEtran

      usepackageamsmath

      newcommand*squeezespaces[1]% %% <- #1 is a number between 0 and 1
      thickmuskip=scalemuskipthickmuskip#1%
      medmuskip=scalemuskipmedmuskip#1%
      thinmuskip=scalemuskipthinmuskip#1%
      nulldelimiterspace=#1nulldelimiterspace
      scriptspace=#1scriptspace

      newcommand*scalemuskip[2]%
      muexpr #1*numexprdimexpr#2ptrelaxrelax/65536relax
      %% <- based on https://tex.stackexchange.com/a/198966/156366

      begindocument

      This is a long equation This is a long equation This is a long equation
      This is a long equation This is a long equation This is a long equation
      [ %% vv Unaltered vv
      sqrtfrac1^20.111222
      (0.111222times1.111163+0.066987^2times0.111222)-1
      = sqrt0.111222=0.111222
      ]
      This is a long equation This is a long equation This is a long equation
      This is a long equation This is a long equation This is a long equation
      [ %% vv Squeezed and split vv
      beginsplit %% <- split up equation, &'s will be aligned
      kern 4em & kern-4em %% <- move anchor right by 4em
      mbox$squeezespaces0.5 %% <- reduce whitespace, switch to textstyle
      sqrtfrac1^20.111222
      (0.111222times1.111163+0.066987^2times0.111222)-1
      $
      \&
      = sqrt0.111222
      \& %% <- leave this out if you want
      = 0.111222
      endsplit
      ]
      This is a long equation This is a long equation This is a long equation
      This is a long equation This is a long equation This is a long equation

      enddocument


      output



      I've done the following:



      1. I've used the split environment from amsmath to split up the equation in three lines. You can reduce this to two lines by removing the second \&.


      2. To place the anchor (&) at the right spot, I've inserted a horizontal space in front of it and a negative horizontal space of equal magnitude after it with kern 4em & kern-4em.



      3. The amount of whitespace inserted at several places in an equation is governed by the following paramters: thickmuskip (; and space around e.g. =), medmuskip (: and space around e.g. +), thinmuskip (, and space around e.g. sum and sin), nulldelimiterspace (space around e.g. fractions) and scriptspace (space after sub-/superscripts). I've halved each of these lengths using squeezespaces0.5 (which is defined in the preamble).



        Doing this affects an entire equation and it can't be done inside split, so I've put the square root inside an mbox$<…>$ and used squeezespaces0.5 in the inner math environment. You can replace 0.5 by another number between 0 and 1 if you want.




      4. A side-effect of putting the sqrt in a box is that it is set in textstyle, which also saves space because it makes e.g. fractions smaller. You could also have accomplished this by using tfrac instead of frac or by inserting textstyle right before sqrt (or at the beginning of its first argument).



        If you don't want text style fractions you should use mbox$displaystyle<…>$.







      share|improve this answer

























      • This looks great. I like how it could be fine-tuned. I have accepted it. Just a couple of questions. 1. Why the anchor has to be moved before the 1st line while it affects the alignment of the 2nd and 3rd lines? And why an equal amount of negative space is also necessary after the anchor? 2. What does the pair [ and ] do? It seems the code does not work properly without them.

        – nanjun
        Dec 30 '18 at 22:24







      • 1





        1. The & in each line will be aligned, so if you placed the & directly in front of the mbox the leftmost point of the = would line up with the leftmost point of the √. You can think of it like this: I'm first moving the cursor right by 4em, then inserting a & and then moving the cursor left by 4em, so it'll end up back where it started. The net effect is that the & is placed 4em to the right of the start of the √. Inserting kern4em after the & on both the second and third line would have the same effect.

        – Circumscribe
        Dec 30 '18 at 22:35












      • 2. [ is equivalent to beginequation* and ] is equivalent to endequation*.

        – Circumscribe
        Dec 30 '18 at 22:36












      • Just noticed that you changed in the preamble from thickmuskip=#1thickmuskip to thickmuskip=scalemuskipthickmuskip#1, and defined a new command scalemuskip. Can I know what is the additional benefit of this?

        – nanjun
        Jan 3 at 17:57







      • 1





        @nanjun: These skips have a base value and some maximum amount by which they can be stretched and shrunk if necessary (to improve the layout of a paragraph or equation). The old version of squeezespaces effectively removed this stretch/shrink, but the updated one scales it along with the base value. In this case it made no difference because the spaces in a sqrt can't be shrunk (nor can spaces within split or any of the other amsmath environments), but I felt I should do it right.

        – Circumscribe
        Jan 3 at 18:26













      2












      2








      2







      The answer is yes. Here's an illustration (followed by an explanation).



      documentclassIEEEtran

      usepackageamsmath

      newcommand*squeezespaces[1]% %% <- #1 is a number between 0 and 1
      thickmuskip=scalemuskipthickmuskip#1%
      medmuskip=scalemuskipmedmuskip#1%
      thinmuskip=scalemuskipthinmuskip#1%
      nulldelimiterspace=#1nulldelimiterspace
      scriptspace=#1scriptspace

      newcommand*scalemuskip[2]%
      muexpr #1*numexprdimexpr#2ptrelaxrelax/65536relax
      %% <- based on https://tex.stackexchange.com/a/198966/156366

      begindocument

      This is a long equation This is a long equation This is a long equation
      This is a long equation This is a long equation This is a long equation
      [ %% vv Unaltered vv
      sqrtfrac1^20.111222
      (0.111222times1.111163+0.066987^2times0.111222)-1
      = sqrt0.111222=0.111222
      ]
      This is a long equation This is a long equation This is a long equation
      This is a long equation This is a long equation This is a long equation
      [ %% vv Squeezed and split vv
      beginsplit %% <- split up equation, &'s will be aligned
      kern 4em & kern-4em %% <- move anchor right by 4em
      mbox$squeezespaces0.5 %% <- reduce whitespace, switch to textstyle
      sqrtfrac1^20.111222
      (0.111222times1.111163+0.066987^2times0.111222)-1
      $
      \&
      = sqrt0.111222
      \& %% <- leave this out if you want
      = 0.111222
      endsplit
      ]
      This is a long equation This is a long equation This is a long equation
      This is a long equation This is a long equation This is a long equation

      enddocument


      output



      I've done the following:



      1. I've used the split environment from amsmath to split up the equation in three lines. You can reduce this to two lines by removing the second \&.


      2. To place the anchor (&) at the right spot, I've inserted a horizontal space in front of it and a negative horizontal space of equal magnitude after it with kern 4em & kern-4em.



      3. The amount of whitespace inserted at several places in an equation is governed by the following paramters: thickmuskip (; and space around e.g. =), medmuskip (: and space around e.g. +), thinmuskip (, and space around e.g. sum and sin), nulldelimiterspace (space around e.g. fractions) and scriptspace (space after sub-/superscripts). I've halved each of these lengths using squeezespaces0.5 (which is defined in the preamble).



        Doing this affects an entire equation and it can't be done inside split, so I've put the square root inside an mbox$<…>$ and used squeezespaces0.5 in the inner math environment. You can replace 0.5 by another number between 0 and 1 if you want.




      4. A side-effect of putting the sqrt in a box is that it is set in textstyle, which also saves space because it makes e.g. fractions smaller. You could also have accomplished this by using tfrac instead of frac or by inserting textstyle right before sqrt (or at the beginning of its first argument).



        If you don't want text style fractions you should use mbox$displaystyle<…>$.







      share|improve this answer















      The answer is yes. Here's an illustration (followed by an explanation).



      documentclassIEEEtran

      usepackageamsmath

      newcommand*squeezespaces[1]% %% <- #1 is a number between 0 and 1
      thickmuskip=scalemuskipthickmuskip#1%
      medmuskip=scalemuskipmedmuskip#1%
      thinmuskip=scalemuskipthinmuskip#1%
      nulldelimiterspace=#1nulldelimiterspace
      scriptspace=#1scriptspace

      newcommand*scalemuskip[2]%
      muexpr #1*numexprdimexpr#2ptrelaxrelax/65536relax
      %% <- based on https://tex.stackexchange.com/a/198966/156366

      begindocument

      This is a long equation This is a long equation This is a long equation
      This is a long equation This is a long equation This is a long equation
      [ %% vv Unaltered vv
      sqrtfrac1^20.111222
      (0.111222times1.111163+0.066987^2times0.111222)-1
      = sqrt0.111222=0.111222
      ]
      This is a long equation This is a long equation This is a long equation
      This is a long equation This is a long equation This is a long equation
      [ %% vv Squeezed and split vv
      beginsplit %% <- split up equation, &'s will be aligned
      kern 4em & kern-4em %% <- move anchor right by 4em
      mbox$squeezespaces0.5 %% <- reduce whitespace, switch to textstyle
      sqrtfrac1^20.111222
      (0.111222times1.111163+0.066987^2times0.111222)-1
      $
      \&
      = sqrt0.111222
      \& %% <- leave this out if you want
      = 0.111222
      endsplit
      ]
      This is a long equation This is a long equation This is a long equation
      This is a long equation This is a long equation This is a long equation

      enddocument


      output



      I've done the following:



      1. I've used the split environment from amsmath to split up the equation in three lines. You can reduce this to two lines by removing the second \&.


      2. To place the anchor (&) at the right spot, I've inserted a horizontal space in front of it and a negative horizontal space of equal magnitude after it with kern 4em & kern-4em.



      3. The amount of whitespace inserted at several places in an equation is governed by the following paramters: thickmuskip (; and space around e.g. =), medmuskip (: and space around e.g. +), thinmuskip (, and space around e.g. sum and sin), nulldelimiterspace (space around e.g. fractions) and scriptspace (space after sub-/superscripts). I've halved each of these lengths using squeezespaces0.5 (which is defined in the preamble).



        Doing this affects an entire equation and it can't be done inside split, so I've put the square root inside an mbox$<…>$ and used squeezespaces0.5 in the inner math environment. You can replace 0.5 by another number between 0 and 1 if you want.




      4. A side-effect of putting the sqrt in a box is that it is set in textstyle, which also saves space because it makes e.g. fractions smaller. You could also have accomplished this by using tfrac instead of frac or by inserting textstyle right before sqrt (or at the beginning of its first argument).



        If you don't want text style fractions you should use mbox$displaystyle<…>$.








      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Dec 30 '18 at 22:51

























      answered Dec 30 '18 at 21:10









      CircumscribeCircumscribe

      5,0011533




      5,0011533












      • This looks great. I like how it could be fine-tuned. I have accepted it. Just a couple of questions. 1. Why the anchor has to be moved before the 1st line while it affects the alignment of the 2nd and 3rd lines? And why an equal amount of negative space is also necessary after the anchor? 2. What does the pair [ and ] do? It seems the code does not work properly without them.

        – nanjun
        Dec 30 '18 at 22:24







      • 1





        1. The & in each line will be aligned, so if you placed the & directly in front of the mbox the leftmost point of the = would line up with the leftmost point of the √. You can think of it like this: I'm first moving the cursor right by 4em, then inserting a & and then moving the cursor left by 4em, so it'll end up back where it started. The net effect is that the & is placed 4em to the right of the start of the √. Inserting kern4em after the & on both the second and third line would have the same effect.

        – Circumscribe
        Dec 30 '18 at 22:35












      • 2. [ is equivalent to beginequation* and ] is equivalent to endequation*.

        – Circumscribe
        Dec 30 '18 at 22:36












      • Just noticed that you changed in the preamble from thickmuskip=#1thickmuskip to thickmuskip=scalemuskipthickmuskip#1, and defined a new command scalemuskip. Can I know what is the additional benefit of this?

        – nanjun
        Jan 3 at 17:57







      • 1





        @nanjun: These skips have a base value and some maximum amount by which they can be stretched and shrunk if necessary (to improve the layout of a paragraph or equation). The old version of squeezespaces effectively removed this stretch/shrink, but the updated one scales it along with the base value. In this case it made no difference because the spaces in a sqrt can't be shrunk (nor can spaces within split or any of the other amsmath environments), but I felt I should do it right.

        – Circumscribe
        Jan 3 at 18:26

















      • This looks great. I like how it could be fine-tuned. I have accepted it. Just a couple of questions. 1. Why the anchor has to be moved before the 1st line while it affects the alignment of the 2nd and 3rd lines? And why an equal amount of negative space is also necessary after the anchor? 2. What does the pair [ and ] do? It seems the code does not work properly without them.

        – nanjun
        Dec 30 '18 at 22:24







      • 1





        1. The & in each line will be aligned, so if you placed the & directly in front of the mbox the leftmost point of the = would line up with the leftmost point of the √. You can think of it like this: I'm first moving the cursor right by 4em, then inserting a & and then moving the cursor left by 4em, so it'll end up back where it started. The net effect is that the & is placed 4em to the right of the start of the √. Inserting kern4em after the & on both the second and third line would have the same effect.

        – Circumscribe
        Dec 30 '18 at 22:35












      • 2. [ is equivalent to beginequation* and ] is equivalent to endequation*.

        – Circumscribe
        Dec 30 '18 at 22:36












      • Just noticed that you changed in the preamble from thickmuskip=#1thickmuskip to thickmuskip=scalemuskipthickmuskip#1, and defined a new command scalemuskip. Can I know what is the additional benefit of this?

        – nanjun
        Jan 3 at 17:57







      • 1





        @nanjun: These skips have a base value and some maximum amount by which they can be stretched and shrunk if necessary (to improve the layout of a paragraph or equation). The old version of squeezespaces effectively removed this stretch/shrink, but the updated one scales it along with the base value. In this case it made no difference because the spaces in a sqrt can't be shrunk (nor can spaces within split or any of the other amsmath environments), but I felt I should do it right.

        – Circumscribe
        Jan 3 at 18:26
















      This looks great. I like how it could be fine-tuned. I have accepted it. Just a couple of questions. 1. Why the anchor has to be moved before the 1st line while it affects the alignment of the 2nd and 3rd lines? And why an equal amount of negative space is also necessary after the anchor? 2. What does the pair [ and ] do? It seems the code does not work properly without them.

      – nanjun
      Dec 30 '18 at 22:24






      This looks great. I like how it could be fine-tuned. I have accepted it. Just a couple of questions. 1. Why the anchor has to be moved before the 1st line while it affects the alignment of the 2nd and 3rd lines? And why an equal amount of negative space is also necessary after the anchor? 2. What does the pair [ and ] do? It seems the code does not work properly without them.

      – nanjun
      Dec 30 '18 at 22:24





      1




      1





      1. The & in each line will be aligned, so if you placed the & directly in front of the mbox the leftmost point of the = would line up with the leftmost point of the √. You can think of it like this: I'm first moving the cursor right by 4em, then inserting a & and then moving the cursor left by 4em, so it'll end up back where it started. The net effect is that the & is placed 4em to the right of the start of the √. Inserting kern4em after the & on both the second and third line would have the same effect.

      – Circumscribe
      Dec 30 '18 at 22:35






      1. The & in each line will be aligned, so if you placed the & directly in front of the mbox the leftmost point of the = would line up with the leftmost point of the √. You can think of it like this: I'm first moving the cursor right by 4em, then inserting a & and then moving the cursor left by 4em, so it'll end up back where it started. The net effect is that the & is placed 4em to the right of the start of the √. Inserting kern4em after the & on both the second and third line would have the same effect.

      – Circumscribe
      Dec 30 '18 at 22:35














      2. [ is equivalent to beginequation* and ] is equivalent to endequation*.

      – Circumscribe
      Dec 30 '18 at 22:36






      2. [ is equivalent to beginequation* and ] is equivalent to endequation*.

      – Circumscribe
      Dec 30 '18 at 22:36














      Just noticed that you changed in the preamble from thickmuskip=#1thickmuskip to thickmuskip=scalemuskipthickmuskip#1, and defined a new command scalemuskip. Can I know what is the additional benefit of this?

      – nanjun
      Jan 3 at 17:57






      Just noticed that you changed in the preamble from thickmuskip=#1thickmuskip to thickmuskip=scalemuskipthickmuskip#1, and defined a new command scalemuskip. Can I know what is the additional benefit of this?

      – nanjun
      Jan 3 at 17:57





      1




      1





      @nanjun: These skips have a base value and some maximum amount by which they can be stretched and shrunk if necessary (to improve the layout of a paragraph or equation). The old version of squeezespaces effectively removed this stretch/shrink, but the updated one scales it along with the base value. In this case it made no difference because the spaces in a sqrt can't be shrunk (nor can spaces within split or any of the other amsmath environments), but I felt I should do it right.

      – Circumscribe
      Jan 3 at 18:26





      @nanjun: These skips have a base value and some maximum amount by which they can be stretched and shrunk if necessary (to improve the layout of a paragraph or equation). The old version of squeezespaces effectively removed this stretch/shrink, but the updated one scales it along with the base value. In this case it made no difference because the spaces in a sqrt can't be shrunk (nor can spaces within split or any of the other amsmath environments), but I felt I should do it right.

      – Circumscribe
      Jan 3 at 18:26











      3














      For the math expression you provided -- I have no idea how representative it is of the real material in your document -- it suffices to rearrange the position of the denominator in order to make the material before the = symbol fit in a column; then, use an align* environment to split the full expression across two lines.



      enter image description here



      documentclassIEEEtran
      usepackageamsmath % for 'align*' env.

      begindocument
      hrule % just to illustrate width of column
      beginalign*
      &sqrtfrac1^2(0.111222times1.111163
      +0.066987^2times0.111222)0.111222-1\
      &quad=sqrt0.111222=0.111222 % place remaining material on 2nd line
      endalign*
      enddocument





      share|improve this answer



























        3














        For the math expression you provided -- I have no idea how representative it is of the real material in your document -- it suffices to rearrange the position of the denominator in order to make the material before the = symbol fit in a column; then, use an align* environment to split the full expression across two lines.



        enter image description here



        documentclassIEEEtran
        usepackageamsmath % for 'align*' env.

        begindocument
        hrule % just to illustrate width of column
        beginalign*
        &sqrtfrac1^2(0.111222times1.111163
        +0.066987^2times0.111222)0.111222-1\
        &quad=sqrt0.111222=0.111222 % place remaining material on 2nd line
        endalign*
        enddocument





        share|improve this answer

























          3












          3








          3







          For the math expression you provided -- I have no idea how representative it is of the real material in your document -- it suffices to rearrange the position of the denominator in order to make the material before the = symbol fit in a column; then, use an align* environment to split the full expression across two lines.



          enter image description here



          documentclassIEEEtran
          usepackageamsmath % for 'align*' env.

          begindocument
          hrule % just to illustrate width of column
          beginalign*
          &sqrtfrac1^2(0.111222times1.111163
          +0.066987^2times0.111222)0.111222-1\
          &quad=sqrt0.111222=0.111222 % place remaining material on 2nd line
          endalign*
          enddocument





          share|improve this answer













          For the math expression you provided -- I have no idea how representative it is of the real material in your document -- it suffices to rearrange the position of the denominator in order to make the material before the = symbol fit in a column; then, use an align* environment to split the full expression across two lines.



          enter image description here



          documentclassIEEEtran
          usepackageamsmath % for 'align*' env.

          begindocument
          hrule % just to illustrate width of column
          beginalign*
          &sqrtfrac1^2(0.111222times1.111163
          +0.066987^2times0.111222)0.111222-1\
          &quad=sqrt0.111222=0.111222 % place remaining material on 2nd line
          endalign*
          enddocument






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 30 '18 at 20:55









          MicoMico

          274k30372759




          274k30372759





















              3














              documentclassIEEEtran
              usepackageamsmath
              begindocument

              hrule

              beginalign*
              &beginaligned[t]
              Bigl[frac1^20.111222(0.111222&times1.111163 \
              &+ 0.066987^2times0.111222)-1Bigr]^frac12
              endaligned\
              &= sqrt0.111222 \
              &= 0.111222
              endalign*

              hrule

              enddocument


              enter image description here



              Another option is to use 4 decimal-digits numbers (this is quite a standard in some software like MATLAB) unless these extra digits are very important.



              beginalign*
              &sqrtfrac1^20.1112(0.1112times1.1112 + 0.0670^2times0.1112)-1 \
              &quad = sqrt0.1112 \
              &quad = 0.1112
              endalign*


              enter image description here



              A third option would be to give variable names like x,y,z to these values:



              beginalign*
              &sqrtfrac1^2x(xtimes y + z^2times x)-1 \
              &quad = sqrt0.115650 \
              &quad = 0.340074
              endalign*
              %
              with $x=0.111222$, $y=1.111163$, and $z=0.066987$.


              enter image description here






              share|improve this answer




















              • 1





                Thanks. Would prefer to still keep the "square root sign" instead of writing to the power of 1/2.

                – nanjun
                Dec 30 '18 at 21:46






              • 1





                Then, Mico's answer is the way to go, IMO.

                – AboAmmar
                Dec 30 '18 at 21:48















              3














              documentclassIEEEtran
              usepackageamsmath
              begindocument

              hrule

              beginalign*
              &beginaligned[t]
              Bigl[frac1^20.111222(0.111222&times1.111163 \
              &+ 0.066987^2times0.111222)-1Bigr]^frac12
              endaligned\
              &= sqrt0.111222 \
              &= 0.111222
              endalign*

              hrule

              enddocument


              enter image description here



              Another option is to use 4 decimal-digits numbers (this is quite a standard in some software like MATLAB) unless these extra digits are very important.



              beginalign*
              &sqrtfrac1^20.1112(0.1112times1.1112 + 0.0670^2times0.1112)-1 \
              &quad = sqrt0.1112 \
              &quad = 0.1112
              endalign*


              enter image description here



              A third option would be to give variable names like x,y,z to these values:



              beginalign*
              &sqrtfrac1^2x(xtimes y + z^2times x)-1 \
              &quad = sqrt0.115650 \
              &quad = 0.340074
              endalign*
              %
              with $x=0.111222$, $y=1.111163$, and $z=0.066987$.


              enter image description here






              share|improve this answer




















              • 1





                Thanks. Would prefer to still keep the "square root sign" instead of writing to the power of 1/2.

                – nanjun
                Dec 30 '18 at 21:46






              • 1





                Then, Mico's answer is the way to go, IMO.

                – AboAmmar
                Dec 30 '18 at 21:48













              3












              3








              3







              documentclassIEEEtran
              usepackageamsmath
              begindocument

              hrule

              beginalign*
              &beginaligned[t]
              Bigl[frac1^20.111222(0.111222&times1.111163 \
              &+ 0.066987^2times0.111222)-1Bigr]^frac12
              endaligned\
              &= sqrt0.111222 \
              &= 0.111222
              endalign*

              hrule

              enddocument


              enter image description here



              Another option is to use 4 decimal-digits numbers (this is quite a standard in some software like MATLAB) unless these extra digits are very important.



              beginalign*
              &sqrtfrac1^20.1112(0.1112times1.1112 + 0.0670^2times0.1112)-1 \
              &quad = sqrt0.1112 \
              &quad = 0.1112
              endalign*


              enter image description here



              A third option would be to give variable names like x,y,z to these values:



              beginalign*
              &sqrtfrac1^2x(xtimes y + z^2times x)-1 \
              &quad = sqrt0.115650 \
              &quad = 0.340074
              endalign*
              %
              with $x=0.111222$, $y=1.111163$, and $z=0.066987$.


              enter image description here






              share|improve this answer















              documentclassIEEEtran
              usepackageamsmath
              begindocument

              hrule

              beginalign*
              &beginaligned[t]
              Bigl[frac1^20.111222(0.111222&times1.111163 \
              &+ 0.066987^2times0.111222)-1Bigr]^frac12
              endaligned\
              &= sqrt0.111222 \
              &= 0.111222
              endalign*

              hrule

              enddocument


              enter image description here



              Another option is to use 4 decimal-digits numbers (this is quite a standard in some software like MATLAB) unless these extra digits are very important.



              beginalign*
              &sqrtfrac1^20.1112(0.1112times1.1112 + 0.0670^2times0.1112)-1 \
              &quad = sqrt0.1112 \
              &quad = 0.1112
              endalign*


              enter image description here



              A third option would be to give variable names like x,y,z to these values:



              beginalign*
              &sqrtfrac1^2x(xtimes y + z^2times x)-1 \
              &quad = sqrt0.115650 \
              &quad = 0.340074
              endalign*
              %
              with $x=0.111222$, $y=1.111163$, and $z=0.066987$.


              enter image description here







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Dec 30 '18 at 22:19

























              answered Dec 30 '18 at 21:42









              AboAmmarAboAmmar

              33.4k22882




              33.4k22882







              • 1





                Thanks. Would prefer to still keep the "square root sign" instead of writing to the power of 1/2.

                – nanjun
                Dec 30 '18 at 21:46






              • 1





                Then, Mico's answer is the way to go, IMO.

                – AboAmmar
                Dec 30 '18 at 21:48












              • 1





                Thanks. Would prefer to still keep the "square root sign" instead of writing to the power of 1/2.

                – nanjun
                Dec 30 '18 at 21:46






              • 1





                Then, Mico's answer is the way to go, IMO.

                – AboAmmar
                Dec 30 '18 at 21:48







              1




              1





              Thanks. Would prefer to still keep the "square root sign" instead of writing to the power of 1/2.

              – nanjun
              Dec 30 '18 at 21:46





              Thanks. Would prefer to still keep the "square root sign" instead of writing to the power of 1/2.

              – nanjun
              Dec 30 '18 at 21:46




              1




              1





              Then, Mico's answer is the way to go, IMO.

              – AboAmmar
              Dec 30 '18 at 21:48





              Then, Mico's answer is the way to go, IMO.

              – AboAmmar
              Dec 30 '18 at 21:48











              2














              Try using split or multiline in the amsmath package. There are a couple of examples on page 2 of "Short Math Guide".



              Try:



              documentclassIEEEtran
              usepackageamsmath

              begindocument

              beginequation
              beginsplit
              sqrtfrac1^20.111222(0.111222times1.111163&\
              overlinerule0pt5mm+0.066987^2times0.111222)-1&\
              =sqrt0.111222=0.111222&
              endsplit
              endequation

              beginmultline
              sqrtfrac1^20.111222(0.111222times1.111163\
              overlinerule0pt5mm+0.066987^2times0.111222)-1\
              =sqrt0.111222=0.111222
              endmultline

              enddocument


              and adjust the 5mm in rule to get the overline spacing to look right.



              Some other options to adjust the overline spacing






              share|improve this answer




















              • 1





                Sorry, I don't have enough rep to comment on the post. I'm working on a more complete answer at the moment.

                – xerxes25
                Dec 30 '18 at 20:27











              • It would be better if your code employed the IEEEtran document class, which is employed by the OP, in order to demonstrate that your solution meets the OP's objective of fitting everything inside the width of a column.

                – Mico
                Dec 30 '18 at 20:58











              • @Mico thanks, fixed it. I was using 'multicol' in my test doc but removed it for simplicity when I posted the answer. Your suggestion makes more sense. Still new to this and learning something new every day!

                – xerxes25
                Dec 30 '18 at 21:04











              • @Circumscribe, fixed! Good to know about case sensitivity across platforms.

                – xerxes25
                Dec 30 '18 at 21:27















              2














              Try using split or multiline in the amsmath package. There are a couple of examples on page 2 of "Short Math Guide".



              Try:



              documentclassIEEEtran
              usepackageamsmath

              begindocument

              beginequation
              beginsplit
              sqrtfrac1^20.111222(0.111222times1.111163&\
              overlinerule0pt5mm+0.066987^2times0.111222)-1&\
              =sqrt0.111222=0.111222&
              endsplit
              endequation

              beginmultline
              sqrtfrac1^20.111222(0.111222times1.111163\
              overlinerule0pt5mm+0.066987^2times0.111222)-1\
              =sqrt0.111222=0.111222
              endmultline

              enddocument


              and adjust the 5mm in rule to get the overline spacing to look right.



              Some other options to adjust the overline spacing






              share|improve this answer




















              • 1





                Sorry, I don't have enough rep to comment on the post. I'm working on a more complete answer at the moment.

                – xerxes25
                Dec 30 '18 at 20:27











              • It would be better if your code employed the IEEEtran document class, which is employed by the OP, in order to demonstrate that your solution meets the OP's objective of fitting everything inside the width of a column.

                – Mico
                Dec 30 '18 at 20:58











              • @Mico thanks, fixed it. I was using 'multicol' in my test doc but removed it for simplicity when I posted the answer. Your suggestion makes more sense. Still new to this and learning something new every day!

                – xerxes25
                Dec 30 '18 at 21:04











              • @Circumscribe, fixed! Good to know about case sensitivity across platforms.

                – xerxes25
                Dec 30 '18 at 21:27













              2












              2








              2







              Try using split or multiline in the amsmath package. There are a couple of examples on page 2 of "Short Math Guide".



              Try:



              documentclassIEEEtran
              usepackageamsmath

              begindocument

              beginequation
              beginsplit
              sqrtfrac1^20.111222(0.111222times1.111163&\
              overlinerule0pt5mm+0.066987^2times0.111222)-1&\
              =sqrt0.111222=0.111222&
              endsplit
              endequation

              beginmultline
              sqrtfrac1^20.111222(0.111222times1.111163\
              overlinerule0pt5mm+0.066987^2times0.111222)-1\
              =sqrt0.111222=0.111222
              endmultline

              enddocument


              and adjust the 5mm in rule to get the overline spacing to look right.



              Some other options to adjust the overline spacing






              share|improve this answer















              Try using split or multiline in the amsmath package. There are a couple of examples on page 2 of "Short Math Guide".



              Try:



              documentclassIEEEtran
              usepackageamsmath

              begindocument

              beginequation
              beginsplit
              sqrtfrac1^20.111222(0.111222times1.111163&\
              overlinerule0pt5mm+0.066987^2times0.111222)-1&\
              =sqrt0.111222=0.111222&
              endsplit
              endequation

              beginmultline
              sqrtfrac1^20.111222(0.111222times1.111163\
              overlinerule0pt5mm+0.066987^2times0.111222)-1\
              =sqrt0.111222=0.111222
              endmultline

              enddocument


              and adjust the 5mm in rule to get the overline spacing to look right.



              Some other options to adjust the overline spacing







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Dec 30 '18 at 21:23

























              answered Dec 30 '18 at 20:18









              xerxes25xerxes25

              4318




              4318







              • 1





                Sorry, I don't have enough rep to comment on the post. I'm working on a more complete answer at the moment.

                – xerxes25
                Dec 30 '18 at 20:27











              • It would be better if your code employed the IEEEtran document class, which is employed by the OP, in order to demonstrate that your solution meets the OP's objective of fitting everything inside the width of a column.

                – Mico
                Dec 30 '18 at 20:58











              • @Mico thanks, fixed it. I was using 'multicol' in my test doc but removed it for simplicity when I posted the answer. Your suggestion makes more sense. Still new to this and learning something new every day!

                – xerxes25
                Dec 30 '18 at 21:04











              • @Circumscribe, fixed! Good to know about case sensitivity across platforms.

                – xerxes25
                Dec 30 '18 at 21:27












              • 1





                Sorry, I don't have enough rep to comment on the post. I'm working on a more complete answer at the moment.

                – xerxes25
                Dec 30 '18 at 20:27











              • It would be better if your code employed the IEEEtran document class, which is employed by the OP, in order to demonstrate that your solution meets the OP's objective of fitting everything inside the width of a column.

                – Mico
                Dec 30 '18 at 20:58











              • @Mico thanks, fixed it. I was using 'multicol' in my test doc but removed it for simplicity when I posted the answer. Your suggestion makes more sense. Still new to this and learning something new every day!

                – xerxes25
                Dec 30 '18 at 21:04











              • @Circumscribe, fixed! Good to know about case sensitivity across platforms.

                – xerxes25
                Dec 30 '18 at 21:27







              1




              1





              Sorry, I don't have enough rep to comment on the post. I'm working on a more complete answer at the moment.

              – xerxes25
              Dec 30 '18 at 20:27





              Sorry, I don't have enough rep to comment on the post. I'm working on a more complete answer at the moment.

              – xerxes25
              Dec 30 '18 at 20:27













              It would be better if your code employed the IEEEtran document class, which is employed by the OP, in order to demonstrate that your solution meets the OP's objective of fitting everything inside the width of a column.

              – Mico
              Dec 30 '18 at 20:58





              It would be better if your code employed the IEEEtran document class, which is employed by the OP, in order to demonstrate that your solution meets the OP's objective of fitting everything inside the width of a column.

              – Mico
              Dec 30 '18 at 20:58













              @Mico thanks, fixed it. I was using 'multicol' in my test doc but removed it for simplicity when I posted the answer. Your suggestion makes more sense. Still new to this and learning something new every day!

              – xerxes25
              Dec 30 '18 at 21:04





              @Mico thanks, fixed it. I was using 'multicol' in my test doc but removed it for simplicity when I posted the answer. Your suggestion makes more sense. Still new to this and learning something new every day!

              – xerxes25
              Dec 30 '18 at 21:04













              @Circumscribe, fixed! Good to know about case sensitivity across platforms.

              – xerxes25
              Dec 30 '18 at 21:27





              @Circumscribe, fixed! Good to know about case sensitivity across platforms.

              – xerxes25
              Dec 30 '18 at 21:27











              1














              Another solution: you can make it fit a single line with the splitfrac command from mathtools combined with mfrac (medium-sized fractions) from nccmath:



              documentclassIEEEtran
              usepackagemathtools, nccmath

              usepackagelipsum

              begindocument

              lipsum[11]
              beginequation*
              sqrtmfracsplitfrac1^2(0.111222times1.111163
              +0.066987^2times0.111222)0.111222-1=sqrt0.111222=0.111222 % place remaining material on 2nd line
              endequation*

              enddocument


              enter image description here






              share|improve this answer



























                1














                Another solution: you can make it fit a single line with the splitfrac command from mathtools combined with mfrac (medium-sized fractions) from nccmath:



                documentclassIEEEtran
                usepackagemathtools, nccmath

                usepackagelipsum

                begindocument

                lipsum[11]
                beginequation*
                sqrtmfracsplitfrac1^2(0.111222times1.111163
                +0.066987^2times0.111222)0.111222-1=sqrt0.111222=0.111222 % place remaining material on 2nd line
                endequation*

                enddocument


                enter image description here






                share|improve this answer

























                  1












                  1








                  1







                  Another solution: you can make it fit a single line with the splitfrac command from mathtools combined with mfrac (medium-sized fractions) from nccmath:



                  documentclassIEEEtran
                  usepackagemathtools, nccmath

                  usepackagelipsum

                  begindocument

                  lipsum[11]
                  beginequation*
                  sqrtmfracsplitfrac1^2(0.111222times1.111163
                  +0.066987^2times0.111222)0.111222-1=sqrt0.111222=0.111222 % place remaining material on 2nd line
                  endequation*

                  enddocument


                  enter image description here






                  share|improve this answer













                  Another solution: you can make it fit a single line with the splitfrac command from mathtools combined with mfrac (medium-sized fractions) from nccmath:



                  documentclassIEEEtran
                  usepackagemathtools, nccmath

                  usepackagelipsum

                  begindocument

                  lipsum[11]
                  beginequation*
                  sqrtmfracsplitfrac1^2(0.111222times1.111163
                  +0.066987^2times0.111222)0.111222-1=sqrt0.111222=0.111222 % place remaining material on 2nd line
                  endequation*

                  enddocument


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 30 '18 at 22:38









                  BernardBernard

                  167k769194




                  167k769194



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f467942%2fhow-to-squeeze-a-long-equation%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown






                      Popular posts from this blog

                      Peggy Mitchell

                      Palaiologos

                      The Forum (Inglewood, California)