How to ignore kerning of underbrace in math modeFix math mode kerning of “C”Math-mode kerning/spacing of lettersCorrect kerning of hyperlinks in math modePoor kerning with adjacent uppercase variables in math modeChange kerning for `f'` in math modeMinionPro kerning math mode and punction (comma)Make Underbrace ignore BracketsUnderbrace Math ModeMultiline underbrace in math modeKerning numbers of endnotes

Check if three arrays contains the same element

Is it a bad idea to to run 24 tap and shock lands in standard

Are there any important biographies of nobodies?

Russian word for a male zebra

Active low-pass filters --- good to what frequencies?

How to use memset in c++?

How come the nude protesters were not arrested?

Teaching a class likely meant to inflate the GPA of student athletes

Who won a Game of Bar Dice?

Why didn't Voldemort recognize that Dumbledore was affected by his curse?

Should I ask for an extra raise?

Why did Sanhedrin deal with who has a share in Olam Habah?

Why can I traceroute to this IP address, but not ping?

What is the maximum number of net attacks that one can make in a round?

Is it safe to change the harddrive power feature so that it never turns off?

Why am I getting a strange double quote (“) in Open Office instead of the ordinary one (")?

How to safely destroy (a large quantity of) valid checks?

What ways have you found to get edits from non-LaTeX users?

Is it legal for a bar bouncer to confiscate a fake ID

How does the Around command at zero work?

Why is a common reference string needed in zero knowledge proofs?

How can I get an unreasonable manager to approve time off?

Fermat's statement about the ancients: How serious was he?

Electricity free spaceship



How to ignore kerning of underbrace in math mode


Fix math mode kerning of “C”Math-mode kerning/spacing of lettersCorrect kerning of hyperlinks in math modePoor kerning with adjacent uppercase variables in math modeChange kerning for `f'` in math modeMinionPro kerning math mode and punction (comma)Make Underbrace ignore BracketsUnderbrace Math ModeMultiline underbrace in math modeKerning numbers of endnotes













6















Is there a way to instruct LaTeX to ignore the text in the underbrace for purposes of kerning the equation in math mode?



beginalign
&x
underbrace(4-3y)_
textPositive $forall y in [0,1]$
+4y -1
endalign


enter image description here
.



I know that I can use mkern-30:



beginalign
x
mkern-30 % Adding this is a sub-par solution
underbrace(4-3y)_
textPositive $forall y in [0,1]$
mkern-26 % Adding this is a sub-par solution
+4y -1
endalign


enter image description here



but finding the exact number to work out how to fix the kerning is obviously not fun.



Is there a better way?










share|improve this question



















  • 6





    use mathtools and its mathclap... macro: underbrace...._mathclap..., and next time please post a full minimal example, not just a sniplet, then it is a lot easier for others to test your code

    – daleif
    May 23 at 11:25












  • Noted, daleif. Thank's a ton!

    – Toldry
    May 23 at 11:32















6















Is there a way to instruct LaTeX to ignore the text in the underbrace for purposes of kerning the equation in math mode?



beginalign
&x
underbrace(4-3y)_
textPositive $forall y in [0,1]$
+4y -1
endalign


enter image description here
.



I know that I can use mkern-30:



beginalign
x
mkern-30 % Adding this is a sub-par solution
underbrace(4-3y)_
textPositive $forall y in [0,1]$
mkern-26 % Adding this is a sub-par solution
+4y -1
endalign


enter image description here



but finding the exact number to work out how to fix the kerning is obviously not fun.



Is there a better way?










share|improve this question



















  • 6





    use mathtools and its mathclap... macro: underbrace...._mathclap..., and next time please post a full minimal example, not just a sniplet, then it is a lot easier for others to test your code

    – daleif
    May 23 at 11:25












  • Noted, daleif. Thank's a ton!

    – Toldry
    May 23 at 11:32













6












6








6


1






Is there a way to instruct LaTeX to ignore the text in the underbrace for purposes of kerning the equation in math mode?



beginalign
&x
underbrace(4-3y)_
textPositive $forall y in [0,1]$
+4y -1
endalign


enter image description here
.



I know that I can use mkern-30:



beginalign
x
mkern-30 % Adding this is a sub-par solution
underbrace(4-3y)_
textPositive $forall y in [0,1]$
mkern-26 % Adding this is a sub-par solution
+4y -1
endalign


enter image description here



but finding the exact number to work out how to fix the kerning is obviously not fun.



Is there a better way?










share|improve this question
















Is there a way to instruct LaTeX to ignore the text in the underbrace for purposes of kerning the equation in math mode?



beginalign
&x
underbrace(4-3y)_
textPositive $forall y in [0,1]$
+4y -1
endalign


enter image description here
.



I know that I can use mkern-30:



beginalign
x
mkern-30 % Adding this is a sub-par solution
underbrace(4-3y)_
textPositive $forall y in [0,1]$
mkern-26 % Adding this is a sub-par solution
+4y -1
endalign


enter image description here



but finding the exact number to work out how to fix the kerning is obviously not fun.



Is there a better way?







math-mode kerning underbrace






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 23 at 11:20







Toldry

















asked May 23 at 11:11









ToldryToldry

335




335







  • 6





    use mathtools and its mathclap... macro: underbrace...._mathclap..., and next time please post a full minimal example, not just a sniplet, then it is a lot easier for others to test your code

    – daleif
    May 23 at 11:25












  • Noted, daleif. Thank's a ton!

    – Toldry
    May 23 at 11:32












  • 6





    use mathtools and its mathclap... macro: underbrace...._mathclap..., and next time please post a full minimal example, not just a sniplet, then it is a lot easier for others to test your code

    – daleif
    May 23 at 11:25












  • Noted, daleif. Thank's a ton!

    – Toldry
    May 23 at 11:32







6




6





use mathtools and its mathclap... macro: underbrace...._mathclap..., and next time please post a full minimal example, not just a sniplet, then it is a lot easier for others to test your code

– daleif
May 23 at 11:25






use mathtools and its mathclap... macro: underbrace...._mathclap..., and next time please post a full minimal example, not just a sniplet, then it is a lot easier for others to test your code

– daleif
May 23 at 11:25














Noted, daleif. Thank's a ton!

– Toldry
May 23 at 11:32





Noted, daleif. Thank's a ton!

– Toldry
May 23 at 11:32










2 Answers
2






active

oldest

votes


















7














The subscript can be set in a zero-width box. The size of the subscript should be set explicitly. This results in the same output as mathclap from mathtools.



MWE:



documentclassarticle
usepackageamsmath
usepackagemathtools
begindocument
beginalign
&x
underbrace(4-3y)_
textPositive $forall y in [0,1]$
+4y -1
endalign
beginalign
&x
underbrace(4-3y)_
makebox[0pt]scriptsizetextPositive $forall y in [0,1]$
+4y -1
endalign
beginalign
&x
underbrace(4-3y)_
mathclaptextPositive $forall y in [0,1]$
+4y -1
endalign
enddocument


Result:



enter image description here






share|improve this answer






























    7














    In this particular case mathclap is not necessary:



    documentclassarticle
    usepackageamsmath

    begindocument

    beginequation*
    xunderbrace(4-3y)_substacktextpositive\[1pt] forall y in [0,1] + 4y - 1
    endequation*

    enddocument


    enter image description here



    Compare with



    documentclassarticle
    usepackageamsmath,mathtools

    begindocument

    beginequation*
    xunderbrace(4-3y)_mathclaptextpositive $forall y in [0,1]$ + 4y - 1
    endequation*

    enddocument


    enter image description here



    Note, anyway, the additional pair of braces around the whole



    underbrace..._...


    construction: they're necessary in order to get the right spacing.






    share|improve this answer


















    • 1





      +1 for the "extra set of braces" trick, which converts the underbrace atom effectively into mathord, I suppose. Or maybe it's deeper than that.

      – Steven B. Segletes
      May 23 at 11:49












    • @StevenB.Segletes Yes: you can see the wrong spacing in the other answer.

      – egreg
      May 23 at 11:50











    • What is the purpose of the [1pt] in the first solution?

      – Toldry
      May 23 at 11:55






    • 1





      @Toldry To separate a bit the two lines, they would be too crowded otherwise.

      – egreg
      May 23 at 11:56











    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%2f492261%2fhow-to-ignore-kerning-of-underbrace-in-math-mode%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    7














    The subscript can be set in a zero-width box. The size of the subscript should be set explicitly. This results in the same output as mathclap from mathtools.



    MWE:



    documentclassarticle
    usepackageamsmath
    usepackagemathtools
    begindocument
    beginalign
    &x
    underbrace(4-3y)_
    textPositive $forall y in [0,1]$
    +4y -1
    endalign
    beginalign
    &x
    underbrace(4-3y)_
    makebox[0pt]scriptsizetextPositive $forall y in [0,1]$
    +4y -1
    endalign
    beginalign
    &x
    underbrace(4-3y)_
    mathclaptextPositive $forall y in [0,1]$
    +4y -1
    endalign
    enddocument


    Result:



    enter image description here






    share|improve this answer



























      7














      The subscript can be set in a zero-width box. The size of the subscript should be set explicitly. This results in the same output as mathclap from mathtools.



      MWE:



      documentclassarticle
      usepackageamsmath
      usepackagemathtools
      begindocument
      beginalign
      &x
      underbrace(4-3y)_
      textPositive $forall y in [0,1]$
      +4y -1
      endalign
      beginalign
      &x
      underbrace(4-3y)_
      makebox[0pt]scriptsizetextPositive $forall y in [0,1]$
      +4y -1
      endalign
      beginalign
      &x
      underbrace(4-3y)_
      mathclaptextPositive $forall y in [0,1]$
      +4y -1
      endalign
      enddocument


      Result:



      enter image description here






      share|improve this answer

























        7












        7








        7







        The subscript can be set in a zero-width box. The size of the subscript should be set explicitly. This results in the same output as mathclap from mathtools.



        MWE:



        documentclassarticle
        usepackageamsmath
        usepackagemathtools
        begindocument
        beginalign
        &x
        underbrace(4-3y)_
        textPositive $forall y in [0,1]$
        +4y -1
        endalign
        beginalign
        &x
        underbrace(4-3y)_
        makebox[0pt]scriptsizetextPositive $forall y in [0,1]$
        +4y -1
        endalign
        beginalign
        &x
        underbrace(4-3y)_
        mathclaptextPositive $forall y in [0,1]$
        +4y -1
        endalign
        enddocument


        Result:



        enter image description here






        share|improve this answer













        The subscript can be set in a zero-width box. The size of the subscript should be set explicitly. This results in the same output as mathclap from mathtools.



        MWE:



        documentclassarticle
        usepackageamsmath
        usepackagemathtools
        begindocument
        beginalign
        &x
        underbrace(4-3y)_
        textPositive $forall y in [0,1]$
        +4y -1
        endalign
        beginalign
        &x
        underbrace(4-3y)_
        makebox[0pt]scriptsizetextPositive $forall y in [0,1]$
        +4y -1
        endalign
        beginalign
        &x
        underbrace(4-3y)_
        mathclaptextPositive $forall y in [0,1]$
        +4y -1
        endalign
        enddocument


        Result:



        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 23 at 11:29









        MarijnMarijn

        9,759639




        9,759639





















            7














            In this particular case mathclap is not necessary:



            documentclassarticle
            usepackageamsmath

            begindocument

            beginequation*
            xunderbrace(4-3y)_substacktextpositive\[1pt] forall y in [0,1] + 4y - 1
            endequation*

            enddocument


            enter image description here



            Compare with



            documentclassarticle
            usepackageamsmath,mathtools

            begindocument

            beginequation*
            xunderbrace(4-3y)_mathclaptextpositive $forall y in [0,1]$ + 4y - 1
            endequation*

            enddocument


            enter image description here



            Note, anyway, the additional pair of braces around the whole



            underbrace..._...


            construction: they're necessary in order to get the right spacing.






            share|improve this answer


















            • 1





              +1 for the "extra set of braces" trick, which converts the underbrace atom effectively into mathord, I suppose. Or maybe it's deeper than that.

              – Steven B. Segletes
              May 23 at 11:49












            • @StevenB.Segletes Yes: you can see the wrong spacing in the other answer.

              – egreg
              May 23 at 11:50











            • What is the purpose of the [1pt] in the first solution?

              – Toldry
              May 23 at 11:55






            • 1





              @Toldry To separate a bit the two lines, they would be too crowded otherwise.

              – egreg
              May 23 at 11:56















            7














            In this particular case mathclap is not necessary:



            documentclassarticle
            usepackageamsmath

            begindocument

            beginequation*
            xunderbrace(4-3y)_substacktextpositive\[1pt] forall y in [0,1] + 4y - 1
            endequation*

            enddocument


            enter image description here



            Compare with



            documentclassarticle
            usepackageamsmath,mathtools

            begindocument

            beginequation*
            xunderbrace(4-3y)_mathclaptextpositive $forall y in [0,1]$ + 4y - 1
            endequation*

            enddocument


            enter image description here



            Note, anyway, the additional pair of braces around the whole



            underbrace..._...


            construction: they're necessary in order to get the right spacing.






            share|improve this answer


















            • 1





              +1 for the "extra set of braces" trick, which converts the underbrace atom effectively into mathord, I suppose. Or maybe it's deeper than that.

              – Steven B. Segletes
              May 23 at 11:49












            • @StevenB.Segletes Yes: you can see the wrong spacing in the other answer.

              – egreg
              May 23 at 11:50











            • What is the purpose of the [1pt] in the first solution?

              – Toldry
              May 23 at 11:55






            • 1





              @Toldry To separate a bit the two lines, they would be too crowded otherwise.

              – egreg
              May 23 at 11:56













            7












            7








            7







            In this particular case mathclap is not necessary:



            documentclassarticle
            usepackageamsmath

            begindocument

            beginequation*
            xunderbrace(4-3y)_substacktextpositive\[1pt] forall y in [0,1] + 4y - 1
            endequation*

            enddocument


            enter image description here



            Compare with



            documentclassarticle
            usepackageamsmath,mathtools

            begindocument

            beginequation*
            xunderbrace(4-3y)_mathclaptextpositive $forall y in [0,1]$ + 4y - 1
            endequation*

            enddocument


            enter image description here



            Note, anyway, the additional pair of braces around the whole



            underbrace..._...


            construction: they're necessary in order to get the right spacing.






            share|improve this answer













            In this particular case mathclap is not necessary:



            documentclassarticle
            usepackageamsmath

            begindocument

            beginequation*
            xunderbrace(4-3y)_substacktextpositive\[1pt] forall y in [0,1] + 4y - 1
            endequation*

            enddocument


            enter image description here



            Compare with



            documentclassarticle
            usepackageamsmath,mathtools

            begindocument

            beginequation*
            xunderbrace(4-3y)_mathclaptextpositive $forall y in [0,1]$ + 4y - 1
            endequation*

            enddocument


            enter image description here



            Note, anyway, the additional pair of braces around the whole



            underbrace..._...


            construction: they're necessary in order to get the right spacing.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered May 23 at 11:44









            egregegreg

            747k8919543295




            747k8919543295







            • 1





              +1 for the "extra set of braces" trick, which converts the underbrace atom effectively into mathord, I suppose. Or maybe it's deeper than that.

              – Steven B. Segletes
              May 23 at 11:49












            • @StevenB.Segletes Yes: you can see the wrong spacing in the other answer.

              – egreg
              May 23 at 11:50











            • What is the purpose of the [1pt] in the first solution?

              – Toldry
              May 23 at 11:55






            • 1





              @Toldry To separate a bit the two lines, they would be too crowded otherwise.

              – egreg
              May 23 at 11:56












            • 1





              +1 for the "extra set of braces" trick, which converts the underbrace atom effectively into mathord, I suppose. Or maybe it's deeper than that.

              – Steven B. Segletes
              May 23 at 11:49












            • @StevenB.Segletes Yes: you can see the wrong spacing in the other answer.

              – egreg
              May 23 at 11:50











            • What is the purpose of the [1pt] in the first solution?

              – Toldry
              May 23 at 11:55






            • 1





              @Toldry To separate a bit the two lines, they would be too crowded otherwise.

              – egreg
              May 23 at 11:56







            1




            1





            +1 for the "extra set of braces" trick, which converts the underbrace atom effectively into mathord, I suppose. Or maybe it's deeper than that.

            – Steven B. Segletes
            May 23 at 11:49






            +1 for the "extra set of braces" trick, which converts the underbrace atom effectively into mathord, I suppose. Or maybe it's deeper than that.

            – Steven B. Segletes
            May 23 at 11:49














            @StevenB.Segletes Yes: you can see the wrong spacing in the other answer.

            – egreg
            May 23 at 11:50





            @StevenB.Segletes Yes: you can see the wrong spacing in the other answer.

            – egreg
            May 23 at 11:50













            What is the purpose of the [1pt] in the first solution?

            – Toldry
            May 23 at 11:55





            What is the purpose of the [1pt] in the first solution?

            – Toldry
            May 23 at 11:55




            1




            1





            @Toldry To separate a bit the two lines, they would be too crowded otherwise.

            – egreg
            May 23 at 11:56





            @Toldry To separate a bit the two lines, they would be too crowded otherwise.

            – egreg
            May 23 at 11:56

















            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%2f492261%2fhow-to-ignore-kerning-of-underbrace-in-math-mode%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

            Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

            Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

            What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company