Align sign with numerator
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
but I would prefer
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
|
show 2 more comments
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
but I would prefer
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
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
|
show 2 more comments
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
but I would prefer
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
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
but I would prefer
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
math-mode fractions
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
|
show 2 more comments
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
|
show 2 more comments
1 Answer
1
active
oldest
votes
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}
There is a shorthand for mathmakebox[0pt][r]{...}
, namely mathllap{...}
.
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 ofmathmakebox
– daleif
11 hours ago
@barbarabeeton the only thing I'm replacing in egregs code ismathmakebox[0pt]{r}{-}
the rest is the same including the hphantom.
– daleif
9 hours ago
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');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
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%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
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}
There is a shorthand for mathmakebox[0pt][r]{...}
, namely mathllap{...}
.
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 ofmathmakebox
– daleif
11 hours ago
@barbarabeeton the only thing I'm replacing in egregs code ismathmakebox[0pt]{r}{-}
the rest is the same including the hphantom.
– daleif
9 hours ago
add a comment |
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}
There is a shorthand for mathmakebox[0pt][r]{...}
, namely mathllap{...}
.
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 ofmathmakebox
– daleif
11 hours ago
@barbarabeeton the only thing I'm replacing in egregs code ismathmakebox[0pt]{r}{-}
the rest is the same including the hphantom.
– daleif
9 hours ago
add a comment |
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}
There is a shorthand for mathmakebox[0pt][r]{...}
, namely mathllap{...}
.
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}
There is a shorthand for mathmakebox[0pt][r]{...}
, namely mathllap{...}
.
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 ofmathmakebox
– daleif
11 hours ago
@barbarabeeton the only thing I'm replacing in egregs code ismathmakebox[0pt]{r}{-}
the rest is the same including the hphantom.
– daleif
9 hours ago
add a comment |
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 ofmathmakebox
– daleif
11 hours ago
@barbarabeeton the only thing I'm replacing in egregs code ismathmakebox[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
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');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
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%2f475470%2falign-sign-with-numerator%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');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
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');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
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');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
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
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