problem with tilde and squaring overlined symbols, stix2












3















I have problem with the following math text:
enter image description here



As you can see, the tilde over S is not actually wide, but it's squared nicely. On the other hand, the overline over the X is okay, but the deuce is placed ugly.



Im using Stix 2.0. I'd like to have tilde as wide as overline over the X and the square of X be positioned properly.



How to achieve it without changing math font?



I use XeLaTex. Stix2 is loaded as in MWE:



MWE:



documentclass[11pt]{article}
usepackage{fontspec}
usepackage{xunicode}
usepackage{unicode-math}
setmathfont{STIX2Math.otf}[StylisticSet=02]
begin{document}
$$widetilde{S}^2 = int x^2 dF_n - left(int x dF_nright)^2
= frac{1}{n}sum X_i^2 - overline{X}^2$$
end{document}









share|improve this question




















  • 1





    Welcome to TeX.SE! Please show the compilable code resulting in your shown screenshot.

    – Kurt
    Mar 15 at 17:21











  • Please tell us whether you use XeLaTeX or LuaLaTeX and how exactly you load the Stix Two Math font.

    – Mico
    Mar 15 at 19:02













  • @Mico, i've edited the question

    – Ilya68
    Mar 15 at 19:11











  • Welcome to TeX.SX. When you post a question, please provide a "Minimal Working Example" (MWE) that starts with documentclass, includes all relevant usepackage commands, ends with end{document} and compiles without errors, even if it does not produce your desired output.

    – Sandy G
    Mar 15 at 20:22











  • @SandyG, thx, I've edited the answer again!

    – Ilya68
    Mar 15 at 20:51


















3















I have problem with the following math text:
enter image description here



As you can see, the tilde over S is not actually wide, but it's squared nicely. On the other hand, the overline over the X is okay, but the deuce is placed ugly.



Im using Stix 2.0. I'd like to have tilde as wide as overline over the X and the square of X be positioned properly.



How to achieve it without changing math font?



I use XeLaTex. Stix2 is loaded as in MWE:



MWE:



documentclass[11pt]{article}
usepackage{fontspec}
usepackage{xunicode}
usepackage{unicode-math}
setmathfont{STIX2Math.otf}[StylisticSet=02]
begin{document}
$$widetilde{S}^2 = int x^2 dF_n - left(int x dF_nright)^2
= frac{1}{n}sum X_i^2 - overline{X}^2$$
end{document}









share|improve this question




















  • 1





    Welcome to TeX.SE! Please show the compilable code resulting in your shown screenshot.

    – Kurt
    Mar 15 at 17:21











  • Please tell us whether you use XeLaTeX or LuaLaTeX and how exactly you load the Stix Two Math font.

    – Mico
    Mar 15 at 19:02













  • @Mico, i've edited the question

    – Ilya68
    Mar 15 at 19:11











  • Welcome to TeX.SX. When you post a question, please provide a "Minimal Working Example" (MWE) that starts with documentclass, includes all relevant usepackage commands, ends with end{document} and compiles without errors, even if it does not produce your desired output.

    – Sandy G
    Mar 15 at 20:22











  • @SandyG, thx, I've edited the answer again!

    – Ilya68
    Mar 15 at 20:51
















3












3








3








I have problem with the following math text:
enter image description here



As you can see, the tilde over S is not actually wide, but it's squared nicely. On the other hand, the overline over the X is okay, but the deuce is placed ugly.



Im using Stix 2.0. I'd like to have tilde as wide as overline over the X and the square of X be positioned properly.



How to achieve it without changing math font?



I use XeLaTex. Stix2 is loaded as in MWE:



MWE:



documentclass[11pt]{article}
usepackage{fontspec}
usepackage{xunicode}
usepackage{unicode-math}
setmathfont{STIX2Math.otf}[StylisticSet=02]
begin{document}
$$widetilde{S}^2 = int x^2 dF_n - left(int x dF_nright)^2
= frac{1}{n}sum X_i^2 - overline{X}^2$$
end{document}









share|improve this question
















I have problem with the following math text:
enter image description here



As you can see, the tilde over S is not actually wide, but it's squared nicely. On the other hand, the overline over the X is okay, but the deuce is placed ugly.



Im using Stix 2.0. I'd like to have tilde as wide as overline over the X and the square of X be positioned properly.



How to achieve it without changing math font?



I use XeLaTex. Stix2 is loaded as in MWE:



MWE:



documentclass[11pt]{article}
usepackage{fontspec}
usepackage{xunicode}
usepackage{unicode-math}
setmathfont{STIX2Math.otf}[StylisticSet=02]
begin{document}
$$widetilde{S}^2 = int x^2 dF_n - left(int x dF_nright)^2
= frac{1}{n}sum X_i^2 - overline{X}^2$$
end{document}






tilde stix






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 15 at 20:50







Ilya68

















asked Mar 15 at 17:19









Ilya68Ilya68

184




184








  • 1





    Welcome to TeX.SE! Please show the compilable code resulting in your shown screenshot.

    – Kurt
    Mar 15 at 17:21











  • Please tell us whether you use XeLaTeX or LuaLaTeX and how exactly you load the Stix Two Math font.

    – Mico
    Mar 15 at 19:02













  • @Mico, i've edited the question

    – Ilya68
    Mar 15 at 19:11











  • Welcome to TeX.SX. When you post a question, please provide a "Minimal Working Example" (MWE) that starts with documentclass, includes all relevant usepackage commands, ends with end{document} and compiles without errors, even if it does not produce your desired output.

    – Sandy G
    Mar 15 at 20:22











  • @SandyG, thx, I've edited the answer again!

    – Ilya68
    Mar 15 at 20:51
















  • 1





    Welcome to TeX.SE! Please show the compilable code resulting in your shown screenshot.

    – Kurt
    Mar 15 at 17:21











  • Please tell us whether you use XeLaTeX or LuaLaTeX and how exactly you load the Stix Two Math font.

    – Mico
    Mar 15 at 19:02













  • @Mico, i've edited the question

    – Ilya68
    Mar 15 at 19:11











  • Welcome to TeX.SX. When you post a question, please provide a "Minimal Working Example" (MWE) that starts with documentclass, includes all relevant usepackage commands, ends with end{document} and compiles without errors, even if it does not produce your desired output.

    – Sandy G
    Mar 15 at 20:22











  • @SandyG, thx, I've edited the answer again!

    – Ilya68
    Mar 15 at 20:51










1




1





Welcome to TeX.SE! Please show the compilable code resulting in your shown screenshot.

– Kurt
Mar 15 at 17:21





Welcome to TeX.SE! Please show the compilable code resulting in your shown screenshot.

– Kurt
Mar 15 at 17:21













Please tell us whether you use XeLaTeX or LuaLaTeX and how exactly you load the Stix Two Math font.

– Mico
Mar 15 at 19:02







Please tell us whether you use XeLaTeX or LuaLaTeX and how exactly you load the Stix Two Math font.

– Mico
Mar 15 at 19:02















@Mico, i've edited the question

– Ilya68
Mar 15 at 19:11





@Mico, i've edited the question

– Ilya68
Mar 15 at 19:11













Welcome to TeX.SX. When you post a question, please provide a "Minimal Working Example" (MWE) that starts with documentclass, includes all relevant usepackage commands, ends with end{document} and compiles without errors, even if it does not produce your desired output.

– Sandy G
Mar 15 at 20:22





Welcome to TeX.SX. When you post a question, please provide a "Minimal Working Example" (MWE) that starts with documentclass, includes all relevant usepackage commands, ends with end{document} and compiles without errors, even if it does not produce your desired output.

– Sandy G
Mar 15 at 20:22













@SandyG, thx, I've edited the answer again!

– Ilya68
Mar 15 at 20:51







@SandyG, thx, I've edited the answer again!

– Ilya68
Mar 15 at 20:51












1 Answer
1






active

oldest

votes


















3














You can use wideoverbar instead of overline.



For the tilde, you can substitute it with the one from TeX Gyre Termes, but some low level tricks are necessary.



documentclass[11pt]{article}

usepackage{amsmath}
usepackage{fontspec}
usepackage{unicode-math}

setmainfont{TeX Gyre Termes}
setmathfont{STIX2Math.otf}[StylisticSet=02]

newfontface{termesmath}{texgyretermes-math.otf}[NFSSFamily=termesmath]
DeclareSymbolFont{termesmath}{TU}{termesmath}{m}{n}

AtBeginDocument{%
protecteddefwidetilde{Umathaccent 7 symtermesmath "00303relax}%
}

begin{document}

[
widetilde{S}^2
= int x^2 ,dF_n - left(,int x ,dF_nright)^{!2}
= frac{1}{n}sum X_i^2 - wideoverbar{X}^2
]

end{document}


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%2f479672%2fproblem-with-tilde-and-squaring-overlined-symbols-stix2%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    You can use wideoverbar instead of overline.



    For the tilde, you can substitute it with the one from TeX Gyre Termes, but some low level tricks are necessary.



    documentclass[11pt]{article}

    usepackage{amsmath}
    usepackage{fontspec}
    usepackage{unicode-math}

    setmainfont{TeX Gyre Termes}
    setmathfont{STIX2Math.otf}[StylisticSet=02]

    newfontface{termesmath}{texgyretermes-math.otf}[NFSSFamily=termesmath]
    DeclareSymbolFont{termesmath}{TU}{termesmath}{m}{n}

    AtBeginDocument{%
    protecteddefwidetilde{Umathaccent 7 symtermesmath "00303relax}%
    }

    begin{document}

    [
    widetilde{S}^2
    = int x^2 ,dF_n - left(,int x ,dF_nright)^{!2}
    = frac{1}{n}sum X_i^2 - wideoverbar{X}^2
    ]

    end{document}


    enter image description here






    share|improve this answer




























      3














      You can use wideoverbar instead of overline.



      For the tilde, you can substitute it with the one from TeX Gyre Termes, but some low level tricks are necessary.



      documentclass[11pt]{article}

      usepackage{amsmath}
      usepackage{fontspec}
      usepackage{unicode-math}

      setmainfont{TeX Gyre Termes}
      setmathfont{STIX2Math.otf}[StylisticSet=02]

      newfontface{termesmath}{texgyretermes-math.otf}[NFSSFamily=termesmath]
      DeclareSymbolFont{termesmath}{TU}{termesmath}{m}{n}

      AtBeginDocument{%
      protecteddefwidetilde{Umathaccent 7 symtermesmath "00303relax}%
      }

      begin{document}

      [
      widetilde{S}^2
      = int x^2 ,dF_n - left(,int x ,dF_nright)^{!2}
      = frac{1}{n}sum X_i^2 - wideoverbar{X}^2
      ]

      end{document}


      enter image description here






      share|improve this answer


























        3












        3








        3







        You can use wideoverbar instead of overline.



        For the tilde, you can substitute it with the one from TeX Gyre Termes, but some low level tricks are necessary.



        documentclass[11pt]{article}

        usepackage{amsmath}
        usepackage{fontspec}
        usepackage{unicode-math}

        setmainfont{TeX Gyre Termes}
        setmathfont{STIX2Math.otf}[StylisticSet=02]

        newfontface{termesmath}{texgyretermes-math.otf}[NFSSFamily=termesmath]
        DeclareSymbolFont{termesmath}{TU}{termesmath}{m}{n}

        AtBeginDocument{%
        protecteddefwidetilde{Umathaccent 7 symtermesmath "00303relax}%
        }

        begin{document}

        [
        widetilde{S}^2
        = int x^2 ,dF_n - left(,int x ,dF_nright)^{!2}
        = frac{1}{n}sum X_i^2 - wideoverbar{X}^2
        ]

        end{document}


        enter image description here






        share|improve this answer













        You can use wideoverbar instead of overline.



        For the tilde, you can substitute it with the one from TeX Gyre Termes, but some low level tricks are necessary.



        documentclass[11pt]{article}

        usepackage{amsmath}
        usepackage{fontspec}
        usepackage{unicode-math}

        setmainfont{TeX Gyre Termes}
        setmathfont{STIX2Math.otf}[StylisticSet=02]

        newfontface{termesmath}{texgyretermes-math.otf}[NFSSFamily=termesmath]
        DeclareSymbolFont{termesmath}{TU}{termesmath}{m}{n}

        AtBeginDocument{%
        protecteddefwidetilde{Umathaccent 7 symtermesmath "00303relax}%
        }

        begin{document}

        [
        widetilde{S}^2
        = int x^2 ,dF_n - left(,int x ,dF_nright)^{!2}
        = frac{1}{n}sum X_i^2 - wideoverbar{X}^2
        ]

        end{document}


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 15 at 23:24









        egregegreg

        729k8819263235




        729k8819263235






























            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%2f479672%2fproblem-with-tilde-and-squaring-overlined-symbols-stix2%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

            How to change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Can I use Tabulator js library in my java Spring + Thymeleaf project?