How to get rid of & in cases environment but still get the same space in the surroundings












1















Recently I asked a question on chat but I was told that I have to ask it on the main site, so here I am.



I am using cases environment to create multiple system of equations separated by a symbol e.g. equiv. Here is an example:



documentclass{article}
usepackage[english]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{amsmath}

begin{document}

[
begin{cases}
x+y=2,\x=2
end{cases}
equiv
begin{cases}
2+y=2,\x=2
end{cases}
]

end{document}


What I have done



However, as you can see there is a huge space between the end of the first cases and the equiv. This is due of the absence of & symbol in cases, but I do not want to add this symbol to fill the space. So a manual, inefficient and even incorrect solution that I found was to add negative space, let's say add 5/6 !'s just before equiv.



If I add 5 negative spaces then there is more space on one side than on the other:



What happens if we add five !



If I add 6 negative spaces then the same thing happens as before:



The same thing happens



More than 6 or less than 5 will cause a worse output.



I would like that, keeping the same format of system of equations, there would be a homogeneous space on both sides of each cases. Is it possible?



Thanks!!



P.S. I would also like to know if in a system of equations you would separate each equation by a , except in the last equation that appears, that is, in the one below (unless there is a text that continues with the reading or that ends the sentence). Does AMS Style Guide say something about this?










share|improve this question

























  • If we use left{begin{array}{l}...end{array}right. instead of cases then the space between the left brace and the system of equations should also be corrected, in addition to solve the problem of space between the environment and any consequent symbol.

    – manooooh
    7 mins ago


















1















Recently I asked a question on chat but I was told that I have to ask it on the main site, so here I am.



I am using cases environment to create multiple system of equations separated by a symbol e.g. equiv. Here is an example:



documentclass{article}
usepackage[english]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{amsmath}

begin{document}

[
begin{cases}
x+y=2,\x=2
end{cases}
equiv
begin{cases}
2+y=2,\x=2
end{cases}
]

end{document}


What I have done



However, as you can see there is a huge space between the end of the first cases and the equiv. This is due of the absence of & symbol in cases, but I do not want to add this symbol to fill the space. So a manual, inefficient and even incorrect solution that I found was to add negative space, let's say add 5/6 !'s just before equiv.



If I add 5 negative spaces then there is more space on one side than on the other:



What happens if we add five !



If I add 6 negative spaces then the same thing happens as before:



The same thing happens



More than 6 or less than 5 will cause a worse output.



I would like that, keeping the same format of system of equations, there would be a homogeneous space on both sides of each cases. Is it possible?



Thanks!!



P.S. I would also like to know if in a system of equations you would separate each equation by a , except in the last equation that appears, that is, in the one below (unless there is a text that continues with the reading or that ends the sentence). Does AMS Style Guide say something about this?










share|improve this question

























  • If we use left{begin{array}{l}...end{array}right. instead of cases then the space between the left brace and the system of equations should also be corrected, in addition to solve the problem of space between the environment and any consequent symbol.

    – manooooh
    7 mins ago
















1












1








1








Recently I asked a question on chat but I was told that I have to ask it on the main site, so here I am.



I am using cases environment to create multiple system of equations separated by a symbol e.g. equiv. Here is an example:



documentclass{article}
usepackage[english]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{amsmath}

begin{document}

[
begin{cases}
x+y=2,\x=2
end{cases}
equiv
begin{cases}
2+y=2,\x=2
end{cases}
]

end{document}


What I have done



However, as you can see there is a huge space between the end of the first cases and the equiv. This is due of the absence of & symbol in cases, but I do not want to add this symbol to fill the space. So a manual, inefficient and even incorrect solution that I found was to add negative space, let's say add 5/6 !'s just before equiv.



If I add 5 negative spaces then there is more space on one side than on the other:



What happens if we add five !



If I add 6 negative spaces then the same thing happens as before:



The same thing happens



More than 6 or less than 5 will cause a worse output.



I would like that, keeping the same format of system of equations, there would be a homogeneous space on both sides of each cases. Is it possible?



Thanks!!



P.S. I would also like to know if in a system of equations you would separate each equation by a , except in the last equation that appears, that is, in the one below (unless there is a text that continues with the reading or that ends the sentence). Does AMS Style Guide say something about this?










share|improve this question
















Recently I asked a question on chat but I was told that I have to ask it on the main site, so here I am.



I am using cases environment to create multiple system of equations separated by a symbol e.g. equiv. Here is an example:



documentclass{article}
usepackage[english]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{amsmath}

begin{document}

[
begin{cases}
x+y=2,\x=2
end{cases}
equiv
begin{cases}
2+y=2,\x=2
end{cases}
]

end{document}


What I have done



However, as you can see there is a huge space between the end of the first cases and the equiv. This is due of the absence of & symbol in cases, but I do not want to add this symbol to fill the space. So a manual, inefficient and even incorrect solution that I found was to add negative space, let's say add 5/6 !'s just before equiv.



If I add 5 negative spaces then there is more space on one side than on the other:



What happens if we add five !



If I add 6 negative spaces then the same thing happens as before:



The same thing happens



More than 6 or less than 5 will cause a worse output.



I would like that, keeping the same format of system of equations, there would be a homogeneous space on both sides of each cases. Is it possible?



Thanks!!



P.S. I would also like to know if in a system of equations you would separate each equation by a , except in the last equation that appears, that is, in the one below (unless there is a text that continues with the reading or that ends the sentence). Does AMS Style Guide say something about this?







spacing amsmath cases






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 12 mins ago







manooooh

















asked 21 mins ago









manoooohmanooooh

9711516




9711516













  • If we use left{begin{array}{l}...end{array}right. instead of cases then the space between the left brace and the system of equations should also be corrected, in addition to solve the problem of space between the environment and any consequent symbol.

    – manooooh
    7 mins ago





















  • If we use left{begin{array}{l}...end{array}right. instead of cases then the space between the left brace and the system of equations should also be corrected, in addition to solve the problem of space between the environment and any consequent symbol.

    – manooooh
    7 mins ago



















If we use left{begin{array}{l}...end{array}right. instead of cases then the space between the left brace and the system of equations should also be corrected, in addition to solve the problem of space between the environment and any consequent symbol.

– manooooh
7 mins ago







If we use left{begin{array}{l}...end{array}right. instead of cases then the space between the left brace and the system of equations should also be corrected, in addition to solve the problem of space between the environment and any consequent symbol.

– manooooh
7 mins ago












0






active

oldest

votes











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%2f476111%2fhow-to-get-rid-of-in-cases-environment-but-still-get-the-same-space-in-the-sur%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















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%2f476111%2fhow-to-get-rid-of-in-cases-environment-but-still-get-the-same-space-in-the-sur%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

Accessing regular linux commands in Huawei's Dopra Linux

Can't connect RFCOMM socket: Host is down

Kernel panic - not syncing: Fatal Exception in Interrupt