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 :
I'm trying to make a multiline equation but when I use the code above it does not appear on multiple lines.
math-mode
New contributor
add a comment |
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 :
I'm trying to make a multiline equation but when I use the code above it does not appear on multiple lines.
math-mode
New contributor
1
Welcome to TeX.SE! Please make your code a full compilable example that shows your problem (starting fromdocumentclass
, ending inend{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 thespaces
environment and how to use it... But you miss-spelled thecases
... 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 acases
command, which is used here and it's just by chance you get no error.
– egreg
Nov 8 at 9:35
add a comment |
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 :
I'm trying to make a multiline equation but when I use the code above it does not appear on multiple lines.
math-mode
New contributor
documentclass[12pt]{report}
begin{document}
$$(v_n) begin{cases} u_0=frac{1}{2} \ r=7 end{cases}$$
end{document}
Result :
I'm trying to make a multiline equation but when I use the code above it does not appear on multiple lines.
math-mode
math-mode
New contributor
New contributor
edited Nov 8 at 9:26
Mico
268k30363748
268k30363748
New contributor
asked Nov 8 at 8:46
Gaëtan Ballèvre Rio
234
234
New contributor
New contributor
1
Welcome to TeX.SE! Please make your code a full compilable example that shows your problem (starting fromdocumentclass
, ending inend{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 thespaces
environment and how to use it... But you miss-spelled thecases
... 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 acases
command, which is used here and it's just by chance you get no error.
– egreg
Nov 8 at 9:35
add a comment |
1
Welcome to TeX.SE! Please make your code a full compilable example that shows your problem (starting fromdocumentclass
, ending inend{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 thespaces
environment and how to use it... But you miss-spelled thecases
... 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 acases
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
add a comment |
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 theamsmath
package or themathtools
package (a superset of theamsmath
package) in order to be able to use thecases
environment.
documentclass[12pt]{article}
usepackage{mathtools}
begin{document}
[(v_n) =begin{cases} u_0=frac{1}{2} \ r=7 end{cases}]
end{document}
Thanks for the answer, importing themathtools
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
add a comment |
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 theamsmath
package or themathtools
package (a superset of theamsmath
package) in order to be able to use thecases
environment.
documentclass[12pt]{article}
usepackage{mathtools}
begin{document}
[(v_n) =begin{cases} u_0=frac{1}{2} \ r=7 end{cases}]
end{document}
Thanks for the answer, importing themathtools
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
add a comment |
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 theamsmath
package or themathtools
package (a superset of theamsmath
package) in order to be able to use thecases
environment.
documentclass[12pt]{article}
usepackage{mathtools}
begin{document}
[(v_n) =begin{cases} u_0=frac{1}{2} \ r=7 end{cases}]
end{document}
Thanks for the answer, importing themathtools
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
add a comment |
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 theamsmath
package or themathtools
package (a superset of theamsmath
package) in order to be able to use thecases
environment.
documentclass[12pt]{article}
usepackage{mathtools}
begin{document}
[(v_n) =begin{cases} u_0=frac{1}{2} \ r=7 end{cases}]
end{document}
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 theamsmath
package or themathtools
package (a superset of theamsmath
package) in order to be able to use thecases
environment.
documentclass[12pt]{article}
usepackage{mathtools}
begin{document}
[(v_n) =begin{cases} u_0=frac{1}{2} \ r=7 end{cases}]
end{document}
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 themathtools
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
add a comment |
Thanks for the answer, importing themathtools
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
add a comment |
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.
Gaëtan Ballèvre Rio is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Welcome to TeX.SE! Please make your code a full compilable example that shows your problem (starting from
documentclass
, ending inend{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 thecases
... 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