Align sign with numerator












2















I have an equation for which I would like the sign to be aligned with the numerator without being a part of it. As a rough example,



[ - frac{sqrt{3qtimes r^2}}{y times z} ]


produces



fraction with minus sign aligned with middle of fraction



but I would prefer



fraction with minus sign aligned with numerator





Rationale: While, in the example above, the default layout is actually better, in my actual document the relevant fraction is coming after a new line and the minus sign is easy to miss. Moving it up to the level of the numerator would make it more conspicuous.










share|improve this question




















  • 2





    frac{-sqrt{3qtimes r^2}}{y times z} is more mathematically true.

    – JouleV
    15 hours ago











  • @JouleV Absolutely! Unfortunately, my example above is meant to be indicative of my problem without containing too much unecessary clutter, and (while a good representation of the question I'm asking) is maybe not a good representation of my actual maths.

    – owjburnham
    15 hours ago






  • 2





    @JouleV more mathematically true? What does that mean?

    – JPi
    13 hours ago











  • @JPi I meant that it is true and the OP's is false. But as the OP wants to have the wrong one, I said "more mathematically true".

    – JouleV
    12 hours ago











  • @JouleV I agree with you in the example I gave. For what it’s worth, my imagined use case was (very roughly) a/b - x/y. In that case, I’d imagine that a/b -x/y (with the sign as part of the numerator) might risk looking like a/b times -x/y. I don’t know whether, in that case, you would agree?

    – owjburnham
    12 hours ago
















2















I have an equation for which I would like the sign to be aligned with the numerator without being a part of it. As a rough example,



[ - frac{sqrt{3qtimes r^2}}{y times z} ]


produces



fraction with minus sign aligned with middle of fraction



but I would prefer



fraction with minus sign aligned with numerator





Rationale: While, in the example above, the default layout is actually better, in my actual document the relevant fraction is coming after a new line and the minus sign is easy to miss. Moving it up to the level of the numerator would make it more conspicuous.










share|improve this question




















  • 2





    frac{-sqrt{3qtimes r^2}}{y times z} is more mathematically true.

    – JouleV
    15 hours ago











  • @JouleV Absolutely! Unfortunately, my example above is meant to be indicative of my problem without containing too much unecessary clutter, and (while a good representation of the question I'm asking) is maybe not a good representation of my actual maths.

    – owjburnham
    15 hours ago






  • 2





    @JouleV more mathematically true? What does that mean?

    – JPi
    13 hours ago











  • @JPi I meant that it is true and the OP's is false. But as the OP wants to have the wrong one, I said "more mathematically true".

    – JouleV
    12 hours ago











  • @JouleV I agree with you in the example I gave. For what it’s worth, my imagined use case was (very roughly) a/b - x/y. In that case, I’d imagine that a/b -x/y (with the sign as part of the numerator) might risk looking like a/b times -x/y. I don’t know whether, in that case, you would agree?

    – owjburnham
    12 hours ago














2












2








2








I have an equation for which I would like the sign to be aligned with the numerator without being a part of it. As a rough example,



[ - frac{sqrt{3qtimes r^2}}{y times z} ]


produces



fraction with minus sign aligned with middle of fraction



but I would prefer



fraction with minus sign aligned with numerator





Rationale: While, in the example above, the default layout is actually better, in my actual document the relevant fraction is coming after a new line and the minus sign is easy to miss. Moving it up to the level of the numerator would make it more conspicuous.










share|improve this question
















I have an equation for which I would like the sign to be aligned with the numerator without being a part of it. As a rough example,



[ - frac{sqrt{3qtimes r^2}}{y times z} ]


produces



fraction with minus sign aligned with middle of fraction



but I would prefer



fraction with minus sign aligned with numerator





Rationale: While, in the example above, the default layout is actually better, in my actual document the relevant fraction is coming after a new line and the minus sign is easy to miss. Moving it up to the level of the numerator would make it more conspicuous.







math-mode fractions






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 14 hours ago









JouleV

3,5991835




3,5991835










asked 15 hours ago









owjburnhamowjburnham

15112




15112








  • 2





    frac{-sqrt{3qtimes r^2}}{y times z} is more mathematically true.

    – JouleV
    15 hours ago











  • @JouleV Absolutely! Unfortunately, my example above is meant to be indicative of my problem without containing too much unecessary clutter, and (while a good representation of the question I'm asking) is maybe not a good representation of my actual maths.

    – owjburnham
    15 hours ago






  • 2





    @JouleV more mathematically true? What does that mean?

    – JPi
    13 hours ago











  • @JPi I meant that it is true and the OP's is false. But as the OP wants to have the wrong one, I said "more mathematically true".

    – JouleV
    12 hours ago











  • @JouleV I agree with you in the example I gave. For what it’s worth, my imagined use case was (very roughly) a/b - x/y. In that case, I’d imagine that a/b -x/y (with the sign as part of the numerator) might risk looking like a/b times -x/y. I don’t know whether, in that case, you would agree?

    – owjburnham
    12 hours ago














  • 2





    frac{-sqrt{3qtimes r^2}}{y times z} is more mathematically true.

    – JouleV
    15 hours ago











  • @JouleV Absolutely! Unfortunately, my example above is meant to be indicative of my problem without containing too much unecessary clutter, and (while a good representation of the question I'm asking) is maybe not a good representation of my actual maths.

    – owjburnham
    15 hours ago






  • 2





    @JouleV more mathematically true? What does that mean?

    – JPi
    13 hours ago











  • @JPi I meant that it is true and the OP's is false. But as the OP wants to have the wrong one, I said "more mathematically true".

    – JouleV
    12 hours ago











  • @JouleV I agree with you in the example I gave. For what it’s worth, my imagined use case was (very roughly) a/b - x/y. In that case, I’d imagine that a/b -x/y (with the sign as part of the numerator) might risk looking like a/b times -x/y. I don’t know whether, in that case, you would agree?

    – owjburnham
    12 hours ago








2




2





frac{-sqrt{3qtimes r^2}}{y times z} is more mathematically true.

– JouleV
15 hours ago





frac{-sqrt{3qtimes r^2}}{y times z} is more mathematically true.

– JouleV
15 hours ago













@JouleV Absolutely! Unfortunately, my example above is meant to be indicative of my problem without containing too much unecessary clutter, and (while a good representation of the question I'm asking) is maybe not a good representation of my actual maths.

– owjburnham
15 hours ago





@JouleV Absolutely! Unfortunately, my example above is meant to be indicative of my problem without containing too much unecessary clutter, and (while a good representation of the question I'm asking) is maybe not a good representation of my actual maths.

– owjburnham
15 hours ago




2




2





@JouleV more mathematically true? What does that mean?

– JPi
13 hours ago





@JouleV more mathematically true? What does that mean?

– JPi
13 hours ago













@JPi I meant that it is true and the OP's is false. But as the OP wants to have the wrong one, I said "more mathematically true".

– JouleV
12 hours ago





@JPi I meant that it is true and the OP's is false. But as the OP wants to have the wrong one, I said "more mathematically true".

– JouleV
12 hours ago













@JouleV I agree with you in the example I gave. For what it’s worth, my imagined use case was (very roughly) a/b - x/y. In that case, I’d imagine that a/b -x/y (with the sign as part of the numerator) might risk looking like a/b times -x/y. I don’t know whether, in that case, you would agree?

– owjburnham
12 hours ago





@JouleV I agree with you in the example I gave. For what it’s worth, my imagined use case was (very roughly) a/b - x/y. In that case, I’d imagine that a/b -x/y (with the sign as part of the numerator) might risk looking like a/b times -x/y. I don’t know whether, in that case, you would agree?

– owjburnham
12 hours ago










1 Answer
1






active

oldest

votes


















9














I disagree with your rationale.



Anyway, the customer's always right. ;-)



Load mathtools and do



hphantom{-}frac{mathmakebox[0pt][r]{-}sqrt{3qtimes r^2}}{ytimes z}


enter image description here



There is a shorthand for mathmakebox[0pt][r]{...}, namely mathllap{...}.






share|improve this answer





















  • 2





    thanks for help me to know about the tag mathmakebox...

    – MadyYuvi
    15 hours ago











  • Following JouleV's comment ( tex.stackexchange.com/questions/475470/… ), I also began to disagree with my own rationale (in the particular case in which I was asking the question). But I figured that the question was worth letting stand for future benefit ;-) Thanks for the solution.

    – owjburnham
    15 hours ago






  • 2





    simpler code: mathllap{-} instead of mathmakebox

    – daleif
    11 hours ago











  • @barbarabeeton the only thing I'm replacing in egregs code is mathmakebox[0pt]{r}{-} the rest is the same including the hphantom.

    – daleif
    9 hours ago











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%2f475470%2falign-sign-with-numerator%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









9














I disagree with your rationale.



Anyway, the customer's always right. ;-)



Load mathtools and do



hphantom{-}frac{mathmakebox[0pt][r]{-}sqrt{3qtimes r^2}}{ytimes z}


enter image description here



There is a shorthand for mathmakebox[0pt][r]{...}, namely mathllap{...}.






share|improve this answer





















  • 2





    thanks for help me to know about the tag mathmakebox...

    – MadyYuvi
    15 hours ago











  • Following JouleV's comment ( tex.stackexchange.com/questions/475470/… ), I also began to disagree with my own rationale (in the particular case in which I was asking the question). But I figured that the question was worth letting stand for future benefit ;-) Thanks for the solution.

    – owjburnham
    15 hours ago






  • 2





    simpler code: mathllap{-} instead of mathmakebox

    – daleif
    11 hours ago











  • @barbarabeeton the only thing I'm replacing in egregs code is mathmakebox[0pt]{r}{-} the rest is the same including the hphantom.

    – daleif
    9 hours ago
















9














I disagree with your rationale.



Anyway, the customer's always right. ;-)



Load mathtools and do



hphantom{-}frac{mathmakebox[0pt][r]{-}sqrt{3qtimes r^2}}{ytimes z}


enter image description here



There is a shorthand for mathmakebox[0pt][r]{...}, namely mathllap{...}.






share|improve this answer





















  • 2





    thanks for help me to know about the tag mathmakebox...

    – MadyYuvi
    15 hours ago











  • Following JouleV's comment ( tex.stackexchange.com/questions/475470/… ), I also began to disagree with my own rationale (in the particular case in which I was asking the question). But I figured that the question was worth letting stand for future benefit ;-) Thanks for the solution.

    – owjburnham
    15 hours ago






  • 2





    simpler code: mathllap{-} instead of mathmakebox

    – daleif
    11 hours ago











  • @barbarabeeton the only thing I'm replacing in egregs code is mathmakebox[0pt]{r}{-} the rest is the same including the hphantom.

    – daleif
    9 hours ago














9












9








9







I disagree with your rationale.



Anyway, the customer's always right. ;-)



Load mathtools and do



hphantom{-}frac{mathmakebox[0pt][r]{-}sqrt{3qtimes r^2}}{ytimes z}


enter image description here



There is a shorthand for mathmakebox[0pt][r]{...}, namely mathllap{...}.






share|improve this answer















I disagree with your rationale.



Anyway, the customer's always right. ;-)



Load mathtools and do



hphantom{-}frac{mathmakebox[0pt][r]{-}sqrt{3qtimes r^2}}{ytimes z}


enter image description here



There is a shorthand for mathmakebox[0pt][r]{...}, namely mathllap{...}.







share|improve this answer














share|improve this answer



share|improve this answer








edited 9 hours ago

























answered 15 hours ago









egregegreg

720k8719093208




720k8719093208








  • 2





    thanks for help me to know about the tag mathmakebox...

    – MadyYuvi
    15 hours ago











  • Following JouleV's comment ( tex.stackexchange.com/questions/475470/… ), I also began to disagree with my own rationale (in the particular case in which I was asking the question). But I figured that the question was worth letting stand for future benefit ;-) Thanks for the solution.

    – owjburnham
    15 hours ago






  • 2





    simpler code: mathllap{-} instead of mathmakebox

    – daleif
    11 hours ago











  • @barbarabeeton the only thing I'm replacing in egregs code is mathmakebox[0pt]{r}{-} the rest is the same including the hphantom.

    – daleif
    9 hours ago














  • 2





    thanks for help me to know about the tag mathmakebox...

    – MadyYuvi
    15 hours ago











  • Following JouleV's comment ( tex.stackexchange.com/questions/475470/… ), I also began to disagree with my own rationale (in the particular case in which I was asking the question). But I figured that the question was worth letting stand for future benefit ;-) Thanks for the solution.

    – owjburnham
    15 hours ago






  • 2





    simpler code: mathllap{-} instead of mathmakebox

    – daleif
    11 hours ago











  • @barbarabeeton the only thing I'm replacing in egregs code is mathmakebox[0pt]{r}{-} the rest is the same including the hphantom.

    – daleif
    9 hours ago








2




2





thanks for help me to know about the tag mathmakebox...

– MadyYuvi
15 hours ago





thanks for help me to know about the tag mathmakebox...

– MadyYuvi
15 hours ago













Following JouleV's comment ( tex.stackexchange.com/questions/475470/… ), I also began to disagree with my own rationale (in the particular case in which I was asking the question). But I figured that the question was worth letting stand for future benefit ;-) Thanks for the solution.

– owjburnham
15 hours ago





Following JouleV's comment ( tex.stackexchange.com/questions/475470/… ), I also began to disagree with my own rationale (in the particular case in which I was asking the question). But I figured that the question was worth letting stand for future benefit ;-) Thanks for the solution.

– owjburnham
15 hours ago




2




2





simpler code: mathllap{-} instead of mathmakebox

– daleif
11 hours ago





simpler code: mathllap{-} instead of mathmakebox

– daleif
11 hours ago













@barbarabeeton the only thing I'm replacing in egregs code is mathmakebox[0pt]{r}{-} the rest is the same including the hphantom.

– daleif
9 hours ago





@barbarabeeton the only thing I'm replacing in egregs code is mathmakebox[0pt]{r}{-} the rest is the same including the hphantom.

– daleif
9 hours ago


















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%2f475470%2falign-sign-with-numerator%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

Polycentropodidae

Magento 2 Error message: Invalid state change requested

Paulmy