Correct use of smash with math and root signsArgument of align has an extra '}'Depth and height confusionwhat is the correct way to typeset equations with a leading indicator/marker on eachHow can systems be side by side with an arrow between themplease help me fit my equation into my margins!Problem with “missing $ inserted” messageHow can I center a set of equations and make a line under one of them?Why do these three changes fix this equation-numbering error?Second Equation Alignment Column Aligning IncorrectlyLatex: problems with equation numbers and space after the equal-sign

How to avoid after work hours team dinner?

Why are Democrats mostly focused on increasing healthcare spending, rarely mentioning any proposals for decreasing the costs of healthcare services?

"Ich habe Durst" vs "Ich bin durstig": Which is more common?

How to communicate faster than the system clock

How to understand Generative Adversarial Networks Discriminative distribution?

Use field calculator QGIS: if value in one column, then value in new column

Was there a clearly identifiable "first computer" to use or demonstrate the use of virtual memory?

How much money would I need to feel secure in my job?

What's the link?

Why do aircraft sometimes bounce while landing?

Does SQL Server Only Perform Calculations In A SELECT List Once?

What are these criss-cross patterns close to Cambridge Airport (UK)?

What type of beer is best for beer battered fish?

Perils of having a moon consisting of valuable material

Is policy routing bad?

What is the lowest level at which a human can beat the 100m world record (or: the presumed human limit) without using magic?

how to make a twisted wrapper

Log monitoring with pythonic tail -f and process killing

impact wrench on spark plugs?

Will an administrator exceed the 401K limit?

Speaking German abroad and feeling condescended to when people speak English back to me

How to manage publications on a local computer

Source of an alternate universe puzzle game with a cymbal-sporting singing monkey toy

How to write numbers in the form of using foreach or ...?



Correct use of smash with math and root signs


Argument of align has an extra '}'Depth and height confusionwhat is the correct way to typeset equations with a leading indicator/marker on eachHow can systems be side by side with an arrow between themplease help me fit my equation into my margins!Problem with “missing $ inserted” messageHow can I center a set of equations and make a line under one of them?Why do these three changes fix this equation-numbering error?Second Equation Alignment Column Aligning IncorrectlyLatex: problems with equation numbers and space after the equal-sign






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









5

















How can I get the same height on the second root-sign as the first?;



$$sqrttfrac1+2cdot4a^2+(4a^2)^216a^2
=sqrttfrac1+2cdot4a^2+(4a^2)^2(4a)^2$$


I've tried different methods using smash, vphantom and rule[] but could not work out which was the best and most 'proper' way of solving this 'problem'. TIA.










share|improve this question




























  • Thanks for all help, but I cannot understand why the ^2 cannot go under the smash command in the solution suggested by Mico. The following two examples does not result in the same display: smash(4a)^2 and smash(4a)^2 (Sorry, did not know how to type in the comment box to get better display of codes.)

    – mf67
    Jul 24 at 10:31












  • If you compare the outputs of smash(4a)^2 and smash(4a)^2, you'll notice that the exponent is placed higher relative to the baseline if the scope of smash includes the exponent -- not by a huge amount, for sure, but by about 1 or 2 points. This difference results in a slight increase in the overall height of the denominator which, in turn, explains why LaTeX sees fit to employ a taller (and deeper) square root symbol when it processes smash(4a)^2.

    – Mico
    Jul 24 at 12:31


















5

















How can I get the same height on the second root-sign as the first?;



$$sqrttfrac1+2cdot4a^2+(4a^2)^216a^2
=sqrttfrac1+2cdot4a^2+(4a^2)^2(4a)^2$$


I've tried different methods using smash, vphantom and rule[] but could not work out which was the best and most 'proper' way of solving this 'problem'. TIA.










share|improve this question




























  • Thanks for all help, but I cannot understand why the ^2 cannot go under the smash command in the solution suggested by Mico. The following two examples does not result in the same display: smash(4a)^2 and smash(4a)^2 (Sorry, did not know how to type in the comment box to get better display of codes.)

    – mf67
    Jul 24 at 10:31












  • If you compare the outputs of smash(4a)^2 and smash(4a)^2, you'll notice that the exponent is placed higher relative to the baseline if the scope of smash includes the exponent -- not by a huge amount, for sure, but by about 1 or 2 points. This difference results in a slight increase in the overall height of the denominator which, in turn, explains why LaTeX sees fit to employ a taller (and deeper) square root symbol when it processes smash(4a)^2.

    – Mico
    Jul 24 at 12:31














5












5








5








How can I get the same height on the second root-sign as the first?;



$$sqrttfrac1+2cdot4a^2+(4a^2)^216a^2
=sqrttfrac1+2cdot4a^2+(4a^2)^2(4a)^2$$


I've tried different methods using smash, vphantom and rule[] but could not work out which was the best and most 'proper' way of solving this 'problem'. TIA.










share|improve this question

















How can I get the same height on the second root-sign as the first?;



$$sqrttfrac1+2cdot4a^2+(4a^2)^216a^2
=sqrttfrac1+2cdot4a^2+(4a^2)^2(4a)^2$$


I've tried different methods using smash, vphantom and rule[] but could not work out which was the best and most 'proper' way of solving this 'problem'. TIA.







equations






share|improve this question
















share|improve this question













share|improve this question




share|improve this question








edited Jul 23 at 21:49









Mico

312k33 gold badges434 silver badges850 bronze badges




312k33 gold badges434 silver badges850 bronze badges










asked Jul 23 at 21:42









mf67mf67

1723 bronze badges




1723 bronze badges















  • Thanks for all help, but I cannot understand why the ^2 cannot go under the smash command in the solution suggested by Mico. The following two examples does not result in the same display: smash(4a)^2 and smash(4a)^2 (Sorry, did not know how to type in the comment box to get better display of codes.)

    – mf67
    Jul 24 at 10:31












  • If you compare the outputs of smash(4a)^2 and smash(4a)^2, you'll notice that the exponent is placed higher relative to the baseline if the scope of smash includes the exponent -- not by a huge amount, for sure, but by about 1 or 2 points. This difference results in a slight increase in the overall height of the denominator which, in turn, explains why LaTeX sees fit to employ a taller (and deeper) square root symbol when it processes smash(4a)^2.

    – Mico
    Jul 24 at 12:31


















  • Thanks for all help, but I cannot understand why the ^2 cannot go under the smash command in the solution suggested by Mico. The following two examples does not result in the same display: smash(4a)^2 and smash(4a)^2 (Sorry, did not know how to type in the comment box to get better display of codes.)

    – mf67
    Jul 24 at 10:31












  • If you compare the outputs of smash(4a)^2 and smash(4a)^2, you'll notice that the exponent is placed higher relative to the baseline if the scope of smash includes the exponent -- not by a huge amount, for sure, but by about 1 or 2 points. This difference results in a slight increase in the overall height of the denominator which, in turn, explains why LaTeX sees fit to employ a taller (and deeper) square root symbol when it processes smash(4a)^2.

    – Mico
    Jul 24 at 12:31

















Thanks for all help, but I cannot understand why the ^2 cannot go under the smash command in the solution suggested by Mico. The following two examples does not result in the same display: smash(4a)^2 and smash(4a)^2 (Sorry, did not know how to type in the comment box to get better display of codes.)

– mf67
Jul 24 at 10:31






Thanks for all help, but I cannot understand why the ^2 cannot go under the smash command in the solution suggested by Mico. The following two examples does not result in the same display: smash(4a)^2 and smash(4a)^2 (Sorry, did not know how to type in the comment box to get better display of codes.)

– mf67
Jul 24 at 10:31














If you compare the outputs of smash(4a)^2 and smash(4a)^2, you'll notice that the exponent is placed higher relative to the baseline if the scope of smash includes the exponent -- not by a huge amount, for sure, but by about 1 or 2 points. This difference results in a slight increase in the overall height of the denominator which, in turn, explains why LaTeX sees fit to employ a taller (and deeper) square root symbol when it processes smash(4a)^2.

– Mico
Jul 24 at 12:31






If you compare the outputs of smash(4a)^2 and smash(4a)^2, you'll notice that the exponent is placed higher relative to the baseline if the scope of smash includes the exponent -- not by a huge amount, for sure, but by about 1 or 2 points. This difference results in a slight increase in the overall height of the denominator which, in turn, explains why LaTeX sees fit to employ a taller (and deeper) square root symbol when it processes smash(4a)^2.

– Mico
Jul 24 at 12:31











3 Answers
3






active

oldest

votes


















6


















What you need to do is replace (4a)^2 in the second denominator with either smash(4a)^2 or smash[b](4a)^2. This yields compact-looking square root terms, and it works with both tfrac and dfrac.



Observe that if you, alternatively, replaced 16a^2 in the first denominator with 16a^2mathstrut, the two square root symbols would also have equal sizes. However, they would be much taller -- excessively and unnecessarily so, IMNSHO -- than with the adjustment suggested above.



enter image description here



documentclassarticle
usepackageamsmath
begindocument
[
sqrtdfrac1+2cdot4a^2+(4a^2)^216a^2
=sqrtdfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2
]

[
sqrttfrac1+2cdot4a^2+(4a^2)^216a^2
=sqrttfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2
]
enddocument





share|improve this answer




























  • Please see comment in the question, I might have put it in the wrong place… Perhaps it should have been here.

    – mf67
    Jul 24 at 10:34











  • @mf67 - Please see the comment I left below your follow-up comment. Did I answer your question? Please advise.

    – Mico
    Jul 24 at 12:35











  • I don't fully understand the effect of smash it seems. I thought that smash(4a)^2 would remove any height and 'equal' it to, e.g. an "a" or "x" and thus not extend the root sign any deeper. Instead it seems like it, as you write, places the exponent higher, but normal, than in smash(4a)^2 and thus forces down the base and therefore the depth of the root sign. A 0-height box, as I thought smash(4a)^2 was, would not do that? The smash(4a)^2 'compress' the exponent and, although not extremely disturbingly 'ugly', it looks a bit different from the a^2 in the numerator.

    – mf67
    Jul 24 at 17:12












  • @mf67 - I don't thinks it's entirely correct to call smash(4a)^2 a "zero-height box". Please compile [ sqrtfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2 = sqrtfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2 = sqrtfrac1+2cdot4a^2+(4a^2)^2smashsmash(4a)^2 ]. You'll see that the square root term in the middle, which contains smash(4a)^2, is taller than the other two. It looks like it's necessary to smash the term (4a)^2 twice in order to obtain the compact square root expression shown on the left. That's why I recommended writing smash(4a)^2...

    – Mico
    Jul 24 at 17:47












  • @mf67 - If this topic continues to puzzle you, may I suggest that you post a new query, in which you would ask for an explanation of how exactly smash works? There are some amazing TeX wizards on this site; they can explain how smash works in all gory detail -- and much much better than I ever could.

    – Mico
    Jul 24 at 17:50



















11


















Equalizing radicals is something of a black art.



The difference is due to the right hand side having parentheses. We can cope with this by adding mathstrut in the left hand side denominator. But this makes TeX choose the next size for the radical. Using smash[b]... for the denominator doesn't help.



The problem is that tfrac imposes textstyle, which has raised denominators. One could use cramped from mathtools, but there's a slicker solution:



documentclassarticle
usepackageamsmath

begindocument

[
textstyle
sqrtfrac1+2cdot4a^2+(4a^2)^2mathstrut 16a^2
=sqrtfrac1+2cdot4a^2+(4a^2)^2(4a)^2
]

enddocument


enter image description here






share|improve this answer

































    5


















    A simple vphantom will do the trick. And, please, don't use the plain TeX construct $$ ... $$ for unnumbered displayed equations. Use [ ... ] instead.



    documentclass[11pt, a4paper]article
    usepackageamsmath

    begindocument

    [ sqrttfrac1+2cdot4a^2+(4a^2)^2vphantom)16a^2 =sqrttfrac1+2cdot4a^2+(4a^2)^2(4a)^2 ]

    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/4.0/"u003ecc by-sa 4.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%2f501189%2fcorrect-use-of-smash-with-math-and-root-signs%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown


























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      6


















      What you need to do is replace (4a)^2 in the second denominator with either smash(4a)^2 or smash[b](4a)^2. This yields compact-looking square root terms, and it works with both tfrac and dfrac.



      Observe that if you, alternatively, replaced 16a^2 in the first denominator with 16a^2mathstrut, the two square root symbols would also have equal sizes. However, they would be much taller -- excessively and unnecessarily so, IMNSHO -- than with the adjustment suggested above.



      enter image description here



      documentclassarticle
      usepackageamsmath
      begindocument
      [
      sqrtdfrac1+2cdot4a^2+(4a^2)^216a^2
      =sqrtdfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2
      ]

      [
      sqrttfrac1+2cdot4a^2+(4a^2)^216a^2
      =sqrttfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2
      ]
      enddocument





      share|improve this answer




























      • Please see comment in the question, I might have put it in the wrong place… Perhaps it should have been here.

        – mf67
        Jul 24 at 10:34











      • @mf67 - Please see the comment I left below your follow-up comment. Did I answer your question? Please advise.

        – Mico
        Jul 24 at 12:35











      • I don't fully understand the effect of smash it seems. I thought that smash(4a)^2 would remove any height and 'equal' it to, e.g. an "a" or "x" and thus not extend the root sign any deeper. Instead it seems like it, as you write, places the exponent higher, but normal, than in smash(4a)^2 and thus forces down the base and therefore the depth of the root sign. A 0-height box, as I thought smash(4a)^2 was, would not do that? The smash(4a)^2 'compress' the exponent and, although not extremely disturbingly 'ugly', it looks a bit different from the a^2 in the numerator.

        – mf67
        Jul 24 at 17:12












      • @mf67 - I don't thinks it's entirely correct to call smash(4a)^2 a "zero-height box". Please compile [ sqrtfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2 = sqrtfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2 = sqrtfrac1+2cdot4a^2+(4a^2)^2smashsmash(4a)^2 ]. You'll see that the square root term in the middle, which contains smash(4a)^2, is taller than the other two. It looks like it's necessary to smash the term (4a)^2 twice in order to obtain the compact square root expression shown on the left. That's why I recommended writing smash(4a)^2...

        – Mico
        Jul 24 at 17:47












      • @mf67 - If this topic continues to puzzle you, may I suggest that you post a new query, in which you would ask for an explanation of how exactly smash works? There are some amazing TeX wizards on this site; they can explain how smash works in all gory detail -- and much much better than I ever could.

        – Mico
        Jul 24 at 17:50
















      6


















      What you need to do is replace (4a)^2 in the second denominator with either smash(4a)^2 or smash[b](4a)^2. This yields compact-looking square root terms, and it works with both tfrac and dfrac.



      Observe that if you, alternatively, replaced 16a^2 in the first denominator with 16a^2mathstrut, the two square root symbols would also have equal sizes. However, they would be much taller -- excessively and unnecessarily so, IMNSHO -- than with the adjustment suggested above.



      enter image description here



      documentclassarticle
      usepackageamsmath
      begindocument
      [
      sqrtdfrac1+2cdot4a^2+(4a^2)^216a^2
      =sqrtdfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2
      ]

      [
      sqrttfrac1+2cdot4a^2+(4a^2)^216a^2
      =sqrttfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2
      ]
      enddocument





      share|improve this answer




























      • Please see comment in the question, I might have put it in the wrong place… Perhaps it should have been here.

        – mf67
        Jul 24 at 10:34











      • @mf67 - Please see the comment I left below your follow-up comment. Did I answer your question? Please advise.

        – Mico
        Jul 24 at 12:35











      • I don't fully understand the effect of smash it seems. I thought that smash(4a)^2 would remove any height and 'equal' it to, e.g. an "a" or "x" and thus not extend the root sign any deeper. Instead it seems like it, as you write, places the exponent higher, but normal, than in smash(4a)^2 and thus forces down the base and therefore the depth of the root sign. A 0-height box, as I thought smash(4a)^2 was, would not do that? The smash(4a)^2 'compress' the exponent and, although not extremely disturbingly 'ugly', it looks a bit different from the a^2 in the numerator.

        – mf67
        Jul 24 at 17:12












      • @mf67 - I don't thinks it's entirely correct to call smash(4a)^2 a "zero-height box". Please compile [ sqrtfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2 = sqrtfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2 = sqrtfrac1+2cdot4a^2+(4a^2)^2smashsmash(4a)^2 ]. You'll see that the square root term in the middle, which contains smash(4a)^2, is taller than the other two. It looks like it's necessary to smash the term (4a)^2 twice in order to obtain the compact square root expression shown on the left. That's why I recommended writing smash(4a)^2...

        – Mico
        Jul 24 at 17:47












      • @mf67 - If this topic continues to puzzle you, may I suggest that you post a new query, in which you would ask for an explanation of how exactly smash works? There are some amazing TeX wizards on this site; they can explain how smash works in all gory detail -- and much much better than I ever could.

        – Mico
        Jul 24 at 17:50














      6














      6










      6









      What you need to do is replace (4a)^2 in the second denominator with either smash(4a)^2 or smash[b](4a)^2. This yields compact-looking square root terms, and it works with both tfrac and dfrac.



      Observe that if you, alternatively, replaced 16a^2 in the first denominator with 16a^2mathstrut, the two square root symbols would also have equal sizes. However, they would be much taller -- excessively and unnecessarily so, IMNSHO -- than with the adjustment suggested above.



      enter image description here



      documentclassarticle
      usepackageamsmath
      begindocument
      [
      sqrtdfrac1+2cdot4a^2+(4a^2)^216a^2
      =sqrtdfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2
      ]

      [
      sqrttfrac1+2cdot4a^2+(4a^2)^216a^2
      =sqrttfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2
      ]
      enddocument





      share|improve this answer
















      What you need to do is replace (4a)^2 in the second denominator with either smash(4a)^2 or smash[b](4a)^2. This yields compact-looking square root terms, and it works with both tfrac and dfrac.



      Observe that if you, alternatively, replaced 16a^2 in the first denominator with 16a^2mathstrut, the two square root symbols would also have equal sizes. However, they would be much taller -- excessively and unnecessarily so, IMNSHO -- than with the adjustment suggested above.



      enter image description here



      documentclassarticle
      usepackageamsmath
      begindocument
      [
      sqrtdfrac1+2cdot4a^2+(4a^2)^216a^2
      =sqrtdfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2
      ]

      [
      sqrttfrac1+2cdot4a^2+(4a^2)^216a^2
      =sqrttfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2
      ]
      enddocument






      share|improve this answer















      share|improve this answer




      share|improve this answer








      edited Jul 24 at 12:28

























      answered Jul 23 at 21:57









      MicoMico

      312k33 gold badges434 silver badges850 bronze badges




      312k33 gold badges434 silver badges850 bronze badges















      • Please see comment in the question, I might have put it in the wrong place… Perhaps it should have been here.

        – mf67
        Jul 24 at 10:34











      • @mf67 - Please see the comment I left below your follow-up comment. Did I answer your question? Please advise.

        – Mico
        Jul 24 at 12:35











      • I don't fully understand the effect of smash it seems. I thought that smash(4a)^2 would remove any height and 'equal' it to, e.g. an "a" or "x" and thus not extend the root sign any deeper. Instead it seems like it, as you write, places the exponent higher, but normal, than in smash(4a)^2 and thus forces down the base and therefore the depth of the root sign. A 0-height box, as I thought smash(4a)^2 was, would not do that? The smash(4a)^2 'compress' the exponent and, although not extremely disturbingly 'ugly', it looks a bit different from the a^2 in the numerator.

        – mf67
        Jul 24 at 17:12












      • @mf67 - I don't thinks it's entirely correct to call smash(4a)^2 a "zero-height box". Please compile [ sqrtfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2 = sqrtfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2 = sqrtfrac1+2cdot4a^2+(4a^2)^2smashsmash(4a)^2 ]. You'll see that the square root term in the middle, which contains smash(4a)^2, is taller than the other two. It looks like it's necessary to smash the term (4a)^2 twice in order to obtain the compact square root expression shown on the left. That's why I recommended writing smash(4a)^2...

        – Mico
        Jul 24 at 17:47












      • @mf67 - If this topic continues to puzzle you, may I suggest that you post a new query, in which you would ask for an explanation of how exactly smash works? There are some amazing TeX wizards on this site; they can explain how smash works in all gory detail -- and much much better than I ever could.

        – Mico
        Jul 24 at 17:50


















      • Please see comment in the question, I might have put it in the wrong place… Perhaps it should have been here.

        – mf67
        Jul 24 at 10:34











      • @mf67 - Please see the comment I left below your follow-up comment. Did I answer your question? Please advise.

        – Mico
        Jul 24 at 12:35











      • I don't fully understand the effect of smash it seems. I thought that smash(4a)^2 would remove any height and 'equal' it to, e.g. an "a" or "x" and thus not extend the root sign any deeper. Instead it seems like it, as you write, places the exponent higher, but normal, than in smash(4a)^2 and thus forces down the base and therefore the depth of the root sign. A 0-height box, as I thought smash(4a)^2 was, would not do that? The smash(4a)^2 'compress' the exponent and, although not extremely disturbingly 'ugly', it looks a bit different from the a^2 in the numerator.

        – mf67
        Jul 24 at 17:12












      • @mf67 - I don't thinks it's entirely correct to call smash(4a)^2 a "zero-height box". Please compile [ sqrtfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2 = sqrtfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2 = sqrtfrac1+2cdot4a^2+(4a^2)^2smashsmash(4a)^2 ]. You'll see that the square root term in the middle, which contains smash(4a)^2, is taller than the other two. It looks like it's necessary to smash the term (4a)^2 twice in order to obtain the compact square root expression shown on the left. That's why I recommended writing smash(4a)^2...

        – Mico
        Jul 24 at 17:47












      • @mf67 - If this topic continues to puzzle you, may I suggest that you post a new query, in which you would ask for an explanation of how exactly smash works? There are some amazing TeX wizards on this site; they can explain how smash works in all gory detail -- and much much better than I ever could.

        – Mico
        Jul 24 at 17:50

















      Please see comment in the question, I might have put it in the wrong place… Perhaps it should have been here.

      – mf67
      Jul 24 at 10:34





      Please see comment in the question, I might have put it in the wrong place… Perhaps it should have been here.

      – mf67
      Jul 24 at 10:34













      @mf67 - Please see the comment I left below your follow-up comment. Did I answer your question? Please advise.

      – Mico
      Jul 24 at 12:35





      @mf67 - Please see the comment I left below your follow-up comment. Did I answer your question? Please advise.

      – Mico
      Jul 24 at 12:35













      I don't fully understand the effect of smash it seems. I thought that smash(4a)^2 would remove any height and 'equal' it to, e.g. an "a" or "x" and thus not extend the root sign any deeper. Instead it seems like it, as you write, places the exponent higher, but normal, than in smash(4a)^2 and thus forces down the base and therefore the depth of the root sign. A 0-height box, as I thought smash(4a)^2 was, would not do that? The smash(4a)^2 'compress' the exponent and, although not extremely disturbingly 'ugly', it looks a bit different from the a^2 in the numerator.

      – mf67
      Jul 24 at 17:12






      I don't fully understand the effect of smash it seems. I thought that smash(4a)^2 would remove any height and 'equal' it to, e.g. an "a" or "x" and thus not extend the root sign any deeper. Instead it seems like it, as you write, places the exponent higher, but normal, than in smash(4a)^2 and thus forces down the base and therefore the depth of the root sign. A 0-height box, as I thought smash(4a)^2 was, would not do that? The smash(4a)^2 'compress' the exponent and, although not extremely disturbingly 'ugly', it looks a bit different from the a^2 in the numerator.

      – mf67
      Jul 24 at 17:12














      @mf67 - I don't thinks it's entirely correct to call smash(4a)^2 a "zero-height box". Please compile [ sqrtfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2 = sqrtfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2 = sqrtfrac1+2cdot4a^2+(4a^2)^2smashsmash(4a)^2 ]. You'll see that the square root term in the middle, which contains smash(4a)^2, is taller than the other two. It looks like it's necessary to smash the term (4a)^2 twice in order to obtain the compact square root expression shown on the left. That's why I recommended writing smash(4a)^2...

      – Mico
      Jul 24 at 17:47






      @mf67 - I don't thinks it's entirely correct to call smash(4a)^2 a "zero-height box". Please compile [ sqrtfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2 = sqrtfrac1+2cdot4a^2+(4a^2)^2smash(4a)^2 = sqrtfrac1+2cdot4a^2+(4a^2)^2smashsmash(4a)^2 ]. You'll see that the square root term in the middle, which contains smash(4a)^2, is taller than the other two. It looks like it's necessary to smash the term (4a)^2 twice in order to obtain the compact square root expression shown on the left. That's why I recommended writing smash(4a)^2...

      – Mico
      Jul 24 at 17:47














      @mf67 - If this topic continues to puzzle you, may I suggest that you post a new query, in which you would ask for an explanation of how exactly smash works? There are some amazing TeX wizards on this site; they can explain how smash works in all gory detail -- and much much better than I ever could.

      – Mico
      Jul 24 at 17:50






      @mf67 - If this topic continues to puzzle you, may I suggest that you post a new query, in which you would ask for an explanation of how exactly smash works? There are some amazing TeX wizards on this site; they can explain how smash works in all gory detail -- and much much better than I ever could.

      – Mico
      Jul 24 at 17:50














      11


















      Equalizing radicals is something of a black art.



      The difference is due to the right hand side having parentheses. We can cope with this by adding mathstrut in the left hand side denominator. But this makes TeX choose the next size for the radical. Using smash[b]... for the denominator doesn't help.



      The problem is that tfrac imposes textstyle, which has raised denominators. One could use cramped from mathtools, but there's a slicker solution:



      documentclassarticle
      usepackageamsmath

      begindocument

      [
      textstyle
      sqrtfrac1+2cdot4a^2+(4a^2)^2mathstrut 16a^2
      =sqrtfrac1+2cdot4a^2+(4a^2)^2(4a)^2
      ]

      enddocument


      enter image description here






      share|improve this answer






























        11


















        Equalizing radicals is something of a black art.



        The difference is due to the right hand side having parentheses. We can cope with this by adding mathstrut in the left hand side denominator. But this makes TeX choose the next size for the radical. Using smash[b]... for the denominator doesn't help.



        The problem is that tfrac imposes textstyle, which has raised denominators. One could use cramped from mathtools, but there's a slicker solution:



        documentclassarticle
        usepackageamsmath

        begindocument

        [
        textstyle
        sqrtfrac1+2cdot4a^2+(4a^2)^2mathstrut 16a^2
        =sqrtfrac1+2cdot4a^2+(4a^2)^2(4a)^2
        ]

        enddocument


        enter image description here






        share|improve this answer




























          11














          11










          11









          Equalizing radicals is something of a black art.



          The difference is due to the right hand side having parentheses. We can cope with this by adding mathstrut in the left hand side denominator. But this makes TeX choose the next size for the radical. Using smash[b]... for the denominator doesn't help.



          The problem is that tfrac imposes textstyle, which has raised denominators. One could use cramped from mathtools, but there's a slicker solution:



          documentclassarticle
          usepackageamsmath

          begindocument

          [
          textstyle
          sqrtfrac1+2cdot4a^2+(4a^2)^2mathstrut 16a^2
          =sqrtfrac1+2cdot4a^2+(4a^2)^2(4a)^2
          ]

          enddocument


          enter image description here






          share|improve this answer














          Equalizing radicals is something of a black art.



          The difference is due to the right hand side having parentheses. We can cope with this by adding mathstrut in the left hand side denominator. But this makes TeX choose the next size for the radical. Using smash[b]... for the denominator doesn't help.



          The problem is that tfrac imposes textstyle, which has raised denominators. One could use cramped from mathtools, but there's a slicker solution:



          documentclassarticle
          usepackageamsmath

          begindocument

          [
          textstyle
          sqrtfrac1+2cdot4a^2+(4a^2)^2mathstrut 16a^2
          =sqrtfrac1+2cdot4a^2+(4a^2)^2(4a)^2
          ]

          enddocument


          enter image description here







          share|improve this answer













          share|improve this answer




          share|improve this answer










          answered Jul 23 at 22:32









          egregegreg

          781k93 gold badges2033 silver badges3402 bronze badges




          781k93 gold badges2033 silver badges3402 bronze badges
























              5


















              A simple vphantom will do the trick. And, please, don't use the plain TeX construct $$ ... $$ for unnumbered displayed equations. Use [ ... ] instead.



              documentclass[11pt, a4paper]article
              usepackageamsmath

              begindocument

              [ sqrttfrac1+2cdot4a^2+(4a^2)^2vphantom)16a^2 =sqrttfrac1+2cdot4a^2+(4a^2)^2(4a)^2 ]

              enddocument


              enter image description here






              share|improve this answer
































                5


















                A simple vphantom will do the trick. And, please, don't use the plain TeX construct $$ ... $$ for unnumbered displayed equations. Use [ ... ] instead.



                documentclass[11pt, a4paper]article
                usepackageamsmath

                begindocument

                [ sqrttfrac1+2cdot4a^2+(4a^2)^2vphantom)16a^2 =sqrttfrac1+2cdot4a^2+(4a^2)^2(4a)^2 ]

                enddocument


                enter image description here






                share|improve this answer






























                  5














                  5










                  5









                  A simple vphantom will do the trick. And, please, don't use the plain TeX construct $$ ... $$ for unnumbered displayed equations. Use [ ... ] instead.



                  documentclass[11pt, a4paper]article
                  usepackageamsmath

                  begindocument

                  [ sqrttfrac1+2cdot4a^2+(4a^2)^2vphantom)16a^2 =sqrttfrac1+2cdot4a^2+(4a^2)^2(4a)^2 ]

                  enddocument


                  enter image description here






                  share|improve this answer
















                  A simple vphantom will do the trick. And, please, don't use the plain TeX construct $$ ... $$ for unnumbered displayed equations. Use [ ... ] instead.



                  documentclass[11pt, a4paper]article
                  usepackageamsmath

                  begindocument

                  [ sqrttfrac1+2cdot4a^2+(4a^2)^2vphantom)16a^2 =sqrttfrac1+2cdot4a^2+(4a^2)^2(4a)^2 ]

                  enddocument


                  enter image description here







                  share|improve this answer















                  share|improve this answer




                  share|improve this answer








                  edited Jul 24 at 17:59

























                  answered Jul 23 at 21:55









                  BernardBernard

                  197k8 gold badges88 silver badges233 bronze badges




                  197k8 gold badges88 silver badges233 bronze badges































                      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%2f501189%2fcorrect-use-of-smash-with-math-and-root-signs%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

                      Tamil (spriik) Luke uk diar | Nawigatjuun

                      Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                      Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?