Formula in Latex: How to use special symbols in Latex?

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











up vote
2
down vote

favorite












I want to write following formula in Latex:



Formula



The problem is the "i" underneath "x". It is not a regular fraction. It means that value "x" will be replaced with "i". How can I write this one in Latex?
Additionally, the underlines are longer than the regular one which is used by typing "_". How can I modify the lenght of the underline?



 documentclass[12pt, a4paper]article
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[english,ngerman]babel
usepackageamsmath,amsfonts,amssymb,amstext

begindocument
$langle x,,underline,,,rangle_k,,langle underline,,,,x mapsto i,,underline,,,rangle_state$
enddocument


Hopefully, you can help me.



Thanks in advance










share|improve this question









New contributor




user2379123 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Welcome to TeX.SE! Please show us the code you have so far ...
    – Kurt
    3 hours ago










  • Welcome! TikZ... do your work!!
    – manooooh
    3 hours ago










  • I have edited my first post. There is the code.
    – user2379123
    3 hours ago










  • @user2379123 Can you undelete your previous question?
    – egreg
    1 hour ago














up vote
2
down vote

favorite












I want to write following formula in Latex:



Formula



The problem is the "i" underneath "x". It is not a regular fraction. It means that value "x" will be replaced with "i". How can I write this one in Latex?
Additionally, the underlines are longer than the regular one which is used by typing "_". How can I modify the lenght of the underline?



 documentclass[12pt, a4paper]article
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[english,ngerman]babel
usepackageamsmath,amsfonts,amssymb,amstext

begindocument
$langle x,,underline,,,rangle_k,,langle underline,,,,x mapsto i,,underline,,,rangle_state$
enddocument


Hopefully, you can help me.



Thanks in advance










share|improve this question









New contributor




user2379123 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Welcome to TeX.SE! Please show us the code you have so far ...
    – Kurt
    3 hours ago










  • Welcome! TikZ... do your work!!
    – manooooh
    3 hours ago










  • I have edited my first post. There is the code.
    – user2379123
    3 hours ago










  • @user2379123 Can you undelete your previous question?
    – egreg
    1 hour ago












up vote
2
down vote

favorite









up vote
2
down vote

favorite











I want to write following formula in Latex:



Formula



The problem is the "i" underneath "x". It is not a regular fraction. It means that value "x" will be replaced with "i". How can I write this one in Latex?
Additionally, the underlines are longer than the regular one which is used by typing "_". How can I modify the lenght of the underline?



 documentclass[12pt, a4paper]article
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[english,ngerman]babel
usepackageamsmath,amsfonts,amssymb,amstext

begindocument
$langle x,,underline,,,rangle_k,,langle underline,,,,x mapsto i,,underline,,,rangle_state$
enddocument


Hopefully, you can help me.



Thanks in advance










share|improve this question









New contributor




user2379123 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I want to write following formula in Latex:



Formula



The problem is the "i" underneath "x". It is not a regular fraction. It means that value "x" will be replaced with "i". How can I write this one in Latex?
Additionally, the underlines are longer than the regular one which is used by typing "_". How can I modify the lenght of the underline?



 documentclass[12pt, a4paper]article
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[english,ngerman]babel
usepackageamsmath,amsfonts,amssymb,amstext

begindocument
$langle x,,underline,,,rangle_k,,langle underline,,,,x mapsto i,,underline,,,rangle_state$
enddocument


Hopefully, you can help me.



Thanks in advance







math-mode underline






share|improve this question









New contributor




user2379123 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




user2379123 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 3 hours ago





















New contributor




user2379123 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 3 hours ago









user2379123

112




112




New contributor




user2379123 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





user2379123 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






user2379123 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • Welcome to TeX.SE! Please show us the code you have so far ...
    – Kurt
    3 hours ago










  • Welcome! TikZ... do your work!!
    – manooooh
    3 hours ago










  • I have edited my first post. There is the code.
    – user2379123
    3 hours ago










  • @user2379123 Can you undelete your previous question?
    – egreg
    1 hour ago
















  • Welcome to TeX.SE! Please show us the code you have so far ...
    – Kurt
    3 hours ago










  • Welcome! TikZ... do your work!!
    – manooooh
    3 hours ago










  • I have edited my first post. There is the code.
    – user2379123
    3 hours ago










  • @user2379123 Can you undelete your previous question?
    – egreg
    1 hour ago















Welcome to TeX.SE! Please show us the code you have so far ...
– Kurt
3 hours ago




Welcome to TeX.SE! Please show us the code you have so far ...
– Kurt
3 hours ago












Welcome! TikZ... do your work!!
– manooooh
3 hours ago




Welcome! TikZ... do your work!!
– manooooh
3 hours ago












I have edited my first post. There is the code.
– user2379123
3 hours ago




I have edited my first post. There is the code.
– user2379123
3 hours ago












@user2379123 Can you undelete your previous question?
– egreg
1 hour ago




@user2379123 Can you undelete your previous question?
– egreg
1 hour ago










1 Answer
1






active

oldest

votes

















up vote
2
down vote













Here's one idea. In the MWE, you can adjust the .7em specification to change the size of both the underscore and the mygap.



documentclassarticle
usepackagetabstackengine,amssymb
stackMath
newcommandudash[2][hrulefill]stackunder#2makebox[.7em]#1
newcommandmygapudash
begindocument
[
langletabbedShortunderstack
udashx&mygap&udash\ i&&rangle_k
langleudashmygap x mapsto imygapudashrangle_mathrmstate
]
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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );






    user2379123 is a new contributor. Be nice, and check out our Code of Conduct.









     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f457269%2fformula-in-latex-how-to-use-special-symbols-in-latex%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
    2
    down vote













    Here's one idea. In the MWE, you can adjust the .7em specification to change the size of both the underscore and the mygap.



    documentclassarticle
    usepackagetabstackengine,amssymb
    stackMath
    newcommandudash[2][hrulefill]stackunder#2makebox[.7em]#1
    newcommandmygapudash
    begindocument
    [
    langletabbedShortunderstack
    udashx&mygap&udash\ i&&rangle_k
    langleudashmygap x mapsto imygapudashrangle_mathrmstate
    ]
    enddocument


    enter image description here






    share|improve this answer


























      up vote
      2
      down vote













      Here's one idea. In the MWE, you can adjust the .7em specification to change the size of both the underscore and the mygap.



      documentclassarticle
      usepackagetabstackengine,amssymb
      stackMath
      newcommandudash[2][hrulefill]stackunder#2makebox[.7em]#1
      newcommandmygapudash
      begindocument
      [
      langletabbedShortunderstack
      udashx&mygap&udash\ i&&rangle_k
      langleudashmygap x mapsto imygapudashrangle_mathrmstate
      ]
      enddocument


      enter image description here






      share|improve this answer
























        up vote
        2
        down vote










        up vote
        2
        down vote









        Here's one idea. In the MWE, you can adjust the .7em specification to change the size of both the underscore and the mygap.



        documentclassarticle
        usepackagetabstackengine,amssymb
        stackMath
        newcommandudash[2][hrulefill]stackunder#2makebox[.7em]#1
        newcommandmygapudash
        begindocument
        [
        langletabbedShortunderstack
        udashx&mygap&udash\ i&&rangle_k
        langleudashmygap x mapsto imygapudashrangle_mathrmstate
        ]
        enddocument


        enter image description here






        share|improve this answer














        Here's one idea. In the MWE, you can adjust the .7em specification to change the size of both the underscore and the mygap.



        documentclassarticle
        usepackagetabstackengine,amssymb
        stackMath
        newcommandudash[2][hrulefill]stackunder#2makebox[.7em]#1
        newcommandmygapudash
        begindocument
        [
        langletabbedShortunderstack
        udashx&mygap&udash\ i&&rangle_k
        langleudashmygap x mapsto imygapudashrangle_mathrmstate
        ]
        enddocument


        enter image description here







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 2 hours ago

























        answered 2 hours ago









        Steven B. Segletes

        149k9188394




        149k9188394




















            user2379123 is a new contributor. Be nice, and check out our Code of Conduct.









             

            draft saved


            draft discarded


















            user2379123 is a new contributor. Be nice, and check out our Code of Conduct.












            user2379123 is a new contributor. Be nice, and check out our Code of Conduct.











            user2379123 is a new contributor. Be nice, and check out our Code of Conduct.













             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f457269%2fformula-in-latex-how-to-use-special-symbols-in-latex%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            Long meetings (6-7 hours a day): Being “babysat” by supervisor

            Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

            Confectionery