New line does not appear in 'cases' environment

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












documentclass[12pt]report

begindocument

$$(v_n) begincases u_0=frac12 \ r=7 endcases$$

enddocument


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 enddocument 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
    1 hour ago










  • Thanks for the comment, just modified my question to be more understandable.
    – Gaëtan Ballèvre Rio
    52 mins ago






  • 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
    51 mins ago










  • @GaëtanBallèvreRio The excellent user koleygr have written an important reason. You have not put any package for write your formula.
    – Sebastiano
    51 mins ago











  • For historical reasons, LaTeX defines a cases command, which is used here and it's just by chance you get no error.
    – egreg
    18 mins ago














up vote
1
down vote

favorite












documentclass[12pt]report

begindocument

$$(v_n) begincases u_0=frac12 \ r=7 endcases$$

enddocument


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 enddocument 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
    1 hour ago










  • Thanks for the comment, just modified my question to be more understandable.
    – Gaëtan Ballèvre Rio
    52 mins ago






  • 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
    51 mins ago










  • @GaëtanBallèvreRio The excellent user koleygr have written an important reason. You have not put any package for write your formula.
    – Sebastiano
    51 mins ago











  • For historical reasons, LaTeX defines a cases command, which is used here and it's just by chance you get no error.
    – egreg
    18 mins ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











documentclass[12pt]report

begindocument

$$(v_n) begincases u_0=frac12 \ r=7 endcases$$

enddocument


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

begindocument

$$(v_n) begincases u_0=frac12 \ r=7 endcases$$

enddocument


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 26 mins ago









Mico

268k30362746




268k30362746






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 1 hour ago









Gaëtan Ballèvre Rio

84




84




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 enddocument 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
    1 hour ago










  • Thanks for the comment, just modified my question to be more understandable.
    – Gaëtan Ballèvre Rio
    52 mins ago






  • 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
    51 mins ago










  • @GaëtanBallèvreRio The excellent user koleygr have written an important reason. You have not put any package for write your formula.
    – Sebastiano
    51 mins ago











  • For historical reasons, LaTeX defines a cases command, which is used here and it's just by chance you get no error.
    – egreg
    18 mins ago












  • 1




    Welcome to TeX.SE! Please make your code a full compilable example that shows your problem (starting from documentclass , ending in enddocument 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
    1 hour ago










  • Thanks for the comment, just modified my question to be more understandable.
    – Gaëtan Ballèvre Rio
    52 mins ago






  • 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
    51 mins ago










  • @GaëtanBallèvreRio The excellent user koleygr have written an important reason. You have not put any package for write your formula.
    – Sebastiano
    51 mins ago











  • For historical reasons, LaTeX defines a cases command, which is used here and it's just by chance you get no error.
    – egreg
    18 mins ago







1




1




Welcome to TeX.SE! Please make your code a full compilable example that shows your problem (starting from documentclass , ending in enddocument 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
1 hour ago




Welcome to TeX.SE! Please make your code a full compilable example that shows your problem (starting from documentclass , ending in enddocument 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
1 hour ago












Thanks for the comment, just modified my question to be more understandable.
– Gaëtan Ballèvre Rio
52 mins ago




Thanks for the comment, just modified my question to be more understandable.
– Gaëtan Ballèvre Rio
52 mins ago




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
51 mins ago




Welcome... I wanted to see there what is the spaces environment and how to use it... But you miss-spelled the cases... corrected.
– koleygr
51 mins ago












@GaëtanBallèvreRio The excellent user koleygr have written an important reason. You have not put any package for write your formula.
– Sebastiano
51 mins ago





@GaëtanBallèvreRio The excellent user koleygr have written an important reason. You have not put any package for write your formula.
– Sebastiano
51 mins ago













For historical reasons, LaTeX defines a cases command, which is used here and it's just by chance you get no error.
– egreg
18 mins ago




For historical reasons, LaTeX defines a cases command, which is used here and it's just by chance you get no error.
– egreg
18 mins ago










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
usepackagemathtools

begindocument
[(v_n) =begincases u_0=frac12 \ r=7 endcases]
enddocument





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
    45 mins ago







  • 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
    41 mins ago










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
usepackagemathtools

begindocument
[(v_n) =begincases u_0=frac12 \ r=7 endcases]
enddocument





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
    45 mins ago







  • 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
    41 mins ago














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
usepackagemathtools

begindocument
[(v_n) =begincases u_0=frac12 \ r=7 endcases]
enddocument





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
    45 mins ago







  • 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
    41 mins ago












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
usepackagemathtools

begindocument
[(v_n) =begincases u_0=frac12 \ r=7 endcases]
enddocument





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
usepackagemathtools

begindocument
[(v_n) =begincases u_0=frac12 \ r=7 endcases]
enddocument






share|improve this answer














share|improve this answer



share|improve this answer








edited 29 mins ago









Mico

268k30362746




268k30362746










answered 56 mins ago









Sebastiano

8,11241754




8,11241754











  • 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
    45 mins ago







  • 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
    41 mins ago
















  • 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
    45 mins ago







  • 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
    41 mins ago















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
45 mins ago





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
45 mins ago





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
41 mins ago




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
41 mins ago










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













































































Comments

Popular posts from this blog

What does second last employer means? [closed]

List of Gilmore Girls characters

Confectionery