Badly scaling closing SQRT symbol with large font sizes

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











up vote
3
down vote

favorite












I prefer the SQRT symbol with the closing downward tick, and have been using this answer to achieve the desired effect. However, when I hugely increase the font size and use fixcmex to achieve some nicely scaling symbols (required for a nice fix to matplotlib plotting) the SQRT downward tick no longer scales nicely.



Compare



Normal font size



enter image description here



Massive font size (50pt)



enter image description here



MWE



documentclassarticle

usepackagelmodern,amsmath,amssymb,bm,physics,letltxmacro,fixcmex

% Gives the nice SQRT symbol.
makeatletter
letoldr@@tr@@t
defr@@t#1#2%
setbox0=hbox$oldr@@t#1#2,$dimen0=ht0
advancedimen0-0.2ht0
setbox2=hboxvrule heightht0 depth -dimen0%
box0lower0.4ptbox2
LetLtxMacrooldsqrtsqrt
renewcommand*sqrt[2][ ]oldsqrt[#1]#2
makeatother

usepackage[papersize=12in,12in,body=10in,10in,margin=1in,1in]geometry
pagestyleempty

begindocument
fontsize50.00000062.500000rmfamily % Comment out for normal
$sqrtD_3 ,textrmRMSE(X, Y)$
% Comment out for normal
enddocument


PS - I would like to keep using the physics package.







share|improve this question
























    up vote
    3
    down vote

    favorite












    I prefer the SQRT symbol with the closing downward tick, and have been using this answer to achieve the desired effect. However, when I hugely increase the font size and use fixcmex to achieve some nicely scaling symbols (required for a nice fix to matplotlib plotting) the SQRT downward tick no longer scales nicely.



    Compare



    Normal font size



    enter image description here



    Massive font size (50pt)



    enter image description here



    MWE



    documentclassarticle

    usepackagelmodern,amsmath,amssymb,bm,physics,letltxmacro,fixcmex

    % Gives the nice SQRT symbol.
    makeatletter
    letoldr@@tr@@t
    defr@@t#1#2%
    setbox0=hbox$oldr@@t#1#2,$dimen0=ht0
    advancedimen0-0.2ht0
    setbox2=hboxvrule heightht0 depth -dimen0%
    box0lower0.4ptbox2
    LetLtxMacrooldsqrtsqrt
    renewcommand*sqrt[2][ ]oldsqrt[#1]#2
    makeatother

    usepackage[papersize=12in,12in,body=10in,10in,margin=1in,1in]geometry
    pagestyleempty

    begindocument
    fontsize50.00000062.500000rmfamily % Comment out for normal
    $sqrtD_3 ,textrmRMSE(X, Y)$
    % Comment out for normal
    enddocument


    PS - I would like to keep using the physics package.







    share|improve this question






















      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I prefer the SQRT symbol with the closing downward tick, and have been using this answer to achieve the desired effect. However, when I hugely increase the font size and use fixcmex to achieve some nicely scaling symbols (required for a nice fix to matplotlib plotting) the SQRT downward tick no longer scales nicely.



      Compare



      Normal font size



      enter image description here



      Massive font size (50pt)



      enter image description here



      MWE



      documentclassarticle

      usepackagelmodern,amsmath,amssymb,bm,physics,letltxmacro,fixcmex

      % Gives the nice SQRT symbol.
      makeatletter
      letoldr@@tr@@t
      defr@@t#1#2%
      setbox0=hbox$oldr@@t#1#2,$dimen0=ht0
      advancedimen0-0.2ht0
      setbox2=hboxvrule heightht0 depth -dimen0%
      box0lower0.4ptbox2
      LetLtxMacrooldsqrtsqrt
      renewcommand*sqrt[2][ ]oldsqrt[#1]#2
      makeatother

      usepackage[papersize=12in,12in,body=10in,10in,margin=1in,1in]geometry
      pagestyleempty

      begindocument
      fontsize50.00000062.500000rmfamily % Comment out for normal
      $sqrtD_3 ,textrmRMSE(X, Y)$
      % Comment out for normal
      enddocument


      PS - I would like to keep using the physics package.







      share|improve this question












      I prefer the SQRT symbol with the closing downward tick, and have been using this answer to achieve the desired effect. However, when I hugely increase the font size and use fixcmex to achieve some nicely scaling symbols (required for a nice fix to matplotlib plotting) the SQRT downward tick no longer scales nicely.



      Compare



      Normal font size



      enter image description here



      Massive font size (50pt)



      enter image description here



      MWE



      documentclassarticle

      usepackagelmodern,amsmath,amssymb,bm,physics,letltxmacro,fixcmex

      % Gives the nice SQRT symbol.
      makeatletter
      letoldr@@tr@@t
      defr@@t#1#2%
      setbox0=hbox$oldr@@t#1#2,$dimen0=ht0
      advancedimen0-0.2ht0
      setbox2=hboxvrule heightht0 depth -dimen0%
      box0lower0.4ptbox2
      LetLtxMacrooldsqrtsqrt
      renewcommand*sqrt[2][ ]oldsqrt[#1]#2
      makeatother

      usepackage[papersize=12in,12in,body=10in,10in,margin=1in,1in]geometry
      pagestyleempty

      begindocument
      fontsize50.00000062.500000rmfamily % Comment out for normal
      $sqrtD_3 ,textrmRMSE(X, Y)$
      % Comment out for normal
      enddocument


      PS - I would like to keep using the physics package.









      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 4 at 11:14









      oliversm

      33129




      33129




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          5
          down vote



          accepted










          As you can see in the macros definitions, the width of the added rule is omitted (assumed 0.4pt), and also the downward shift is fixed to 0.4pt which doesn't match large font sizes. You can use relative sizes (ex or em) as itn the following modification of the code:



          documentclassarticle

          usepackagelmodern,amsmath,amssymb,bm,physics,letltxmacro,fixcmex

          % Gives the nice SQRT symbol.
          makeatletter
          letoldr@@tr@@t
          defr@@t#1#2%
          setbox0=hbox$oldr@@t#1#2,$dimen0=ht0
          advancedimen0-0.2ht0
          setbox2=hboxvrule width 0.035em heightht0 depth -dimen0%
          box0lower0.095exbox2
          LetLtxMacrooldsqrtsqrt
          renewcommand*sqrt[2][ ]oldsqrt[#1]#2
          makeatother

          usepackage[papersize=12in,12in,body=10in,10in,margin=1in,1in]geometry
          pagestyleempty

          begindocument
          $sqrtD_3 ,textrmRMSE(X, Y)$

          fontsize2024rmfamily
          $sqrtD_3 ,textrmRMSE(X, Y)$


          fontsize3036rmfamily
          $sqrtD_3 ,textrmRMSE(X, Y)$


          fontsize4048rmfamily
          $sqrtD_3 ,textrmRMSE(X, Y)$


          fontsize5060rmfamily
          $sqrtD_3 ,textrmRMSE(X, Y)$

          enddocument


          The result is:



          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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2f449248%2fbadly-scaling-closing-sqrt-symbol-with-large-font-sizes%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            5
            down vote



            accepted










            As you can see in the macros definitions, the width of the added rule is omitted (assumed 0.4pt), and also the downward shift is fixed to 0.4pt which doesn't match large font sizes. You can use relative sizes (ex or em) as itn the following modification of the code:



            documentclassarticle

            usepackagelmodern,amsmath,amssymb,bm,physics,letltxmacro,fixcmex

            % Gives the nice SQRT symbol.
            makeatletter
            letoldr@@tr@@t
            defr@@t#1#2%
            setbox0=hbox$oldr@@t#1#2,$dimen0=ht0
            advancedimen0-0.2ht0
            setbox2=hboxvrule width 0.035em heightht0 depth -dimen0%
            box0lower0.095exbox2
            LetLtxMacrooldsqrtsqrt
            renewcommand*sqrt[2][ ]oldsqrt[#1]#2
            makeatother

            usepackage[papersize=12in,12in,body=10in,10in,margin=1in,1in]geometry
            pagestyleempty

            begindocument
            $sqrtD_3 ,textrmRMSE(X, Y)$

            fontsize2024rmfamily
            $sqrtD_3 ,textrmRMSE(X, Y)$


            fontsize3036rmfamily
            $sqrtD_3 ,textrmRMSE(X, Y)$


            fontsize4048rmfamily
            $sqrtD_3 ,textrmRMSE(X, Y)$


            fontsize5060rmfamily
            $sqrtD_3 ,textrmRMSE(X, Y)$

            enddocument


            The result is:



            enter image description here






            share|improve this answer
























              up vote
              5
              down vote



              accepted










              As you can see in the macros definitions, the width of the added rule is omitted (assumed 0.4pt), and also the downward shift is fixed to 0.4pt which doesn't match large font sizes. You can use relative sizes (ex or em) as itn the following modification of the code:



              documentclassarticle

              usepackagelmodern,amsmath,amssymb,bm,physics,letltxmacro,fixcmex

              % Gives the nice SQRT symbol.
              makeatletter
              letoldr@@tr@@t
              defr@@t#1#2%
              setbox0=hbox$oldr@@t#1#2,$dimen0=ht0
              advancedimen0-0.2ht0
              setbox2=hboxvrule width 0.035em heightht0 depth -dimen0%
              box0lower0.095exbox2
              LetLtxMacrooldsqrtsqrt
              renewcommand*sqrt[2][ ]oldsqrt[#1]#2
              makeatother

              usepackage[papersize=12in,12in,body=10in,10in,margin=1in,1in]geometry
              pagestyleempty

              begindocument
              $sqrtD_3 ,textrmRMSE(X, Y)$

              fontsize2024rmfamily
              $sqrtD_3 ,textrmRMSE(X, Y)$


              fontsize3036rmfamily
              $sqrtD_3 ,textrmRMSE(X, Y)$


              fontsize4048rmfamily
              $sqrtD_3 ,textrmRMSE(X, Y)$


              fontsize5060rmfamily
              $sqrtD_3 ,textrmRMSE(X, Y)$

              enddocument


              The result is:



              enter image description here






              share|improve this answer






















                up vote
                5
                down vote



                accepted







                up vote
                5
                down vote



                accepted






                As you can see in the macros definitions, the width of the added rule is omitted (assumed 0.4pt), and also the downward shift is fixed to 0.4pt which doesn't match large font sizes. You can use relative sizes (ex or em) as itn the following modification of the code:



                documentclassarticle

                usepackagelmodern,amsmath,amssymb,bm,physics,letltxmacro,fixcmex

                % Gives the nice SQRT symbol.
                makeatletter
                letoldr@@tr@@t
                defr@@t#1#2%
                setbox0=hbox$oldr@@t#1#2,$dimen0=ht0
                advancedimen0-0.2ht0
                setbox2=hboxvrule width 0.035em heightht0 depth -dimen0%
                box0lower0.095exbox2
                LetLtxMacrooldsqrtsqrt
                renewcommand*sqrt[2][ ]oldsqrt[#1]#2
                makeatother

                usepackage[papersize=12in,12in,body=10in,10in,margin=1in,1in]geometry
                pagestyleempty

                begindocument
                $sqrtD_3 ,textrmRMSE(X, Y)$

                fontsize2024rmfamily
                $sqrtD_3 ,textrmRMSE(X, Y)$


                fontsize3036rmfamily
                $sqrtD_3 ,textrmRMSE(X, Y)$


                fontsize4048rmfamily
                $sqrtD_3 ,textrmRMSE(X, Y)$


                fontsize5060rmfamily
                $sqrtD_3 ,textrmRMSE(X, Y)$

                enddocument


                The result is:



                enter image description here






                share|improve this answer












                As you can see in the macros definitions, the width of the added rule is omitted (assumed 0.4pt), and also the downward shift is fixed to 0.4pt which doesn't match large font sizes. You can use relative sizes (ex or em) as itn the following modification of the code:



                documentclassarticle

                usepackagelmodern,amsmath,amssymb,bm,physics,letltxmacro,fixcmex

                % Gives the nice SQRT symbol.
                makeatletter
                letoldr@@tr@@t
                defr@@t#1#2%
                setbox0=hbox$oldr@@t#1#2,$dimen0=ht0
                advancedimen0-0.2ht0
                setbox2=hboxvrule width 0.035em heightht0 depth -dimen0%
                box0lower0.095exbox2
                LetLtxMacrooldsqrtsqrt
                renewcommand*sqrt[2][ ]oldsqrt[#1]#2
                makeatother

                usepackage[papersize=12in,12in,body=10in,10in,margin=1in,1in]geometry
                pagestyleempty

                begindocument
                $sqrtD_3 ,textrmRMSE(X, Y)$

                fontsize2024rmfamily
                $sqrtD_3 ,textrmRMSE(X, Y)$


                fontsize3036rmfamily
                $sqrtD_3 ,textrmRMSE(X, Y)$


                fontsize4048rmfamily
                $sqrtD_3 ,textrmRMSE(X, Y)$


                fontsize5060rmfamily
                $sqrtD_3 ,textrmRMSE(X, Y)$

                enddocument


                The result is:



                enter image description here







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Sep 4 at 11:49









                Sergei Golovan

                3,6701413




                3,6701413



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f449248%2fbadly-scaling-closing-sqrt-symbol-with-large-font-sizes%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    What does second last employer means? [closed]

                    List of Gilmore Girls characters

                    Confectionery