Aligning formula problem












5














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.










share|improve this question
























  • (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
    Dec 10 at 9:18










  • Thank you.If I must use the left/right pair, how to modify the code?
    – August
    Dec 10 at 9:23










  • Sorry to ask so naively, but are you sure you want to type int + in this combination?
    – marmot
    Dec 10 at 10:09
















5














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.










share|improve this question
























  • (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
    Dec 10 at 9:18










  • Thank you.If I must use the left/right pair, how to modify the code?
    – August
    Dec 10 at 9:23










  • Sorry to ask so naively, but are you sure you want to type int + in this combination?
    – marmot
    Dec 10 at 10:09














5












5








5







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.










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 10 at 9:44









David Carlisle

482k3811141851




482k3811141851










asked Dec 10 at 9:10









August

283




283












  • (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
    Dec 10 at 9:18










  • Thank you.If I must use the left/right pair, how to modify the code?
    – August
    Dec 10 at 9:23










  • Sorry to ask so naively, but are you sure you want to type int + in this combination?
    – marmot
    Dec 10 at 10:09


















  • (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
    Dec 10 at 9:18










  • Thank you.If I must use the left/right pair, how to modify the code?
    – August
    Dec 10 at 9:23










  • Sorry to ask so naively, but are you sure you want to type int + in this combination?
    – marmot
    Dec 10 at 10:09
















(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
Dec 10 at 9:18




(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
Dec 10 at 9:18












Thank you.If I must use the left/right pair, how to modify the code?
– August
Dec 10 at 9:23




Thank you.If I must use the left/right pair, how to modify the code?
– August
Dec 10 at 9:23












Sorry to ask so naively, but are you sure you want to type int + in this combination?
– marmot
Dec 10 at 10:09




Sorry to ask so naively, but are you sure you want to type int + in this combination?
– marmot
Dec 10 at 10:09










3 Answers
3






active

oldest

votes


















4














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}


enter image description here






share|improve this answer





















  • Thank you. If I must use the left/right pair, how to modify the code?
    – August
    Dec 10 at 10:17










  • @August As you were doing, with vphantom.
    – egreg
    Dec 10 at 11:48










  • Does “mspace{-medmuskip}” similar to “!”, add some negative offset? I have used “!” achieve the same result, it’s manual method.
    – August
    Dec 10 at 14:02










  • @August ! adds mspace{-thinmuskip}, but a medmuskip is added in front of a binary operation symbol and it is larger than thinmuskip.
    – egreg
    Dec 10 at 14:03












  • Your method is also worked, thank you very much.
    – August
    Dec 10 at 14:10



















3














try



begin{align*}
y &= frac{1}{n!} leftlbrace int + f(a) right. \
&phantom{=} left. vphantom{int} + [h(u)+phi(x)] + C rightrbrace
end{align*}





share|improve this answer





















  • Thank you. The plus sign wasn’t aligning with fraction .
    – August
    Dec 10 at 9:39



















3














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:



enter image description here



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}





share|improve this answer





















  • 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
    Dec 10 at 10:13










  • 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
    Dec 10 at 12:28










  • Ok, thank you very much.
    – August
    Dec 10 at 14:04











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%2f464093%2faligning-formula-problem%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes









4














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}


enter image description here






share|improve this answer





















  • Thank you. If I must use the left/right pair, how to modify the code?
    – August
    Dec 10 at 10:17










  • @August As you were doing, with vphantom.
    – egreg
    Dec 10 at 11:48










  • Does “mspace{-medmuskip}” similar to “!”, add some negative offset? I have used “!” achieve the same result, it’s manual method.
    – August
    Dec 10 at 14:02










  • @August ! adds mspace{-thinmuskip}, but a medmuskip is added in front of a binary operation symbol and it is larger than thinmuskip.
    – egreg
    Dec 10 at 14:03












  • Your method is also worked, thank you very much.
    – August
    Dec 10 at 14:10
















4














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}


enter image description here






share|improve this answer





















  • Thank you. If I must use the left/right pair, how to modify the code?
    – August
    Dec 10 at 10:17










  • @August As you were doing, with vphantom.
    – egreg
    Dec 10 at 11:48










  • Does “mspace{-medmuskip}” similar to “!”, add some negative offset? I have used “!” achieve the same result, it’s manual method.
    – August
    Dec 10 at 14:02










  • @August ! adds mspace{-thinmuskip}, but a medmuskip is added in front of a binary operation symbol and it is larger than thinmuskip.
    – egreg
    Dec 10 at 14:03












  • Your method is also worked, thank you very much.
    – August
    Dec 10 at 14:10














4












4








4






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}


enter image description here






share|improve this answer












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}


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 10 at 10:00









egreg

708k8618813163




708k8618813163












  • Thank you. If I must use the left/right pair, how to modify the code?
    – August
    Dec 10 at 10:17










  • @August As you were doing, with vphantom.
    – egreg
    Dec 10 at 11:48










  • Does “mspace{-medmuskip}” similar to “!”, add some negative offset? I have used “!” achieve the same result, it’s manual method.
    – August
    Dec 10 at 14:02










  • @August ! adds mspace{-thinmuskip}, but a medmuskip is added in front of a binary operation symbol and it is larger than thinmuskip.
    – egreg
    Dec 10 at 14:03












  • Your method is also worked, thank you very much.
    – August
    Dec 10 at 14:10


















  • Thank you. If I must use the left/right pair, how to modify the code?
    – August
    Dec 10 at 10:17










  • @August As you were doing, with vphantom.
    – egreg
    Dec 10 at 11:48










  • Does “mspace{-medmuskip}” similar to “!”, add some negative offset? I have used “!” achieve the same result, it’s manual method.
    – August
    Dec 10 at 14:02










  • @August ! adds mspace{-thinmuskip}, but a medmuskip is added in front of a binary operation symbol and it is larger than thinmuskip.
    – egreg
    Dec 10 at 14:03












  • Your method is also worked, thank you very much.
    – August
    Dec 10 at 14:10
















Thank you. If I must use the left/right pair, how to modify the code?
– August
Dec 10 at 10:17




Thank you. If I must use the left/right pair, how to modify the code?
– August
Dec 10 at 10:17












@August As you were doing, with vphantom.
– egreg
Dec 10 at 11:48




@August As you were doing, with vphantom.
– egreg
Dec 10 at 11:48












Does “mspace{-medmuskip}” similar to “!”, add some negative offset? I have used “!” achieve the same result, it’s manual method.
– August
Dec 10 at 14:02




Does “mspace{-medmuskip}” similar to “!”, add some negative offset? I have used “!” achieve the same result, it’s manual method.
– August
Dec 10 at 14:02












@August ! adds mspace{-thinmuskip}, but a medmuskip is added in front of a binary operation symbol and it is larger than thinmuskip.
– egreg
Dec 10 at 14:03






@August ! adds mspace{-thinmuskip}, but a medmuskip is added in front of a binary operation symbol and it is larger than thinmuskip.
– egreg
Dec 10 at 14:03














Your method is also worked, thank you very much.
– August
Dec 10 at 14:10




Your method is also worked, thank you very much.
– August
Dec 10 at 14:10











3














try



begin{align*}
y &= frac{1}{n!} leftlbrace int + f(a) right. \
&phantom{=} left. vphantom{int} + [h(u)+phi(x)] + C rightrbrace
end{align*}





share|improve this answer





















  • Thank you. The plus sign wasn’t aligning with fraction .
    – August
    Dec 10 at 9:39
















3














try



begin{align*}
y &= frac{1}{n!} leftlbrace int + f(a) right. \
&phantom{=} left. vphantom{int} + [h(u)+phi(x)] + C rightrbrace
end{align*}





share|improve this answer





















  • Thank you. The plus sign wasn’t aligning with fraction .
    – August
    Dec 10 at 9:39














3












3








3






try



begin{align*}
y &= frac{1}{n!} leftlbrace int + f(a) right. \
&phantom{=} left. vphantom{int} + [h(u)+phi(x)] + C rightrbrace
end{align*}





share|improve this answer












try



begin{align*}
y &= frac{1}{n!} leftlbrace int + f(a) right. \
&phantom{=} left. vphantom{int} + [h(u)+phi(x)] + C rightrbrace
end{align*}






share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 10 at 9:25









Herbert

269k24408717




269k24408717












  • Thank you. The plus sign wasn’t aligning with fraction .
    – August
    Dec 10 at 9:39


















  • Thank you. The plus sign wasn’t aligning with fraction .
    – August
    Dec 10 at 9:39
















Thank you. The plus sign wasn’t aligning with fraction .
– August
Dec 10 at 9:39




Thank you. The plus sign wasn’t aligning with fraction .
– August
Dec 10 at 9:39











3














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:



enter image description here



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}





share|improve this answer





















  • 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
    Dec 10 at 10:13










  • 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
    Dec 10 at 12:28










  • Ok, thank you very much.
    – August
    Dec 10 at 14:04
















3














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:



enter image description here



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}





share|improve this answer





















  • 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
    Dec 10 at 10:13










  • 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
    Dec 10 at 12:28










  • Ok, thank you very much.
    – August
    Dec 10 at 14:04














3












3








3






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:



enter image description here



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}





share|improve this answer












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:



enter image description here



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}






share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 10 at 9:49









David Carlisle

482k3811141851




482k3811141851












  • 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
    Dec 10 at 10:13










  • 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
    Dec 10 at 12:28










  • Ok, thank you very much.
    – August
    Dec 10 at 14:04


















  • 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
    Dec 10 at 10:13










  • 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
    Dec 10 at 12:28










  • Ok, thank you very much.
    – August
    Dec 10 at 14:04
















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
Dec 10 at 10:13




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
Dec 10 at 10:13












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
Dec 10 at 12:28




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
Dec 10 at 12:28












Ok, thank you very much.
– August
Dec 10 at 14:04




Ok, thank you very much.
– August
Dec 10 at 14:04


















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.





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.




draft saved


draft discarded














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





















































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

If I really need a card on my start hand, how many mulligans make sense? [duplicate]

Alcedinidae

Can an atomic nucleus contain both particles and antiparticles? [duplicate]