How to set letter above or below the symbol?How can I make an overset symbol at the same size and height as bar except with a different symbol?Write above the symbol math “subset”Superimpose letter on integral symbolDecrease vertical whitespace when stacking above and below arrowChange vertical space in oversetSymbol: “maps isomorphically”adjusting symbols above letter in mathmodedouble tilde symbol under letterLetter with circle above — not a dot — in math modeHow to print “~” in order to put text above it

Team goes to lunch frequently, I do intermittent fasting but still want to socialize

Infeasibility in mathematical optimization models

Can a PC attack themselves with an unarmed strike?

Improving software when the author can see no need for improvement

Is it really ~648.69 km/s delta-v to "land" on the surface of the Sun?

Double blind peer review when paper cites author's GitHub repo for code

English - Acceptable use of parentheses in an author's name

"How do you solve a problem like Maria?"

Tikzcd pullback square issue

Looking for a new job because of relocation - is it okay to tell the real reason?

Could one become a successful researcher by writing some really good papers while being outside academia?

How to query data in backups?

How does The Fools Guild make its money?

Colleagues speaking another language and it impacts work

How can glass marbles naturally occur in a desert?

Pandas: fill one column with count of # of obs between occurrences in a 2nd column

Dropdowns & Chevrons for Right to Left languages

Are there any financial disadvantages to living significantly "below your means"?

How to identify the wires on the dimmer to convert it to Conventional on/off switch

Do other countries guarantee freedoms that the United States does not have?

Is refreshing multiple times a test case for web applications?

How do we avoid CI-driven development...?

Replace data between quotes in a file

Why can I log in to my Facebook account with a misspelled email/password?



How to set letter above or below the symbol?


How can I make an overset symbol at the same size and height as bar except with a different symbol?Write above the symbol math “subset”Superimpose letter on integral symbolDecrease vertical whitespace when stacking above and below arrowChange vertical space in oversetSymbol: “maps isomorphically”adjusting symbols above letter in mathmodedouble tilde symbol under letterLetter with circle above — not a dot — in math modeHow to print “~” in order to put text above it






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








4















I have known oversetK to set above. However how to do like this:



enter image description here










share|improve this question
































    4















    I have known oversetK to set above. However how to do like this:



    enter image description here










    share|improve this question




























      4












      4








      4


      1






      I have known oversetK to set above. However how to do like this:



      enter image description here










      share|improve this question
















      I have known oversetK to set above. However how to do like this:



      enter image description here







      stacking-symbols






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 15 at 3:53







      user156344

















      asked Apr 15 at 3:06









      Z MarioZ Mario

      262 bronze badges




      262 bronze badges























          2 Answers
          2






          active

          oldest

          votes


















          7














          The same vertical size as sum:



          documentclassarticle
          usepackageamsmath

          makeatletter
          newcommandnnnDOTSBnnn@slimits@
          newcommandnnn@mathop
          newcommandnnn@@[2]%
          vphantomsum%
          ifx#1displaystylebig#2else#2fi

          makeatother

          begindocument

          [
          nnn_k=1^Kquad sum_k=1^K
          ]
          begincenter% just to show inline math below displaystyle
          $nnn_k=1^K$quad$sum_k=1^K$
          endcenter

          enddocument


          enter image description here






          share|improve this answer
































            8














            Currently, the width of the widest compnent (k=1) determines the width of the stack. If it is needed so that the width of K or the vertical bars determines the width of the stack, please let me know.



            It was not clear (to me) from the context of the question whether the baseline is aligned with the K or the vertical bars. Thus, I offer both possibilities. In the latter, the bars will be sized the same as sum:



            documentclassarticle
            usepackagestackengine,scalerel,mathtools
            DeclareMathOperator*vbarsscalerel*rule.6pt10ptmkern2murule.6pt10ptsum
            stackMath
            parskip1ex
            begindocument
            K baseline:
            $stackunder[2pt]Kstackunder[2pt]%
            rule.6pt15ptmkern2murule.6pt15ptscriptstyle k=1$

            bigskip
            Rule baseline:


            $vbars^K_k=1$ (textstyle)

            $displaystylevbars^K_k=1$ (displaystyle)
            enddocument


            enter image description here



            In the latter case (vbars math operator), if one wishes the rule thickness and gap to remain the same in both text and display styles, then, in the definition of vbars, merely change scalerel to stretchrel.






            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%2f484872%2fhow-to-set-letter-above-or-below-the-symbol%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 same vertical size as sum:



              documentclassarticle
              usepackageamsmath

              makeatletter
              newcommandnnnDOTSBnnn@slimits@
              newcommandnnn@mathop
              newcommandnnn@@[2]%
              vphantomsum%
              ifx#1displaystylebig#2else#2fi

              makeatother

              begindocument

              [
              nnn_k=1^Kquad sum_k=1^K
              ]
              begincenter% just to show inline math below displaystyle
              $nnn_k=1^K$quad$sum_k=1^K$
              endcenter

              enddocument


              enter image description here






              share|improve this answer





























                7














                The same vertical size as sum:



                documentclassarticle
                usepackageamsmath

                makeatletter
                newcommandnnnDOTSBnnn@slimits@
                newcommandnnn@mathop
                newcommandnnn@@[2]%
                vphantomsum%
                ifx#1displaystylebig#2else#2fi

                makeatother

                begindocument

                [
                nnn_k=1^Kquad sum_k=1^K
                ]
                begincenter% just to show inline math below displaystyle
                $nnn_k=1^K$quad$sum_k=1^K$
                endcenter

                enddocument


                enter image description here






                share|improve this answer



























                  7












                  7








                  7







                  The same vertical size as sum:



                  documentclassarticle
                  usepackageamsmath

                  makeatletter
                  newcommandnnnDOTSBnnn@slimits@
                  newcommandnnn@mathop
                  newcommandnnn@@[2]%
                  vphantomsum%
                  ifx#1displaystylebig#2else#2fi

                  makeatother

                  begindocument

                  [
                  nnn_k=1^Kquad sum_k=1^K
                  ]
                  begincenter% just to show inline math below displaystyle
                  $nnn_k=1^K$quad$sum_k=1^K$
                  endcenter

                  enddocument


                  enter image description here






                  share|improve this answer













                  The same vertical size as sum:



                  documentclassarticle
                  usepackageamsmath

                  makeatletter
                  newcommandnnnDOTSBnnn@slimits@
                  newcommandnnn@mathop
                  newcommandnnn@@[2]%
                  vphantomsum%
                  ifx#1displaystylebig#2else#2fi

                  makeatother

                  begindocument

                  [
                  nnn_k=1^Kquad sum_k=1^K
                  ]
                  begincenter% just to show inline math below displaystyle
                  $nnn_k=1^K$quad$sum_k=1^K$
                  endcenter

                  enddocument


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 15 at 6:31









                  egregegreg

                  761k90 gold badges1987 silver badges3337 bronze badges




                  761k90 gold badges1987 silver badges3337 bronze badges


























                      8














                      Currently, the width of the widest compnent (k=1) determines the width of the stack. If it is needed so that the width of K or the vertical bars determines the width of the stack, please let me know.



                      It was not clear (to me) from the context of the question whether the baseline is aligned with the K or the vertical bars. Thus, I offer both possibilities. In the latter, the bars will be sized the same as sum:



                      documentclassarticle
                      usepackagestackengine,scalerel,mathtools
                      DeclareMathOperator*vbarsscalerel*rule.6pt10ptmkern2murule.6pt10ptsum
                      stackMath
                      parskip1ex
                      begindocument
                      K baseline:
                      $stackunder[2pt]Kstackunder[2pt]%
                      rule.6pt15ptmkern2murule.6pt15ptscriptstyle k=1$

                      bigskip
                      Rule baseline:


                      $vbars^K_k=1$ (textstyle)

                      $displaystylevbars^K_k=1$ (displaystyle)
                      enddocument


                      enter image description here



                      In the latter case (vbars math operator), if one wishes the rule thickness and gap to remain the same in both text and display styles, then, in the definition of vbars, merely change scalerel to stretchrel.






                      share|improve this answer































                        8














                        Currently, the width of the widest compnent (k=1) determines the width of the stack. If it is needed so that the width of K or the vertical bars determines the width of the stack, please let me know.



                        It was not clear (to me) from the context of the question whether the baseline is aligned with the K or the vertical bars. Thus, I offer both possibilities. In the latter, the bars will be sized the same as sum:



                        documentclassarticle
                        usepackagestackengine,scalerel,mathtools
                        DeclareMathOperator*vbarsscalerel*rule.6pt10ptmkern2murule.6pt10ptsum
                        stackMath
                        parskip1ex
                        begindocument
                        K baseline:
                        $stackunder[2pt]Kstackunder[2pt]%
                        rule.6pt15ptmkern2murule.6pt15ptscriptstyle k=1$

                        bigskip
                        Rule baseline:


                        $vbars^K_k=1$ (textstyle)

                        $displaystylevbars^K_k=1$ (displaystyle)
                        enddocument


                        enter image description here



                        In the latter case (vbars math operator), if one wishes the rule thickness and gap to remain the same in both text and display styles, then, in the definition of vbars, merely change scalerel to stretchrel.






                        share|improve this answer





























                          8












                          8








                          8







                          Currently, the width of the widest compnent (k=1) determines the width of the stack. If it is needed so that the width of K or the vertical bars determines the width of the stack, please let me know.



                          It was not clear (to me) from the context of the question whether the baseline is aligned with the K or the vertical bars. Thus, I offer both possibilities. In the latter, the bars will be sized the same as sum:



                          documentclassarticle
                          usepackagestackengine,scalerel,mathtools
                          DeclareMathOperator*vbarsscalerel*rule.6pt10ptmkern2murule.6pt10ptsum
                          stackMath
                          parskip1ex
                          begindocument
                          K baseline:
                          $stackunder[2pt]Kstackunder[2pt]%
                          rule.6pt15ptmkern2murule.6pt15ptscriptstyle k=1$

                          bigskip
                          Rule baseline:


                          $vbars^K_k=1$ (textstyle)

                          $displaystylevbars^K_k=1$ (displaystyle)
                          enddocument


                          enter image description here



                          In the latter case (vbars math operator), if one wishes the rule thickness and gap to remain the same in both text and display styles, then, in the definition of vbars, merely change scalerel to stretchrel.






                          share|improve this answer















                          Currently, the width of the widest compnent (k=1) determines the width of the stack. If it is needed so that the width of K or the vertical bars determines the width of the stack, please let me know.



                          It was not clear (to me) from the context of the question whether the baseline is aligned with the K or the vertical bars. Thus, I offer both possibilities. In the latter, the bars will be sized the same as sum:



                          documentclassarticle
                          usepackagestackengine,scalerel,mathtools
                          DeclareMathOperator*vbarsscalerel*rule.6pt10ptmkern2murule.6pt10ptsum
                          stackMath
                          parskip1ex
                          begindocument
                          K baseline:
                          $stackunder[2pt]Kstackunder[2pt]%
                          rule.6pt15ptmkern2murule.6pt15ptscriptstyle k=1$

                          bigskip
                          Rule baseline:


                          $vbars^K_k=1$ (textstyle)

                          $displaystylevbars^K_k=1$ (displaystyle)
                          enddocument


                          enter image description here



                          In the latter case (vbars math operator), if one wishes the rule thickness and gap to remain the same in both text and display styles, then, in the definition of vbars, merely change scalerel to stretchrel.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Apr 15 at 10:22

























                          answered Apr 15 at 3:09









                          Steven B. SegletesSteven B. Segletes

                          168k9 gold badges214 silver badges434 bronze badges




                          168k9 gold badges214 silver badges434 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%2f484872%2fhow-to-set-letter-above-or-below-the-symbol%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”?