How do employ ' (“prime”) in math mode at the correct depth?How to make proportional subscript when using smaller font in math mode?Placement of subscripts using unicode-math. Is it XeTeX bug?How do I enforce a font size on a newly-defined symbol while using it in math mode?Prevent spacing in sub or super scripts with eulervmWhy is my prime symbol too low? And: Why are my subscripts not scaled accordingly when I use scriptsize?Is there a way to get “dumb” single quote in math mode?Environment that disables italics in math modeSmaller font for subscript within subscript in math modeVisually Better Mathematic SubscriptsChange `textlnot` to something usable in math mode with `kpfonts`

Why didn't Project Mercury advance to an orbital flight on their second mission?

Leaching of copper using zinc

Plot twist where the antagonist wins

Imitating a conveyor belt in `TikZ`

Python program to take in two strings and print the larger string

Which melee weapons have the Two-Handed property, but lack Heavy and Special?

Purpose and meaning of "dabei" in the sentence "sehen Sie dabei nicht ins Bildlexikon"?

Why is this Simple Puzzle impossible to solve?

Did 20% of US soldiers in Vietnam use heroin, 95% of whom quit afterwards?

Using credit/debit card details vs swiping a card in a payment (credit card) terminal

Can the Levitate spell be used to cause damage by slamming a creature?

What to do when you've set the wrong ISO for your film?

Teacher help me explain this to my students

Realizing cohomology classes by submanifolds

Is Mohammad (sm)'s everything sunnah

Compaq Portable vs IBM 5155 Portable PC

Installed Tankless Water Heater - Internet loss when active

Can a person survive on blood in place of water?

Should I disclose a colleague's illness (that I should not know) when others badmouth him

Does Nitrogen inside commercial airliner wheels prevent blowouts on touchdown?

Gladys goes shopping

Can I tell a prospective employee that everyone in the team is leaving?

Why would Ryanair allow me to book this journey through a third party, but not through their own website?

What is a Centaur Thief's climbing speed?



How do employ ' (“prime”) in math mode at the correct depth?


How to make proportional subscript when using smaller font in math mode?Placement of subscripts using unicode-math. Is it XeTeX bug?How do I enforce a font size on a newly-defined symbol while using it in math mode?Prevent spacing in sub or super scripts with eulervmWhy is my prime symbol too low? And: Why are my subscripts not scaled accordingly when I use scriptsize?Is there a way to get “dumb” single quote in math mode?Environment that disables italics in math modeSmaller font for subscript within subscript in math modeVisually Better Mathematic SubscriptsChange `textlnot` to something usable in math mode with `kpfonts`













11















How does one use the ' symbol ("apostrophe") in math mode without letting it change the depth of subscripts?



For example the following tex code:



[
int_G^d varphi_ul,ui varphi_ul',ui' varphi_ulprime,uiprime dx
]


yields the following result



Result



We notice that using the apostrophe ' looks way better than the overall result from using prime, but sadly using ' affects the depth below the baseline at which subscripts are placed.



How can one use ' properly in math mode?



Difference:



Difference










share|improve this question
























  • Welcome! I'm not sure what you mean by “the subscripts do not have the same size”.

    – egreg
    May 12 at 17:58











  • hey. Thanks for the answer. If you look really close you see in the screenshot that the secound $underlinel', underlinei'$ is a big bigger than the other ones. See the picture I added :)

    – Christian.gruener
    May 12 at 18:12







  • 8





    prime is a full-size glyph, and is meant to be used only in an explicit superscript, by itself. Hence, instead of phi_lprime, use phi_l^prime. (The apostrophe is equivalent to ^prime with finagling to allow multiple apostrophes to be input consecutively without triggering a "double superscript" error.)

    – barbara beeton
    May 12 at 22:49















11















How does one use the ' symbol ("apostrophe") in math mode without letting it change the depth of subscripts?



For example the following tex code:



[
int_G^d varphi_ul,ui varphi_ul',ui' varphi_ulprime,uiprime dx
]


yields the following result



Result



We notice that using the apostrophe ' looks way better than the overall result from using prime, but sadly using ' affects the depth below the baseline at which subscripts are placed.



How can one use ' properly in math mode?



Difference:



Difference










share|improve this question
























  • Welcome! I'm not sure what you mean by “the subscripts do not have the same size”.

    – egreg
    May 12 at 17:58











  • hey. Thanks for the answer. If you look really close you see in the screenshot that the secound $underlinel', underlinei'$ is a big bigger than the other ones. See the picture I added :)

    – Christian.gruener
    May 12 at 18:12







  • 8





    prime is a full-size glyph, and is meant to be used only in an explicit superscript, by itself. Hence, instead of phi_lprime, use phi_l^prime. (The apostrophe is equivalent to ^prime with finagling to allow multiple apostrophes to be input consecutively without triggering a "double superscript" error.)

    – barbara beeton
    May 12 at 22:49













11












11








11


5






How does one use the ' symbol ("apostrophe") in math mode without letting it change the depth of subscripts?



For example the following tex code:



[
int_G^d varphi_ul,ui varphi_ul',ui' varphi_ulprime,uiprime dx
]


yields the following result



Result



We notice that using the apostrophe ' looks way better than the overall result from using prime, but sadly using ' affects the depth below the baseline at which subscripts are placed.



How can one use ' properly in math mode?



Difference:



Difference










share|improve this question
















How does one use the ' symbol ("apostrophe") in math mode without letting it change the depth of subscripts?



For example the following tex code:



[
int_G^d varphi_ul,ui varphi_ul',ui' varphi_ulprime,uiprime dx
]


yields the following result



Result



We notice that using the apostrophe ' looks way better than the overall result from using prime, but sadly using ' affects the depth below the baseline at which subscripts are placed.



How can one use ' properly in math mode?



Difference:



Difference







math-mode subscripts






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 12 at 18:53









Mico

292k32401788




292k32401788










asked May 12 at 17:50









Christian.gruenerChristian.gruener

585




585












  • Welcome! I'm not sure what you mean by “the subscripts do not have the same size”.

    – egreg
    May 12 at 17:58











  • hey. Thanks for the answer. If you look really close you see in the screenshot that the secound $underlinel', underlinei'$ is a big bigger than the other ones. See the picture I added :)

    – Christian.gruener
    May 12 at 18:12







  • 8





    prime is a full-size glyph, and is meant to be used only in an explicit superscript, by itself. Hence, instead of phi_lprime, use phi_l^prime. (The apostrophe is equivalent to ^prime with finagling to allow multiple apostrophes to be input consecutively without triggering a "double superscript" error.)

    – barbara beeton
    May 12 at 22:49

















  • Welcome! I'm not sure what you mean by “the subscripts do not have the same size”.

    – egreg
    May 12 at 17:58











  • hey. Thanks for the answer. If you look really close you see in the screenshot that the secound $underlinel', underlinei'$ is a big bigger than the other ones. See the picture I added :)

    – Christian.gruener
    May 12 at 18:12







  • 8





    prime is a full-size glyph, and is meant to be used only in an explicit superscript, by itself. Hence, instead of phi_lprime, use phi_l^prime. (The apostrophe is equivalent to ^prime with finagling to allow multiple apostrophes to be input consecutively without triggering a "double superscript" error.)

    – barbara beeton
    May 12 at 22:49
















Welcome! I'm not sure what you mean by “the subscripts do not have the same size”.

– egreg
May 12 at 17:58





Welcome! I'm not sure what you mean by “the subscripts do not have the same size”.

– egreg
May 12 at 17:58













hey. Thanks for the answer. If you look really close you see in the screenshot that the secound $underlinel', underlinei'$ is a big bigger than the other ones. See the picture I added :)

– Christian.gruener
May 12 at 18:12






hey. Thanks for the answer. If you look really close you see in the screenshot that the secound $underlinel', underlinei'$ is a big bigger than the other ones. See the picture I added :)

– Christian.gruener
May 12 at 18:12





8




8





prime is a full-size glyph, and is meant to be used only in an explicit superscript, by itself. Hence, instead of phi_lprime, use phi_l^prime. (The apostrophe is equivalent to ^prime with finagling to allow multiple apostrophes to be input consecutively without triggering a "double superscript" error.)

– barbara beeton
May 12 at 22:49





prime is a full-size glyph, and is meant to be used only in an explicit superscript, by itself. Hence, instead of phi_lprime, use phi_l^prime. (The apostrophe is equivalent to ^prime with finagling to allow multiple apostrophes to be input consecutively without triggering a "double superscript" error.)

– barbara beeton
May 12 at 22:49










2 Answers
2






active

oldest

votes


















13














If you want subscripts to be on the same level, just add mathstrut to them. A strut is an invisible thin vertical rectangle used in vertical spacing.



int_G^d varphi_mathstrut l,i varphi_mathstrut l',i' dx


enter image description here



P.S. In addition to mathstrut, strut also works, but @Mico suggests below, using mathstrut instead of strut is better in math mode.






share|improve this answer
































    5














    They're not smaller, but lowered less than the primed subscripts. Use a phantom, when you have to align subscripts.



    documentclassarticle
    usepackageamsmath

    newcommandulunderlinel
    newcommanduiunderlinei
    newcommandvp^vphantomprime

    begindocument

    [
    int_G^d varphi_ulvp,uivp varphi_ul',ui',dx
    ]

    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',
      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%2f490506%2fhow-do-employ-prime-in-math-mode-at-the-correct-depth%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









      13














      If you want subscripts to be on the same level, just add mathstrut to them. A strut is an invisible thin vertical rectangle used in vertical spacing.



      int_G^d varphi_mathstrut l,i varphi_mathstrut l',i' dx


      enter image description here



      P.S. In addition to mathstrut, strut also works, but @Mico suggests below, using mathstrut instead of strut is better in math mode.






      share|improve this answer





























        13














        If you want subscripts to be on the same level, just add mathstrut to them. A strut is an invisible thin vertical rectangle used in vertical spacing.



        int_G^d varphi_mathstrut l,i varphi_mathstrut l',i' dx


        enter image description here



        P.S. In addition to mathstrut, strut also works, but @Mico suggests below, using mathstrut instead of strut is better in math mode.






        share|improve this answer



























          13












          13








          13







          If you want subscripts to be on the same level, just add mathstrut to them. A strut is an invisible thin vertical rectangle used in vertical spacing.



          int_G^d varphi_mathstrut l,i varphi_mathstrut l',i' dx


          enter image description here



          P.S. In addition to mathstrut, strut also works, but @Mico suggests below, using mathstrut instead of strut is better in math mode.






          share|improve this answer















          If you want subscripts to be on the same level, just add mathstrut to them. A strut is an invisible thin vertical rectangle used in vertical spacing.



          int_G^d varphi_mathstrut l,i varphi_mathstrut l',i' dx


          enter image description here



          P.S. In addition to mathstrut, strut also works, but @Mico suggests below, using mathstrut instead of strut is better in math mode.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited May 13 at 11:25









          L. F.

          298111




          298111










          answered May 12 at 18:17









          BorisBoris

          30.8k265107




          30.8k265107





















              5














              They're not smaller, but lowered less than the primed subscripts. Use a phantom, when you have to align subscripts.



              documentclassarticle
              usepackageamsmath

              newcommandulunderlinel
              newcommanduiunderlinei
              newcommandvp^vphantomprime

              begindocument

              [
              int_G^d varphi_ulvp,uivp varphi_ul',ui',dx
              ]

              enddocument


              enter image description here






              share|improve this answer



























                5














                They're not smaller, but lowered less than the primed subscripts. Use a phantom, when you have to align subscripts.



                documentclassarticle
                usepackageamsmath

                newcommandulunderlinel
                newcommanduiunderlinei
                newcommandvp^vphantomprime

                begindocument

                [
                int_G^d varphi_ulvp,uivp varphi_ul',ui',dx
                ]

                enddocument


                enter image description here






                share|improve this answer

























                  5












                  5








                  5







                  They're not smaller, but lowered less than the primed subscripts. Use a phantom, when you have to align subscripts.



                  documentclassarticle
                  usepackageamsmath

                  newcommandulunderlinel
                  newcommanduiunderlinei
                  newcommandvp^vphantomprime

                  begindocument

                  [
                  int_G^d varphi_ulvp,uivp varphi_ul',ui',dx
                  ]

                  enddocument


                  enter image description here






                  share|improve this answer













                  They're not smaller, but lowered less than the primed subscripts. Use a phantom, when you have to align subscripts.



                  documentclassarticle
                  usepackageamsmath

                  newcommandulunderlinel
                  newcommanduiunderlinei
                  newcommandvp^vphantomprime

                  begindocument

                  [
                  int_G^d varphi_ulvp,uivp varphi_ul',ui',dx
                  ]

                  enddocument


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 12 at 19:32









                  egregegreg

                  744k8919473283




                  744k8919473283



























                      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%2f490506%2fhow-do-employ-prime-in-math-mode-at-the-correct-depth%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 write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

                      What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

                      Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos