But how to align the equality sign $=$ balanced?












4















See the following latex keywords



[left{begin{matrix}
A=B \ C=D
end{matrix}right.]


This shows the two array as column wise in center part.



But how to align the equality sign $=$ balanced?










share|improve this question




















  • 2





    Welcome to TeX.SE. In the example you give it seems that the two equal signs are aligned, so not sure what the actual problem is. Also, while code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it.

    – Peter Grill
    Jan 29 at 19:01


















4















See the following latex keywords



[left{begin{matrix}
A=B \ C=D
end{matrix}right.]


This shows the two array as column wise in center part.



But how to align the equality sign $=$ balanced?










share|improve this question




















  • 2





    Welcome to TeX.SE. In the example you give it seems that the two equal signs are aligned, so not sure what the actual problem is. Also, while code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it.

    – Peter Grill
    Jan 29 at 19:01
















4












4








4


3






See the following latex keywords



[left{begin{matrix}
A=B \ C=D
end{matrix}right.]


This shows the two array as column wise in center part.



But how to align the equality sign $=$ balanced?










share|improve this question
















See the following latex keywords



[left{begin{matrix}
A=B \ C=D
end{matrix}right.]


This shows the two array as column wise in center part.



But how to align the equality sign $=$ balanced?







vertical-alignment brackets






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 29 at 18:46









Stefan Pinnow

19.8k83276




19.8k83276










asked Jan 29 at 18:41









M. A. SARKARM. A. SARKAR

1234




1234








  • 2





    Welcome to TeX.SE. In the example you give it seems that the two equal signs are aligned, so not sure what the actual problem is. Also, while code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it.

    – Peter Grill
    Jan 29 at 19:01
















  • 2





    Welcome to TeX.SE. In the example you give it seems that the two equal signs are aligned, so not sure what the actual problem is. Also, while code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it.

    – Peter Grill
    Jan 29 at 19:01










2




2





Welcome to TeX.SE. In the example you give it seems that the two equal signs are aligned, so not sure what the actual problem is. Also, while code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it.

– Peter Grill
Jan 29 at 19:01







Welcome to TeX.SE. In the example you give it seems that the two equal signs are aligned, so not sure what the actual problem is. Also, while code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it.

– Peter Grill
Jan 29 at 19:01












2 Answers
2






active

oldest

votes


















7














EDIT: As suggested by @egreg :-) I add another answer using ambient cases:



enter image description here



documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
[
begin{cases}
A =& B \
C =& D
end{cases}
]
end{document}


As correctly pointed out by the good user who gave you the first correct answer, if you do not indicate the precise packages that you have used we can not help you very well. In fact, to get it, I used another code that produces the same result using the ambient aligned.



enter image description here



documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
[
left{
begin{aligned}
A &= B \
C &= D
end{aligned}
right.
]
end{document}





share|improve this answer





















  • 4





    I would use cases anyhow, instead of left{ and right. The answer is good otherwise.

    – egreg
    Jan 29 at 21:05








  • 2





    +1 for showing how to align the contents of the two rows on the = symbols.

    – Mico
    Jan 29 at 21:05






  • 2





    I don't think egreg meant for you to get rid of the aligned environment. Instead, I'm pretty sure he meant for you to keep using an aligned environment, while replacing the left{begin{matrix} and end{matrix}right. directives with begin{cases} and end{cases}, respectively.

    – Mico
    Jan 30 at 13:59








  • 1





    @M.A.SARKAR It is good practice to post a different question for a new problem. And we would love to get a full working code this time. But, for the time being, does this link help?

    – Partha D.
    Jan 30 at 14:53






  • 2





    @M.A.SARKAR It's perfectly all right... there's noone who comes into this world knowing everything. Hope you will (and already are) enjoy(ing) the ambience of the community. Feel free to post your queries and contribute in the way you feel best.

    – Partha D.
    Jan 31 at 5:25



















5














I think using the amsmath package should bring your matrix to shape:



enter image description here



with the code snippet:



documentclass{article}
usepackage{amsmath}
begin{document}
[
left{
begin{matrix}
A=B\
C=D
end{matrix}
right.
]
end{document}


However, without loading the amsmath package



documentclass{article}
begin{document}
[
left{
begin{matrix}
A=B\
C=D
end{matrix}
right.
]
end{document}


it gives:



enter image description here



With a warm welcome to TeX.SX, it is advised, as @Peter Grill pointed out, that you include in your future questions a full working example (as minimal as possible) with all packages you have used and the appropriate documentclass... so that contributors are able to locate your exact problem and help you (and future [La]TeX users) better.






share|improve this answer





















  • 2





    Your screenshot appears to be missing a linebreak between A=B and C=D.

    – Mico
    Jan 29 at 21:00













  • @Mico But that's what I get without any packages loaded. The linebreak appears only with includepackage{amsmath}. Frankly speaking, I don't know the reason for that... maybe the matrix environment is defined differently there!

    – Partha D.
    Jan 30 at 13:32











  • The missing linebreak occurs precisely because you're not loading the amsmath package. The LaTeX kernel actually defines an environment called matrix, and that's what ends up being used because you're not loading the amsmath package, which provides a far more competent and polished environment with the same name. For the example at hand, I can see no valid reason for not loading the amsmath package.

    – Mico
    Jan 30 at 13:55











  • @Mico Thanks for the explanation. My answer does suggest using amsmath to let the linebreak take effect... producing the first screenshot. I added the second screenshot in a later edit to give an idea of what happens when amsmath package is not loaded. Your valuable explanation completes the cycle by providing the logic for the observed difference.

    – Partha D.
    Jan 30 at 14:47











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%2f472435%2fbut-how-to-align-the-equality-sign-balanced%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









7














EDIT: As suggested by @egreg :-) I add another answer using ambient cases:



enter image description here



documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
[
begin{cases}
A =& B \
C =& D
end{cases}
]
end{document}


As correctly pointed out by the good user who gave you the first correct answer, if you do not indicate the precise packages that you have used we can not help you very well. In fact, to get it, I used another code that produces the same result using the ambient aligned.



enter image description here



documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
[
left{
begin{aligned}
A &= B \
C &= D
end{aligned}
right.
]
end{document}





share|improve this answer





















  • 4





    I would use cases anyhow, instead of left{ and right. The answer is good otherwise.

    – egreg
    Jan 29 at 21:05








  • 2





    +1 for showing how to align the contents of the two rows on the = symbols.

    – Mico
    Jan 29 at 21:05






  • 2





    I don't think egreg meant for you to get rid of the aligned environment. Instead, I'm pretty sure he meant for you to keep using an aligned environment, while replacing the left{begin{matrix} and end{matrix}right. directives with begin{cases} and end{cases}, respectively.

    – Mico
    Jan 30 at 13:59








  • 1





    @M.A.SARKAR It is good practice to post a different question for a new problem. And we would love to get a full working code this time. But, for the time being, does this link help?

    – Partha D.
    Jan 30 at 14:53






  • 2





    @M.A.SARKAR It's perfectly all right... there's noone who comes into this world knowing everything. Hope you will (and already are) enjoy(ing) the ambience of the community. Feel free to post your queries and contribute in the way you feel best.

    – Partha D.
    Jan 31 at 5:25
















7














EDIT: As suggested by @egreg :-) I add another answer using ambient cases:



enter image description here



documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
[
begin{cases}
A =& B \
C =& D
end{cases}
]
end{document}


As correctly pointed out by the good user who gave you the first correct answer, if you do not indicate the precise packages that you have used we can not help you very well. In fact, to get it, I used another code that produces the same result using the ambient aligned.



enter image description here



documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
[
left{
begin{aligned}
A &= B \
C &= D
end{aligned}
right.
]
end{document}





share|improve this answer





















  • 4





    I would use cases anyhow, instead of left{ and right. The answer is good otherwise.

    – egreg
    Jan 29 at 21:05








  • 2





    +1 for showing how to align the contents of the two rows on the = symbols.

    – Mico
    Jan 29 at 21:05






  • 2





    I don't think egreg meant for you to get rid of the aligned environment. Instead, I'm pretty sure he meant for you to keep using an aligned environment, while replacing the left{begin{matrix} and end{matrix}right. directives with begin{cases} and end{cases}, respectively.

    – Mico
    Jan 30 at 13:59








  • 1





    @M.A.SARKAR It is good practice to post a different question for a new problem. And we would love to get a full working code this time. But, for the time being, does this link help?

    – Partha D.
    Jan 30 at 14:53






  • 2





    @M.A.SARKAR It's perfectly all right... there's noone who comes into this world knowing everything. Hope you will (and already are) enjoy(ing) the ambience of the community. Feel free to post your queries and contribute in the way you feel best.

    – Partha D.
    Jan 31 at 5:25














7












7








7







EDIT: As suggested by @egreg :-) I add another answer using ambient cases:



enter image description here



documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
[
begin{cases}
A =& B \
C =& D
end{cases}
]
end{document}


As correctly pointed out by the good user who gave you the first correct answer, if you do not indicate the precise packages that you have used we can not help you very well. In fact, to get it, I used another code that produces the same result using the ambient aligned.



enter image description here



documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
[
left{
begin{aligned}
A &= B \
C &= D
end{aligned}
right.
]
end{document}





share|improve this answer















EDIT: As suggested by @egreg :-) I add another answer using ambient cases:



enter image description here



documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
[
begin{cases}
A =& B \
C =& D
end{cases}
]
end{document}


As correctly pointed out by the good user who gave you the first correct answer, if you do not indicate the precise packages that you have used we can not help you very well. In fact, to get it, I used another code that produces the same result using the ambient aligned.



enter image description here



documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
[
left{
begin{aligned}
A &= B \
C &= D
end{aligned}
right.
]
end{document}






share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 29 at 21:38

























answered Jan 29 at 20:44









SebastianoSebastiano

9,83041858




9,83041858








  • 4





    I would use cases anyhow, instead of left{ and right. The answer is good otherwise.

    – egreg
    Jan 29 at 21:05








  • 2





    +1 for showing how to align the contents of the two rows on the = symbols.

    – Mico
    Jan 29 at 21:05






  • 2





    I don't think egreg meant for you to get rid of the aligned environment. Instead, I'm pretty sure he meant for you to keep using an aligned environment, while replacing the left{begin{matrix} and end{matrix}right. directives with begin{cases} and end{cases}, respectively.

    – Mico
    Jan 30 at 13:59








  • 1





    @M.A.SARKAR It is good practice to post a different question for a new problem. And we would love to get a full working code this time. But, for the time being, does this link help?

    – Partha D.
    Jan 30 at 14:53






  • 2





    @M.A.SARKAR It's perfectly all right... there's noone who comes into this world knowing everything. Hope you will (and already are) enjoy(ing) the ambience of the community. Feel free to post your queries and contribute in the way you feel best.

    – Partha D.
    Jan 31 at 5:25














  • 4





    I would use cases anyhow, instead of left{ and right. The answer is good otherwise.

    – egreg
    Jan 29 at 21:05








  • 2





    +1 for showing how to align the contents of the two rows on the = symbols.

    – Mico
    Jan 29 at 21:05






  • 2





    I don't think egreg meant for you to get rid of the aligned environment. Instead, I'm pretty sure he meant for you to keep using an aligned environment, while replacing the left{begin{matrix} and end{matrix}right. directives with begin{cases} and end{cases}, respectively.

    – Mico
    Jan 30 at 13:59








  • 1





    @M.A.SARKAR It is good practice to post a different question for a new problem. And we would love to get a full working code this time. But, for the time being, does this link help?

    – Partha D.
    Jan 30 at 14:53






  • 2





    @M.A.SARKAR It's perfectly all right... there's noone who comes into this world knowing everything. Hope you will (and already are) enjoy(ing) the ambience of the community. Feel free to post your queries and contribute in the way you feel best.

    – Partha D.
    Jan 31 at 5:25








4




4





I would use cases anyhow, instead of left{ and right. The answer is good otherwise.

– egreg
Jan 29 at 21:05







I would use cases anyhow, instead of left{ and right. The answer is good otherwise.

– egreg
Jan 29 at 21:05






2




2





+1 for showing how to align the contents of the two rows on the = symbols.

– Mico
Jan 29 at 21:05





+1 for showing how to align the contents of the two rows on the = symbols.

– Mico
Jan 29 at 21:05




2




2





I don't think egreg meant for you to get rid of the aligned environment. Instead, I'm pretty sure he meant for you to keep using an aligned environment, while replacing the left{begin{matrix} and end{matrix}right. directives with begin{cases} and end{cases}, respectively.

– Mico
Jan 30 at 13:59







I don't think egreg meant for you to get rid of the aligned environment. Instead, I'm pretty sure he meant for you to keep using an aligned environment, while replacing the left{begin{matrix} and end{matrix}right. directives with begin{cases} and end{cases}, respectively.

– Mico
Jan 30 at 13:59






1




1





@M.A.SARKAR It is good practice to post a different question for a new problem. And we would love to get a full working code this time. But, for the time being, does this link help?

– Partha D.
Jan 30 at 14:53





@M.A.SARKAR It is good practice to post a different question for a new problem. And we would love to get a full working code this time. But, for the time being, does this link help?

– Partha D.
Jan 30 at 14:53




2




2





@M.A.SARKAR It's perfectly all right... there's noone who comes into this world knowing everything. Hope you will (and already are) enjoy(ing) the ambience of the community. Feel free to post your queries and contribute in the way you feel best.

– Partha D.
Jan 31 at 5:25





@M.A.SARKAR It's perfectly all right... there's noone who comes into this world knowing everything. Hope you will (and already are) enjoy(ing) the ambience of the community. Feel free to post your queries and contribute in the way you feel best.

– Partha D.
Jan 31 at 5:25











5














I think using the amsmath package should bring your matrix to shape:



enter image description here



with the code snippet:



documentclass{article}
usepackage{amsmath}
begin{document}
[
left{
begin{matrix}
A=B\
C=D
end{matrix}
right.
]
end{document}


However, without loading the amsmath package



documentclass{article}
begin{document}
[
left{
begin{matrix}
A=B\
C=D
end{matrix}
right.
]
end{document}


it gives:



enter image description here



With a warm welcome to TeX.SX, it is advised, as @Peter Grill pointed out, that you include in your future questions a full working example (as minimal as possible) with all packages you have used and the appropriate documentclass... so that contributors are able to locate your exact problem and help you (and future [La]TeX users) better.






share|improve this answer





















  • 2





    Your screenshot appears to be missing a linebreak between A=B and C=D.

    – Mico
    Jan 29 at 21:00













  • @Mico But that's what I get without any packages loaded. The linebreak appears only with includepackage{amsmath}. Frankly speaking, I don't know the reason for that... maybe the matrix environment is defined differently there!

    – Partha D.
    Jan 30 at 13:32











  • The missing linebreak occurs precisely because you're not loading the amsmath package. The LaTeX kernel actually defines an environment called matrix, and that's what ends up being used because you're not loading the amsmath package, which provides a far more competent and polished environment with the same name. For the example at hand, I can see no valid reason for not loading the amsmath package.

    – Mico
    Jan 30 at 13:55











  • @Mico Thanks for the explanation. My answer does suggest using amsmath to let the linebreak take effect... producing the first screenshot. I added the second screenshot in a later edit to give an idea of what happens when amsmath package is not loaded. Your valuable explanation completes the cycle by providing the logic for the observed difference.

    – Partha D.
    Jan 30 at 14:47
















5














I think using the amsmath package should bring your matrix to shape:



enter image description here



with the code snippet:



documentclass{article}
usepackage{amsmath}
begin{document}
[
left{
begin{matrix}
A=B\
C=D
end{matrix}
right.
]
end{document}


However, without loading the amsmath package



documentclass{article}
begin{document}
[
left{
begin{matrix}
A=B\
C=D
end{matrix}
right.
]
end{document}


it gives:



enter image description here



With a warm welcome to TeX.SX, it is advised, as @Peter Grill pointed out, that you include in your future questions a full working example (as minimal as possible) with all packages you have used and the appropriate documentclass... so that contributors are able to locate your exact problem and help you (and future [La]TeX users) better.






share|improve this answer





















  • 2





    Your screenshot appears to be missing a linebreak between A=B and C=D.

    – Mico
    Jan 29 at 21:00













  • @Mico But that's what I get without any packages loaded. The linebreak appears only with includepackage{amsmath}. Frankly speaking, I don't know the reason for that... maybe the matrix environment is defined differently there!

    – Partha D.
    Jan 30 at 13:32











  • The missing linebreak occurs precisely because you're not loading the amsmath package. The LaTeX kernel actually defines an environment called matrix, and that's what ends up being used because you're not loading the amsmath package, which provides a far more competent and polished environment with the same name. For the example at hand, I can see no valid reason for not loading the amsmath package.

    – Mico
    Jan 30 at 13:55











  • @Mico Thanks for the explanation. My answer does suggest using amsmath to let the linebreak take effect... producing the first screenshot. I added the second screenshot in a later edit to give an idea of what happens when amsmath package is not loaded. Your valuable explanation completes the cycle by providing the logic for the observed difference.

    – Partha D.
    Jan 30 at 14:47














5












5








5







I think using the amsmath package should bring your matrix to shape:



enter image description here



with the code snippet:



documentclass{article}
usepackage{amsmath}
begin{document}
[
left{
begin{matrix}
A=B\
C=D
end{matrix}
right.
]
end{document}


However, without loading the amsmath package



documentclass{article}
begin{document}
[
left{
begin{matrix}
A=B\
C=D
end{matrix}
right.
]
end{document}


it gives:



enter image description here



With a warm welcome to TeX.SX, it is advised, as @Peter Grill pointed out, that you include in your future questions a full working example (as minimal as possible) with all packages you have used and the appropriate documentclass... so that contributors are able to locate your exact problem and help you (and future [La]TeX users) better.






share|improve this answer















I think using the amsmath package should bring your matrix to shape:



enter image description here



with the code snippet:



documentclass{article}
usepackage{amsmath}
begin{document}
[
left{
begin{matrix}
A=B\
C=D
end{matrix}
right.
]
end{document}


However, without loading the amsmath package



documentclass{article}
begin{document}
[
left{
begin{matrix}
A=B\
C=D
end{matrix}
right.
]
end{document}


it gives:



enter image description here



With a warm welcome to TeX.SX, it is advised, as @Peter Grill pointed out, that you include in your future questions a full working example (as minimal as possible) with all packages you have used and the appropriate documentclass... so that contributors are able to locate your exact problem and help you (and future [La]TeX users) better.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 29 at 20:17

























answered Jan 29 at 20:05









Partha D.Partha D.

87017




87017








  • 2





    Your screenshot appears to be missing a linebreak between A=B and C=D.

    – Mico
    Jan 29 at 21:00













  • @Mico But that's what I get without any packages loaded. The linebreak appears only with includepackage{amsmath}. Frankly speaking, I don't know the reason for that... maybe the matrix environment is defined differently there!

    – Partha D.
    Jan 30 at 13:32











  • The missing linebreak occurs precisely because you're not loading the amsmath package. The LaTeX kernel actually defines an environment called matrix, and that's what ends up being used because you're not loading the amsmath package, which provides a far more competent and polished environment with the same name. For the example at hand, I can see no valid reason for not loading the amsmath package.

    – Mico
    Jan 30 at 13:55











  • @Mico Thanks for the explanation. My answer does suggest using amsmath to let the linebreak take effect... producing the first screenshot. I added the second screenshot in a later edit to give an idea of what happens when amsmath package is not loaded. Your valuable explanation completes the cycle by providing the logic for the observed difference.

    – Partha D.
    Jan 30 at 14:47














  • 2





    Your screenshot appears to be missing a linebreak between A=B and C=D.

    – Mico
    Jan 29 at 21:00













  • @Mico But that's what I get without any packages loaded. The linebreak appears only with includepackage{amsmath}. Frankly speaking, I don't know the reason for that... maybe the matrix environment is defined differently there!

    – Partha D.
    Jan 30 at 13:32











  • The missing linebreak occurs precisely because you're not loading the amsmath package. The LaTeX kernel actually defines an environment called matrix, and that's what ends up being used because you're not loading the amsmath package, which provides a far more competent and polished environment with the same name. For the example at hand, I can see no valid reason for not loading the amsmath package.

    – Mico
    Jan 30 at 13:55











  • @Mico Thanks for the explanation. My answer does suggest using amsmath to let the linebreak take effect... producing the first screenshot. I added the second screenshot in a later edit to give an idea of what happens when amsmath package is not loaded. Your valuable explanation completes the cycle by providing the logic for the observed difference.

    – Partha D.
    Jan 30 at 14:47








2




2





Your screenshot appears to be missing a linebreak between A=B and C=D.

– Mico
Jan 29 at 21:00







Your screenshot appears to be missing a linebreak between A=B and C=D.

– Mico
Jan 29 at 21:00















@Mico But that's what I get without any packages loaded. The linebreak appears only with includepackage{amsmath}. Frankly speaking, I don't know the reason for that... maybe the matrix environment is defined differently there!

– Partha D.
Jan 30 at 13:32





@Mico But that's what I get without any packages loaded. The linebreak appears only with includepackage{amsmath}. Frankly speaking, I don't know the reason for that... maybe the matrix environment is defined differently there!

– Partha D.
Jan 30 at 13:32













The missing linebreak occurs precisely because you're not loading the amsmath package. The LaTeX kernel actually defines an environment called matrix, and that's what ends up being used because you're not loading the amsmath package, which provides a far more competent and polished environment with the same name. For the example at hand, I can see no valid reason for not loading the amsmath package.

– Mico
Jan 30 at 13:55





The missing linebreak occurs precisely because you're not loading the amsmath package. The LaTeX kernel actually defines an environment called matrix, and that's what ends up being used because you're not loading the amsmath package, which provides a far more competent and polished environment with the same name. For the example at hand, I can see no valid reason for not loading the amsmath package.

– Mico
Jan 30 at 13:55













@Mico Thanks for the explanation. My answer does suggest using amsmath to let the linebreak take effect... producing the first screenshot. I added the second screenshot in a later edit to give an idea of what happens when amsmath package is not loaded. Your valuable explanation completes the cycle by providing the logic for the observed difference.

– Partha D.
Jan 30 at 14:47





@Mico Thanks for the explanation. My answer does suggest using amsmath to let the linebreak take effect... producing the first screenshot. I added the second screenshot in a later edit to give an idea of what happens when amsmath package is not loaded. Your valuable explanation completes the cycle by providing the logic for the observed difference.

– Partha D.
Jan 30 at 14:47


















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%2f472435%2fbut-how-to-align-the-equality-sign-balanced%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

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?