New line does not appear in 'cases' environment











up vote
4
down vote

favorite












documentclass[12pt]{report}

begin{document}

$$(v_n) begin{cases} u_0=frac{1}{2} \ r=7 end{cases}$$

end{document}


Result :



enter image description here



I'm trying to make a multiline equation but when I use the code above it does not appear on multiple lines.










share|improve this question









New contributor




Gaëtan Ballèvre Rio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    Welcome to TeX.SE! Please make your code a full compilable example that shows your problem (starting from documentclass , ending in end{document} and containing all the code and packages needed just to show clearly your problem -without not needed packages and extra code that has nothing to do with your problem-)... This is called a MWE (Minimal Working Example) and is almost a mast in order to get a fast and accurate answer.
    – koleygr
    Nov 8 at 8:51










  • Thanks for the comment, just modified my question to be more understandable.
    – Gaëtan Ballèvre Rio
    Nov 8 at 9:00






  • 1




    Welcome... I wanted to see there what is the spaces environment and how to use it... But you miss-spelled the cases... corrected.
    – koleygr
    Nov 8 at 9:01










  • @GaëtanBallèvreRio The excellent user koleygr have written an important reason. You have not put any package for write your formula.
    – Sebastiano
    Nov 8 at 9:02












  • For historical reasons, LaTeX defines a cases command, which is used here and it's just by chance you get no error.
    – egreg
    Nov 8 at 9:35















up vote
4
down vote

favorite












documentclass[12pt]{report}

begin{document}

$$(v_n) begin{cases} u_0=frac{1}{2} \ r=7 end{cases}$$

end{document}


Result :



enter image description here



I'm trying to make a multiline equation but when I use the code above it does not appear on multiple lines.










share|improve this question









New contributor




Gaëtan Ballèvre Rio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    Welcome to TeX.SE! Please make your code a full compilable example that shows your problem (starting from documentclass , ending in end{document} and containing all the code and packages needed just to show clearly your problem -without not needed packages and extra code that has nothing to do with your problem-)... This is called a MWE (Minimal Working Example) and is almost a mast in order to get a fast and accurate answer.
    – koleygr
    Nov 8 at 8:51










  • Thanks for the comment, just modified my question to be more understandable.
    – Gaëtan Ballèvre Rio
    Nov 8 at 9:00






  • 1




    Welcome... I wanted to see there what is the spaces environment and how to use it... But you miss-spelled the cases... corrected.
    – koleygr
    Nov 8 at 9:01










  • @GaëtanBallèvreRio The excellent user koleygr have written an important reason. You have not put any package for write your formula.
    – Sebastiano
    Nov 8 at 9:02












  • For historical reasons, LaTeX defines a cases command, which is used here and it's just by chance you get no error.
    – egreg
    Nov 8 at 9:35













up vote
4
down vote

favorite









up vote
4
down vote

favorite











documentclass[12pt]{report}

begin{document}

$$(v_n) begin{cases} u_0=frac{1}{2} \ r=7 end{cases}$$

end{document}


Result :



enter image description here



I'm trying to make a multiline equation but when I use the code above it does not appear on multiple lines.










share|improve this question









New contributor




Gaëtan Ballèvre Rio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











documentclass[12pt]{report}

begin{document}

$$(v_n) begin{cases} u_0=frac{1}{2} \ r=7 end{cases}$$

end{document}


Result :



enter image description here



I'm trying to make a multiline equation but when I use the code above it does not appear on multiple lines.







math-mode






share|improve this question









New contributor




Gaëtan Ballèvre Rio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Gaëtan Ballèvre Rio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Nov 8 at 9:26









Mico

268k30363748




268k30363748






New contributor




Gaëtan Ballèvre Rio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 8 at 8:46









Gaëtan Ballèvre Rio

234




234




New contributor




Gaëtan Ballèvre Rio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Gaëtan Ballèvre Rio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Gaëtan Ballèvre Rio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1




    Welcome to TeX.SE! Please make your code a full compilable example that shows your problem (starting from documentclass , ending in end{document} and containing all the code and packages needed just to show clearly your problem -without not needed packages and extra code that has nothing to do with your problem-)... This is called a MWE (Minimal Working Example) and is almost a mast in order to get a fast and accurate answer.
    – koleygr
    Nov 8 at 8:51










  • Thanks for the comment, just modified my question to be more understandable.
    – Gaëtan Ballèvre Rio
    Nov 8 at 9:00






  • 1




    Welcome... I wanted to see there what is the spaces environment and how to use it... But you miss-spelled the cases... corrected.
    – koleygr
    Nov 8 at 9:01










  • @GaëtanBallèvreRio The excellent user koleygr have written an important reason. You have not put any package for write your formula.
    – Sebastiano
    Nov 8 at 9:02












  • For historical reasons, LaTeX defines a cases command, which is used here and it's just by chance you get no error.
    – egreg
    Nov 8 at 9:35














  • 1




    Welcome to TeX.SE! Please make your code a full compilable example that shows your problem (starting from documentclass , ending in end{document} and containing all the code and packages needed just to show clearly your problem -without not needed packages and extra code that has nothing to do with your problem-)... This is called a MWE (Minimal Working Example) and is almost a mast in order to get a fast and accurate answer.
    – koleygr
    Nov 8 at 8:51










  • Thanks for the comment, just modified my question to be more understandable.
    – Gaëtan Ballèvre Rio
    Nov 8 at 9:00






  • 1




    Welcome... I wanted to see there what is the spaces environment and how to use it... But you miss-spelled the cases... corrected.
    – koleygr
    Nov 8 at 9:01










  • @GaëtanBallèvreRio The excellent user koleygr have written an important reason. You have not put any package for write your formula.
    – Sebastiano
    Nov 8 at 9:02












  • For historical reasons, LaTeX defines a cases command, which is used here and it's just by chance you get no error.
    – egreg
    Nov 8 at 9:35








1




1




Welcome to TeX.SE! Please make your code a full compilable example that shows your problem (starting from documentclass , ending in end{document} and containing all the code and packages needed just to show clearly your problem -without not needed packages and extra code that has nothing to do with your problem-)... This is called a MWE (Minimal Working Example) and is almost a mast in order to get a fast and accurate answer.
– koleygr
Nov 8 at 8:51




Welcome to TeX.SE! Please make your code a full compilable example that shows your problem (starting from documentclass , ending in end{document} and containing all the code and packages needed just to show clearly your problem -without not needed packages and extra code that has nothing to do with your problem-)... This is called a MWE (Minimal Working Example) and is almost a mast in order to get a fast and accurate answer.
– koleygr
Nov 8 at 8:51












Thanks for the comment, just modified my question to be more understandable.
– Gaëtan Ballèvre Rio
Nov 8 at 9:00




Thanks for the comment, just modified my question to be more understandable.
– Gaëtan Ballèvre Rio
Nov 8 at 9:00




1




1




Welcome... I wanted to see there what is the spaces environment and how to use it... But you miss-spelled the cases... corrected.
– koleygr
Nov 8 at 9:01




Welcome... I wanted to see there what is the spaces environment and how to use it... But you miss-spelled the cases... corrected.
– koleygr
Nov 8 at 9:01












@GaëtanBallèvreRio The excellent user koleygr have written an important reason. You have not put any package for write your formula.
– Sebastiano
Nov 8 at 9:02






@GaëtanBallèvreRio The excellent user koleygr have written an important reason. You have not put any package for write your formula.
– Sebastiano
Nov 8 at 9:02














For historical reasons, LaTeX defines a cases command, which is used here and it's just by chance you get no error.
– egreg
Nov 8 at 9:35




For historical reasons, LaTeX defines a cases command, which is used here and it's just by chance you get no error.
– egreg
Nov 8 at 9:35










1 Answer
1






active

oldest

votes

















up vote
4
down vote



accepted










Two observations:




  • The double sign ($$...$$) method of initiating and terminating display-math material is deprecated in LaTeX documents. You should use [...] instead.


  • It is very important to know your preamble. The cases environment is not defined by the LaTeX kernel. It's necessary to load either the amsmath package or the mathtools package (a superset of the amsmath package) in order to be able to use the cases environment.



enter image description here



documentclass[12pt]{article}
usepackage{mathtools}

begin{document}
[(v_n) =begin{cases} u_0=frac{1}{2} \ r=7 end{cases}]
end{document}





share|improve this answer























  • Thanks for the answer, importing the mathtools package solved the problem. I don't quite understand why but it's working ! Also thanks for the good practice of using [...] instead of $$...$$.
    – Gaëtan Ballèvre Rio
    Nov 8 at 9:08








  • 1




    We are here to help all of us and we all have to help each other. For me this is the spirit of the TeX.SE site which is an excellent site where there are very good people. Your code can work very well using other packages, but it is also important that you insert next time a complete small example that reproduces the problem and that you also read some guides. I'll send you my regards.
    – Sebastiano
    Nov 8 at 9:11











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',
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
});


}
});






Gaëtan Ballèvre Rio is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f458927%2fnew-line-does-not-appear-in-cases-environment%23new-answer', 'question_page');
}
);

Post as a guest
































1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
4
down vote



accepted










Two observations:




  • The double sign ($$...$$) method of initiating and terminating display-math material is deprecated in LaTeX documents. You should use [...] instead.


  • It is very important to know your preamble. The cases environment is not defined by the LaTeX kernel. It's necessary to load either the amsmath package or the mathtools package (a superset of the amsmath package) in order to be able to use the cases environment.



enter image description here



documentclass[12pt]{article}
usepackage{mathtools}

begin{document}
[(v_n) =begin{cases} u_0=frac{1}{2} \ r=7 end{cases}]
end{document}





share|improve this answer























  • Thanks for the answer, importing the mathtools package solved the problem. I don't quite understand why but it's working ! Also thanks for the good practice of using [...] instead of $$...$$.
    – Gaëtan Ballèvre Rio
    Nov 8 at 9:08








  • 1




    We are here to help all of us and we all have to help each other. For me this is the spirit of the TeX.SE site which is an excellent site where there are very good people. Your code can work very well using other packages, but it is also important that you insert next time a complete small example that reproduces the problem and that you also read some guides. I'll send you my regards.
    – Sebastiano
    Nov 8 at 9:11















up vote
4
down vote



accepted










Two observations:




  • The double sign ($$...$$) method of initiating and terminating display-math material is deprecated in LaTeX documents. You should use [...] instead.


  • It is very important to know your preamble. The cases environment is not defined by the LaTeX kernel. It's necessary to load either the amsmath package or the mathtools package (a superset of the amsmath package) in order to be able to use the cases environment.



enter image description here



documentclass[12pt]{article}
usepackage{mathtools}

begin{document}
[(v_n) =begin{cases} u_0=frac{1}{2} \ r=7 end{cases}]
end{document}





share|improve this answer























  • Thanks for the answer, importing the mathtools package solved the problem. I don't quite understand why but it's working ! Also thanks for the good practice of using [...] instead of $$...$$.
    – Gaëtan Ballèvre Rio
    Nov 8 at 9:08








  • 1




    We are here to help all of us and we all have to help each other. For me this is the spirit of the TeX.SE site which is an excellent site where there are very good people. Your code can work very well using other packages, but it is also important that you insert next time a complete small example that reproduces the problem and that you also read some guides. I'll send you my regards.
    – Sebastiano
    Nov 8 at 9:11













up vote
4
down vote



accepted







up vote
4
down vote



accepted






Two observations:




  • The double sign ($$...$$) method of initiating and terminating display-math material is deprecated in LaTeX documents. You should use [...] instead.


  • It is very important to know your preamble. The cases environment is not defined by the LaTeX kernel. It's necessary to load either the amsmath package or the mathtools package (a superset of the amsmath package) in order to be able to use the cases environment.



enter image description here



documentclass[12pt]{article}
usepackage{mathtools}

begin{document}
[(v_n) =begin{cases} u_0=frac{1}{2} \ r=7 end{cases}]
end{document}





share|improve this answer














Two observations:




  • The double sign ($$...$$) method of initiating and terminating display-math material is deprecated in LaTeX documents. You should use [...] instead.


  • It is very important to know your preamble. The cases environment is not defined by the LaTeX kernel. It's necessary to load either the amsmath package or the mathtools package (a superset of the amsmath package) in order to be able to use the cases environment.



enter image description here



documentclass[12pt]{article}
usepackage{mathtools}

begin{document}
[(v_n) =begin{cases} u_0=frac{1}{2} \ r=7 end{cases}]
end{document}






share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 8 at 9:24









Mico

268k30363748




268k30363748










answered Nov 8 at 8:56









Sebastiano

8,21041754




8,21041754












  • Thanks for the answer, importing the mathtools package solved the problem. I don't quite understand why but it's working ! Also thanks for the good practice of using [...] instead of $$...$$.
    – Gaëtan Ballèvre Rio
    Nov 8 at 9:08








  • 1




    We are here to help all of us and we all have to help each other. For me this is the spirit of the TeX.SE site which is an excellent site where there are very good people. Your code can work very well using other packages, but it is also important that you insert next time a complete small example that reproduces the problem and that you also read some guides. I'll send you my regards.
    – Sebastiano
    Nov 8 at 9:11


















  • Thanks for the answer, importing the mathtools package solved the problem. I don't quite understand why but it's working ! Also thanks for the good practice of using [...] instead of $$...$$.
    – Gaëtan Ballèvre Rio
    Nov 8 at 9:08








  • 1




    We are here to help all of us and we all have to help each other. For me this is the spirit of the TeX.SE site which is an excellent site where there are very good people. Your code can work very well using other packages, but it is also important that you insert next time a complete small example that reproduces the problem and that you also read some guides. I'll send you my regards.
    – Sebastiano
    Nov 8 at 9:11
















Thanks for the answer, importing the mathtools package solved the problem. I don't quite understand why but it's working ! Also thanks for the good practice of using [...] instead of $$...$$.
– Gaëtan Ballèvre Rio
Nov 8 at 9:08






Thanks for the answer, importing the mathtools package solved the problem. I don't quite understand why but it's working ! Also thanks for the good practice of using [...] instead of $$...$$.
– Gaëtan Ballèvre Rio
Nov 8 at 9:08






1




1




We are here to help all of us and we all have to help each other. For me this is the spirit of the TeX.SE site which is an excellent site where there are very good people. Your code can work very well using other packages, but it is also important that you insert next time a complete small example that reproduces the problem and that you also read some guides. I'll send you my regards.
– Sebastiano
Nov 8 at 9:11




We are here to help all of us and we all have to help each other. For me this is the spirit of the TeX.SE site which is an excellent site where there are very good people. Your code can work very well using other packages, but it is also important that you insert next time a complete small example that reproduces the problem and that you also read some guides. I'll send you my regards.
– Sebastiano
Nov 8 at 9:11










Gaëtan Ballèvre Rio is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















Gaëtan Ballèvre Rio is a new contributor. Be nice, and check out our Code of Conduct.













Gaëtan Ballèvre Rio is a new contributor. Be nice, and check out our Code of Conduct.












Gaëtan Ballèvre Rio is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f458927%2fnew-line-does-not-appear-in-cases-environment%23new-answer', 'question_page');
}
);

Post as a guest




















































































Popular posts from this blog

Schultheiß

Verwaltungsgliederung Dänemarks

Liste der Kulturdenkmale in Wilsdruff