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`
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

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:

math-mode subscripts
add a comment |
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

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:

math-mode subscripts
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
primeis a full-size glyph, and is meant to be used only in an explicit superscript, by itself. Hence, instead ofphi_lprime, usephi_l^prime. (The apostrophe is equivalent to^primewith finagling to allow multiple apostrophes to be input consecutively without triggering a "double superscript" error.)
– barbara beeton
May 12 at 22:49
add a comment |
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

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:

math-mode subscripts
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

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:

math-mode subscripts
math-mode subscripts
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
primeis a full-size glyph, and is meant to be used only in an explicit superscript, by itself. Hence, instead ofphi_lprime, usephi_l^prime. (The apostrophe is equivalent to^primewith finagling to allow multiple apostrophes to be input consecutively without triggering a "double superscript" error.)
– barbara beeton
May 12 at 22:49
add a comment |
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
primeis a full-size glyph, and is meant to be used only in an explicit superscript, by itself. Hence, instead ofphi_lprime, usephi_l^prime. (The apostrophe is equivalent to^primewith 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
add a comment |
2 Answers
2
active
oldest
votes
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

P.S. In addition to mathstrut, strut also works, but @Mico suggests below, using mathstrut instead of strut is better in math mode.
add a comment |
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

add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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

P.S. In addition to mathstrut, strut also works, but @Mico suggests below, using mathstrut instead of strut is better in math mode.
add a comment |
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

P.S. In addition to mathstrut, strut also works, but @Mico suggests below, using mathstrut instead of strut is better in math mode.
add a comment |
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

P.S. In addition to mathstrut, strut also works, but @Mico suggests below, using mathstrut instead of strut is better in math mode.
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

P.S. In addition to mathstrut, strut also works, but @Mico suggests below, using mathstrut instead of strut is better in math mode.
edited May 13 at 11:25
L. F.
298111
298111
answered May 12 at 18:17
BorisBoris
30.8k265107
30.8k265107
add a comment |
add a comment |
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

add a comment |
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

add a comment |
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

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

answered May 12 at 19:32
egregegreg
744k8919473283
744k8919473283
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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
primeis a full-size glyph, and is meant to be used only in an explicit superscript, by itself. Hence, instead ofphi_lprime, usephi_l^prime. (The apostrophe is equivalent to^primewith finagling to allow multiple apostrophes to be input consecutively without triggering a "double superscript" error.)– barbara beeton
May 12 at 22:49