Aligning formula problem
up vote
5
down vote
favorite
documentclass{article}
usepackage{amsmath}
begin{document}
begin{align*}
y ={}& frac{1}{n!} leftlbrace int + f(a) right. \
&left. vphantom{int} + [h(u)+phi(x)] + C rightrbrace
end{align*}
end{document}
How to align the plus sign with fraction? Thanks.
math-mode equations align amsmath
New contributor
add a comment |
up vote
5
down vote
favorite
documentclass{article}
usepackage{amsmath}
begin{document}
begin{align*}
y ={}& frac{1}{n!} leftlbrace int + f(a) right. \
&left. vphantom{int} + [h(u)+phi(x)] + C rightrbrace
end{align*}
end{document}
How to align the plus sign with fraction? Thanks.
math-mode equations align amsmath
New contributor
(1) welcome, (2) as always on this site please provide a full minimal example, then it is a lot easier for other to test your code. (3) Drop the use ofleft...right
and use the manual ones instead (bigBigbiggBigg
), then the alignment can be placed inside the construction and aligning on the+
is easy.
– daleif
yesterday
Thank you.If I must use the left/right pair, how to modify the code?
– August
yesterday
Sorry to ask so naively, but are you sure you want to typeint +
in this combination?
– marmot
yesterday
add a comment |
up vote
5
down vote
favorite
up vote
5
down vote
favorite
documentclass{article}
usepackage{amsmath}
begin{document}
begin{align*}
y ={}& frac{1}{n!} leftlbrace int + f(a) right. \
&left. vphantom{int} + [h(u)+phi(x)] + C rightrbrace
end{align*}
end{document}
How to align the plus sign with fraction? Thanks.
math-mode equations align amsmath
New contributor
documentclass{article}
usepackage{amsmath}
begin{document}
begin{align*}
y ={}& frac{1}{n!} leftlbrace int + f(a) right. \
&left. vphantom{int} + [h(u)+phi(x)] + C rightrbrace
end{align*}
end{document}
How to align the plus sign with fraction? Thanks.
math-mode equations align amsmath
math-mode equations align amsmath
New contributor
New contributor
edited yesterday
David Carlisle
480k3811121848
480k3811121848
New contributor
asked yesterday
August
283
283
New contributor
New contributor
(1) welcome, (2) as always on this site please provide a full minimal example, then it is a lot easier for other to test your code. (3) Drop the use ofleft...right
and use the manual ones instead (bigBigbiggBigg
), then the alignment can be placed inside the construction and aligning on the+
is easy.
– daleif
yesterday
Thank you.If I must use the left/right pair, how to modify the code?
– August
yesterday
Sorry to ask so naively, but are you sure you want to typeint +
in this combination?
– marmot
yesterday
add a comment |
(1) welcome, (2) as always on this site please provide a full minimal example, then it is a lot easier for other to test your code. (3) Drop the use ofleft...right
and use the manual ones instead (bigBigbiggBigg
), then the alignment can be placed inside the construction and aligning on the+
is easy.
– daleif
yesterday
Thank you.If I must use the left/right pair, how to modify the code?
– August
yesterday
Sorry to ask so naively, but are you sure you want to typeint +
in this combination?
– marmot
yesterday
(1) welcome, (2) as always on this site please provide a full minimal example, then it is a lot easier for other to test your code. (3) Drop the use of
left...right
and use the manual ones instead (bigBigbiggBigg
), then the alignment can be placed inside the construction and aligning on the +
is easy.– daleif
yesterday
(1) welcome, (2) as always on this site please provide a full minimal example, then it is a lot easier for other to test your code. (3) Drop the use of
left...right
and use the manual ones instead (bigBigbiggBigg
), then the alignment can be placed inside the construction and aligning on the +
is easy.– daleif
yesterday
Thank you.If I must use the left/right pair, how to modify the code?
– August
yesterday
Thank you.If I must use the left/right pair, how to modify the code?
– August
yesterday
Sorry to ask so naively, but are you sure you want to type
int +
in this combination?– marmot
yesterday
Sorry to ask so naively, but are you sure you want to type
int +
in this combination?– marmot
yesterday
add a comment |
3 Answers
3
active
oldest
votes
up vote
4
down vote
accepted
Alignment is not really necessary and multline
might do the job. If you feel that alignment is important, here are three proposals.
documentclass{article}
usepackage{amsmath}
begin{document}
The following aligns the + with the fraction
begin{equation*}
begin{split}
y ={} & frac{1}{n!} biggllbrace int + f(a) \
& {} + [h(u)+phi(x)] + C biggrrbrace
end{split}
end{equation*}
but with a slight offset; with the following the
offset is removed
begin{equation*}
begin{split}
y ={} & frac{1}{n!} biggllbrace int + f(a) \
& {mspace{-medmuskip}} + [h(u)+phi(x)] + C biggrrbrace
end{split}
end{equation*}
However, I'd align with the integral sign
begin{equation*}
begin{split}
y = frac{1}{n!} biggllbrace &!int + f(a) \
& {mspace{-medmuskip}} + [h(u)+phi(x)] + C biggrrbrace
end{split}
end{equation*}
end{document}
Thank you. If I must use the left/right pair, how to modify the code?
– August
yesterday
@August As you were doing, withvphantom
.
– egreg
yesterday
Does “mspace{-medmuskip}” similar to “!”, add some negative offset? I have used “!” achieve the same result, it’s manual method.
– August
yesterday
@August!
addsmspace{-thinmuskip}
, but amedmuskip
is added in front of a binary operation symbol and it is larger thanthinmuskip
.
– egreg
yesterday
Your method is also worked, thank you very much.
– August
yesterday
add a comment |
up vote
3
down vote
try
begin{align*}
y &= frac{1}{n!} leftlbrace int + f(a) right. \
&phantom{=} left. vphantom{int} + [h(u)+phi(x)] + C rightrbrace
end{align*}
Thank you. The plus sign wasn’t aligning with fraction .
– August
yesterday
add a comment |
up vote
3
down vote
You do not require alignment here (which is why you are needing phantom
etc to hide the alignment point) you just have a line that needs to be broken (so I assume you have a narrow text width) something like:
documentclass[twocolumn,a5paper]{article}
usepackage{amsmath}
begin{document}
begin{multline*}
y =frac{1}{n!} Bigllbrace int + f(a) \
{} + [h(u)+phi(x)] + C Bigrrbrace
end{multline*}
end{document}
Thank you. I use vphantom to keep same sized big left/right brace.If I must use the left/right pair, how to modify the code?
– August
yesterday
you can still use left . with the vphantom if you wish (but usually usingBigl
(for some fixed name size is better) that change is separate from teh suggestion to change align to multline
– David Carlisle
yesterday
Ok, thank you very much.
– August
yesterday
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
Alignment is not really necessary and multline
might do the job. If you feel that alignment is important, here are three proposals.
documentclass{article}
usepackage{amsmath}
begin{document}
The following aligns the + with the fraction
begin{equation*}
begin{split}
y ={} & frac{1}{n!} biggllbrace int + f(a) \
& {} + [h(u)+phi(x)] + C biggrrbrace
end{split}
end{equation*}
but with a slight offset; with the following the
offset is removed
begin{equation*}
begin{split}
y ={} & frac{1}{n!} biggllbrace int + f(a) \
& {mspace{-medmuskip}} + [h(u)+phi(x)] + C biggrrbrace
end{split}
end{equation*}
However, I'd align with the integral sign
begin{equation*}
begin{split}
y = frac{1}{n!} biggllbrace &!int + f(a) \
& {mspace{-medmuskip}} + [h(u)+phi(x)] + C biggrrbrace
end{split}
end{equation*}
end{document}
Thank you. If I must use the left/right pair, how to modify the code?
– August
yesterday
@August As you were doing, withvphantom
.
– egreg
yesterday
Does “mspace{-medmuskip}” similar to “!”, add some negative offset? I have used “!” achieve the same result, it’s manual method.
– August
yesterday
@August!
addsmspace{-thinmuskip}
, but amedmuskip
is added in front of a binary operation symbol and it is larger thanthinmuskip
.
– egreg
yesterday
Your method is also worked, thank you very much.
– August
yesterday
add a comment |
up vote
4
down vote
accepted
Alignment is not really necessary and multline
might do the job. If you feel that alignment is important, here are three proposals.
documentclass{article}
usepackage{amsmath}
begin{document}
The following aligns the + with the fraction
begin{equation*}
begin{split}
y ={} & frac{1}{n!} biggllbrace int + f(a) \
& {} + [h(u)+phi(x)] + C biggrrbrace
end{split}
end{equation*}
but with a slight offset; with the following the
offset is removed
begin{equation*}
begin{split}
y ={} & frac{1}{n!} biggllbrace int + f(a) \
& {mspace{-medmuskip}} + [h(u)+phi(x)] + C biggrrbrace
end{split}
end{equation*}
However, I'd align with the integral sign
begin{equation*}
begin{split}
y = frac{1}{n!} biggllbrace &!int + f(a) \
& {mspace{-medmuskip}} + [h(u)+phi(x)] + C biggrrbrace
end{split}
end{equation*}
end{document}
Thank you. If I must use the left/right pair, how to modify the code?
– August
yesterday
@August As you were doing, withvphantom
.
– egreg
yesterday
Does “mspace{-medmuskip}” similar to “!”, add some negative offset? I have used “!” achieve the same result, it’s manual method.
– August
yesterday
@August!
addsmspace{-thinmuskip}
, but amedmuskip
is added in front of a binary operation symbol and it is larger thanthinmuskip
.
– egreg
yesterday
Your method is also worked, thank you very much.
– August
yesterday
add a comment |
up vote
4
down vote
accepted
up vote
4
down vote
accepted
Alignment is not really necessary and multline
might do the job. If you feel that alignment is important, here are three proposals.
documentclass{article}
usepackage{amsmath}
begin{document}
The following aligns the + with the fraction
begin{equation*}
begin{split}
y ={} & frac{1}{n!} biggllbrace int + f(a) \
& {} + [h(u)+phi(x)] + C biggrrbrace
end{split}
end{equation*}
but with a slight offset; with the following the
offset is removed
begin{equation*}
begin{split}
y ={} & frac{1}{n!} biggllbrace int + f(a) \
& {mspace{-medmuskip}} + [h(u)+phi(x)] + C biggrrbrace
end{split}
end{equation*}
However, I'd align with the integral sign
begin{equation*}
begin{split}
y = frac{1}{n!} biggllbrace &!int + f(a) \
& {mspace{-medmuskip}} + [h(u)+phi(x)] + C biggrrbrace
end{split}
end{equation*}
end{document}
Alignment is not really necessary and multline
might do the job. If you feel that alignment is important, here are three proposals.
documentclass{article}
usepackage{amsmath}
begin{document}
The following aligns the + with the fraction
begin{equation*}
begin{split}
y ={} & frac{1}{n!} biggllbrace int + f(a) \
& {} + [h(u)+phi(x)] + C biggrrbrace
end{split}
end{equation*}
but with a slight offset; with the following the
offset is removed
begin{equation*}
begin{split}
y ={} & frac{1}{n!} biggllbrace int + f(a) \
& {mspace{-medmuskip}} + [h(u)+phi(x)] + C biggrrbrace
end{split}
end{equation*}
However, I'd align with the integral sign
begin{equation*}
begin{split}
y = frac{1}{n!} biggllbrace &!int + f(a) \
& {mspace{-medmuskip}} + [h(u)+phi(x)] + C biggrrbrace
end{split}
end{equation*}
end{document}
answered yesterday
egreg
704k8618753154
704k8618753154
Thank you. If I must use the left/right pair, how to modify the code?
– August
yesterday
@August As you were doing, withvphantom
.
– egreg
yesterday
Does “mspace{-medmuskip}” similar to “!”, add some negative offset? I have used “!” achieve the same result, it’s manual method.
– August
yesterday
@August!
addsmspace{-thinmuskip}
, but amedmuskip
is added in front of a binary operation symbol and it is larger thanthinmuskip
.
– egreg
yesterday
Your method is also worked, thank you very much.
– August
yesterday
add a comment |
Thank you. If I must use the left/right pair, how to modify the code?
– August
yesterday
@August As you were doing, withvphantom
.
– egreg
yesterday
Does “mspace{-medmuskip}” similar to “!”, add some negative offset? I have used “!” achieve the same result, it’s manual method.
– August
yesterday
@August!
addsmspace{-thinmuskip}
, but amedmuskip
is added in front of a binary operation symbol and it is larger thanthinmuskip
.
– egreg
yesterday
Your method is also worked, thank you very much.
– August
yesterday
Thank you. If I must use the left/right pair, how to modify the code?
– August
yesterday
Thank you. If I must use the left/right pair, how to modify the code?
– August
yesterday
@August As you were doing, with
vphantom
.– egreg
yesterday
@August As you were doing, with
vphantom
.– egreg
yesterday
Does “mspace{-medmuskip}” similar to “!”, add some negative offset? I have used “!” achieve the same result, it’s manual method.
– August
yesterday
Does “mspace{-medmuskip}” similar to “!”, add some negative offset? I have used “!” achieve the same result, it’s manual method.
– August
yesterday
@August
!
adds mspace{-thinmuskip}
, but a medmuskip
is added in front of a binary operation symbol and it is larger than thinmuskip
.– egreg
yesterday
@August
!
adds mspace{-thinmuskip}
, but a medmuskip
is added in front of a binary operation symbol and it is larger than thinmuskip
.– egreg
yesterday
Your method is also worked, thank you very much.
– August
yesterday
Your method is also worked, thank you very much.
– August
yesterday
add a comment |
up vote
3
down vote
try
begin{align*}
y &= frac{1}{n!} leftlbrace int + f(a) right. \
&phantom{=} left. vphantom{int} + [h(u)+phi(x)] + C rightrbrace
end{align*}
Thank you. The plus sign wasn’t aligning with fraction .
– August
yesterday
add a comment |
up vote
3
down vote
try
begin{align*}
y &= frac{1}{n!} leftlbrace int + f(a) right. \
&phantom{=} left. vphantom{int} + [h(u)+phi(x)] + C rightrbrace
end{align*}
Thank you. The plus sign wasn’t aligning with fraction .
– August
yesterday
add a comment |
up vote
3
down vote
up vote
3
down vote
try
begin{align*}
y &= frac{1}{n!} leftlbrace int + f(a) right. \
&phantom{=} left. vphantom{int} + [h(u)+phi(x)] + C rightrbrace
end{align*}
try
begin{align*}
y &= frac{1}{n!} leftlbrace int + f(a) right. \
&phantom{=} left. vphantom{int} + [h(u)+phi(x)] + C rightrbrace
end{align*}
answered yesterday
Herbert
267k23406716
267k23406716
Thank you. The plus sign wasn’t aligning with fraction .
– August
yesterday
add a comment |
Thank you. The plus sign wasn’t aligning with fraction .
– August
yesterday
Thank you. The plus sign wasn’t aligning with fraction .
– August
yesterday
Thank you. The plus sign wasn’t aligning with fraction .
– August
yesterday
add a comment |
up vote
3
down vote
You do not require alignment here (which is why you are needing phantom
etc to hide the alignment point) you just have a line that needs to be broken (so I assume you have a narrow text width) something like:
documentclass[twocolumn,a5paper]{article}
usepackage{amsmath}
begin{document}
begin{multline*}
y =frac{1}{n!} Bigllbrace int + f(a) \
{} + [h(u)+phi(x)] + C Bigrrbrace
end{multline*}
end{document}
Thank you. I use vphantom to keep same sized big left/right brace.If I must use the left/right pair, how to modify the code?
– August
yesterday
you can still use left . with the vphantom if you wish (but usually usingBigl
(for some fixed name size is better) that change is separate from teh suggestion to change align to multline
– David Carlisle
yesterday
Ok, thank you very much.
– August
yesterday
add a comment |
up vote
3
down vote
You do not require alignment here (which is why you are needing phantom
etc to hide the alignment point) you just have a line that needs to be broken (so I assume you have a narrow text width) something like:
documentclass[twocolumn,a5paper]{article}
usepackage{amsmath}
begin{document}
begin{multline*}
y =frac{1}{n!} Bigllbrace int + f(a) \
{} + [h(u)+phi(x)] + C Bigrrbrace
end{multline*}
end{document}
Thank you. I use vphantom to keep same sized big left/right brace.If I must use the left/right pair, how to modify the code?
– August
yesterday
you can still use left . with the vphantom if you wish (but usually usingBigl
(for some fixed name size is better) that change is separate from teh suggestion to change align to multline
– David Carlisle
yesterday
Ok, thank you very much.
– August
yesterday
add a comment |
up vote
3
down vote
up vote
3
down vote
You do not require alignment here (which is why you are needing phantom
etc to hide the alignment point) you just have a line that needs to be broken (so I assume you have a narrow text width) something like:
documentclass[twocolumn,a5paper]{article}
usepackage{amsmath}
begin{document}
begin{multline*}
y =frac{1}{n!} Bigllbrace int + f(a) \
{} + [h(u)+phi(x)] + C Bigrrbrace
end{multline*}
end{document}
You do not require alignment here (which is why you are needing phantom
etc to hide the alignment point) you just have a line that needs to be broken (so I assume you have a narrow text width) something like:
documentclass[twocolumn,a5paper]{article}
usepackage{amsmath}
begin{document}
begin{multline*}
y =frac{1}{n!} Bigllbrace int + f(a) \
{} + [h(u)+phi(x)] + C Bigrrbrace
end{multline*}
end{document}
answered yesterday
David Carlisle
480k3811121848
480k3811121848
Thank you. I use vphantom to keep same sized big left/right brace.If I must use the left/right pair, how to modify the code?
– August
yesterday
you can still use left . with the vphantom if you wish (but usually usingBigl
(for some fixed name size is better) that change is separate from teh suggestion to change align to multline
– David Carlisle
yesterday
Ok, thank you very much.
– August
yesterday
add a comment |
Thank you. I use vphantom to keep same sized big left/right brace.If I must use the left/right pair, how to modify the code?
– August
yesterday
you can still use left . with the vphantom if you wish (but usually usingBigl
(for some fixed name size is better) that change is separate from teh suggestion to change align to multline
– David Carlisle
yesterday
Ok, thank you very much.
– August
yesterday
Thank you. I use vphantom to keep same sized big left/right brace.If I must use the left/right pair, how to modify the code?
– August
yesterday
Thank you. I use vphantom to keep same sized big left/right brace.If I must use the left/right pair, how to modify the code?
– August
yesterday
you can still use left . with the vphantom if you wish (but usually using
Bigl
(for some fixed name size is better) that change is separate from teh suggestion to change align to multline– David Carlisle
yesterday
you can still use left . with the vphantom if you wish (but usually using
Bigl
(for some fixed name size is better) that change is separate from teh suggestion to change align to multline– David Carlisle
yesterday
Ok, thank you very much.
– August
yesterday
Ok, thank you very much.
– August
yesterday
add a comment |
August is a new contributor. Be nice, and check out our Code of Conduct.
August is a new contributor. Be nice, and check out our Code of Conduct.
August is a new contributor. Be nice, and check out our Code of Conduct.
August is a new contributor. Be nice, and check out our Code of Conduct.
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f464093%2faligning-formula-problem%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
(1) welcome, (2) as always on this site please provide a full minimal example, then it is a lot easier for other to test your code. (3) Drop the use of
left...right
and use the manual ones instead (bigBigbiggBigg
), then the alignment can be placed inside the construction and aligning on the+
is easy.– daleif
yesterday
Thank you.If I must use the left/right pair, how to modify the code?
– August
yesterday
Sorry to ask so naively, but are you sure you want to type
int +
in this combination?– marmot
yesterday