Using numcases with cases
I have an equation like so:
[ begin{cases}
Eqn1 &= 0,\
Eqn2 &= 0,
end{cases} iff
begin{cases}
Eqn3 &= 0,\
Eqn4 &= 0,\
Eqn5 &= 0.
end{cases}
]
This works all nice and good, however, I would like to numerate the "right side" of those (in this case 3) equations. Naively, I thought I could use numcases for the second "block", but of course this is good as numcases for some reason cannot be between []
or the-like.
Is there a way to do this?
Patrick
math-mode equations labels cases
add a comment |
I have an equation like so:
[ begin{cases}
Eqn1 &= 0,\
Eqn2 &= 0,
end{cases} iff
begin{cases}
Eqn3 &= 0,\
Eqn4 &= 0,\
Eqn5 &= 0.
end{cases}
]
This works all nice and good, however, I would like to numerate the "right side" of those (in this case 3) equations. Naively, I thought I could use numcases for the second "block", but of course this is good as numcases for some reason cannot be between []
or the-like.
Is there a way to do this?
Patrick
math-mode equations labels cases
Where did you get numcases? It isn't in amsmath or mathtools.
– John Kormylo
Feb 23 at 15:29
add a comment |
I have an equation like so:
[ begin{cases}
Eqn1 &= 0,\
Eqn2 &= 0,
end{cases} iff
begin{cases}
Eqn3 &= 0,\
Eqn4 &= 0,\
Eqn5 &= 0.
end{cases}
]
This works all nice and good, however, I would like to numerate the "right side" of those (in this case 3) equations. Naively, I thought I could use numcases for the second "block", but of course this is good as numcases for some reason cannot be between []
or the-like.
Is there a way to do this?
Patrick
math-mode equations labels cases
I have an equation like so:
[ begin{cases}
Eqn1 &= 0,\
Eqn2 &= 0,
end{cases} iff
begin{cases}
Eqn3 &= 0,\
Eqn4 &= 0,\
Eqn5 &= 0.
end{cases}
]
This works all nice and good, however, I would like to numerate the "right side" of those (in this case 3) equations. Naively, I thought I could use numcases for the second "block", but of course this is good as numcases for some reason cannot be between []
or the-like.
Is there a way to do this?
Patrick
math-mode equations labels cases
math-mode equations labels cases
asked Feb 23 at 15:21
Patrick.BPatrick.B
82
82
Where did you get numcases? It isn't in amsmath or mathtools.
– John Kormylo
Feb 23 at 15:29
add a comment |
Where did you get numcases? It isn't in amsmath or mathtools.
– John Kormylo
Feb 23 at 15:29
Where did you get numcases? It isn't in amsmath or mathtools.
– John Kormylo
Feb 23 at 15:29
Where did you get numcases? It isn't in amsmath or mathtools.
– John Kormylo
Feb 23 at 15:29
add a comment |
2 Answers
2
active
oldest
votes
I'm not sure your readers will understand what the numbers refer to.
documentclass{article}
usepackage{empheq} % also loads amsmath
begin{document}
begin{empheq}[
left=
{begin{cases}
Eqn1 = 0,\
Eqn2 = 0,
end{cases}} iff
empheqlbrace
]{align}
Eqn3 &= 0,\
Eqn4 &= 0,\
Eqn5 &= 0.
end{empheq}
end{document}
The additional braces around begin{cases}...end{cases}
are needed because there are commas in the code. Note that you shouldn't use &=
inside cases
(thanks to Bernard for noting).
1
The spacing of=
is not correct in the cases envritonment.
– Bernard
Feb 23 at 16:13
@Bernard Right. Fixed with acknowledgment.
– egreg
Feb 23 at 16:16
If the OP wants to get a proper space between system of equations I suggest follow this @egreg's answer: How to get rid of & in cases environment but still get the same space in the surroundings.
– manooooh
Feb 23 at 16:29
add a comment |
To disambiguate to which equalities the numbers refer to, one may use theadjustwidth
environment, to have the numbers closer. Also, one can nest cases
in the left-side argument of numcases
:
documentclass{article}
usepackage{cases}
usepackage{changepage}
usepackage{showframe}
renewcommand{ShowFrameLinethickness}{0.3pt}
begin{document}
begin{adjustwidth}{6em}{6em}
begin{numcases}
{begin{cases}
Eqn1 = 0,\
Eqn2 = 0,
end{cases} iff}
Eqn3 = 0,\
Eqn4 = 0,\
Eqn5 = 0.
end{numcases}
end{adjustwidth}
end{document}
add a comment |
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
});
}
});
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476343%2fusing-numcases-with-cases%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
I'm not sure your readers will understand what the numbers refer to.
documentclass{article}
usepackage{empheq} % also loads amsmath
begin{document}
begin{empheq}[
left=
{begin{cases}
Eqn1 = 0,\
Eqn2 = 0,
end{cases}} iff
empheqlbrace
]{align}
Eqn3 &= 0,\
Eqn4 &= 0,\
Eqn5 &= 0.
end{empheq}
end{document}
The additional braces around begin{cases}...end{cases}
are needed because there are commas in the code. Note that you shouldn't use &=
inside cases
(thanks to Bernard for noting).
1
The spacing of=
is not correct in the cases envritonment.
– Bernard
Feb 23 at 16:13
@Bernard Right. Fixed with acknowledgment.
– egreg
Feb 23 at 16:16
If the OP wants to get a proper space between system of equations I suggest follow this @egreg's answer: How to get rid of & in cases environment but still get the same space in the surroundings.
– manooooh
Feb 23 at 16:29
add a comment |
I'm not sure your readers will understand what the numbers refer to.
documentclass{article}
usepackage{empheq} % also loads amsmath
begin{document}
begin{empheq}[
left=
{begin{cases}
Eqn1 = 0,\
Eqn2 = 0,
end{cases}} iff
empheqlbrace
]{align}
Eqn3 &= 0,\
Eqn4 &= 0,\
Eqn5 &= 0.
end{empheq}
end{document}
The additional braces around begin{cases}...end{cases}
are needed because there are commas in the code. Note that you shouldn't use &=
inside cases
(thanks to Bernard for noting).
1
The spacing of=
is not correct in the cases envritonment.
– Bernard
Feb 23 at 16:13
@Bernard Right. Fixed with acknowledgment.
– egreg
Feb 23 at 16:16
If the OP wants to get a proper space between system of equations I suggest follow this @egreg's answer: How to get rid of & in cases environment but still get the same space in the surroundings.
– manooooh
Feb 23 at 16:29
add a comment |
I'm not sure your readers will understand what the numbers refer to.
documentclass{article}
usepackage{empheq} % also loads amsmath
begin{document}
begin{empheq}[
left=
{begin{cases}
Eqn1 = 0,\
Eqn2 = 0,
end{cases}} iff
empheqlbrace
]{align}
Eqn3 &= 0,\
Eqn4 &= 0,\
Eqn5 &= 0.
end{empheq}
end{document}
The additional braces around begin{cases}...end{cases}
are needed because there are commas in the code. Note that you shouldn't use &=
inside cases
(thanks to Bernard for noting).
I'm not sure your readers will understand what the numbers refer to.
documentclass{article}
usepackage{empheq} % also loads amsmath
begin{document}
begin{empheq}[
left=
{begin{cases}
Eqn1 = 0,\
Eqn2 = 0,
end{cases}} iff
empheqlbrace
]{align}
Eqn3 &= 0,\
Eqn4 &= 0,\
Eqn5 &= 0.
end{empheq}
end{document}
The additional braces around begin{cases}...end{cases}
are needed because there are commas in the code. Note that you shouldn't use &=
inside cases
(thanks to Bernard for noting).
edited Feb 23 at 16:16
answered Feb 23 at 15:52
egregegreg
723k8819173221
723k8819173221
1
The spacing of=
is not correct in the cases envritonment.
– Bernard
Feb 23 at 16:13
@Bernard Right. Fixed with acknowledgment.
– egreg
Feb 23 at 16:16
If the OP wants to get a proper space between system of equations I suggest follow this @egreg's answer: How to get rid of & in cases environment but still get the same space in the surroundings.
– manooooh
Feb 23 at 16:29
add a comment |
1
The spacing of=
is not correct in the cases envritonment.
– Bernard
Feb 23 at 16:13
@Bernard Right. Fixed with acknowledgment.
– egreg
Feb 23 at 16:16
If the OP wants to get a proper space between system of equations I suggest follow this @egreg's answer: How to get rid of & in cases environment but still get the same space in the surroundings.
– manooooh
Feb 23 at 16:29
1
1
The spacing of
=
is not correct in the cases envritonment.– Bernard
Feb 23 at 16:13
The spacing of
=
is not correct in the cases envritonment.– Bernard
Feb 23 at 16:13
@Bernard Right. Fixed with acknowledgment.
– egreg
Feb 23 at 16:16
@Bernard Right. Fixed with acknowledgment.
– egreg
Feb 23 at 16:16
If the OP wants to get a proper space between system of equations I suggest follow this @egreg's answer: How to get rid of & in cases environment but still get the same space in the surroundings.
– manooooh
Feb 23 at 16:29
If the OP wants to get a proper space between system of equations I suggest follow this @egreg's answer: How to get rid of & in cases environment but still get the same space in the surroundings.
– manooooh
Feb 23 at 16:29
add a comment |
To disambiguate to which equalities the numbers refer to, one may use theadjustwidth
environment, to have the numbers closer. Also, one can nest cases
in the left-side argument of numcases
:
documentclass{article}
usepackage{cases}
usepackage{changepage}
usepackage{showframe}
renewcommand{ShowFrameLinethickness}{0.3pt}
begin{document}
begin{adjustwidth}{6em}{6em}
begin{numcases}
{begin{cases}
Eqn1 = 0,\
Eqn2 = 0,
end{cases} iff}
Eqn3 = 0,\
Eqn4 = 0,\
Eqn5 = 0.
end{numcases}
end{adjustwidth}
end{document}
add a comment |
To disambiguate to which equalities the numbers refer to, one may use theadjustwidth
environment, to have the numbers closer. Also, one can nest cases
in the left-side argument of numcases
:
documentclass{article}
usepackage{cases}
usepackage{changepage}
usepackage{showframe}
renewcommand{ShowFrameLinethickness}{0.3pt}
begin{document}
begin{adjustwidth}{6em}{6em}
begin{numcases}
{begin{cases}
Eqn1 = 0,\
Eqn2 = 0,
end{cases} iff}
Eqn3 = 0,\
Eqn4 = 0,\
Eqn5 = 0.
end{numcases}
end{adjustwidth}
end{document}
add a comment |
To disambiguate to which equalities the numbers refer to, one may use theadjustwidth
environment, to have the numbers closer. Also, one can nest cases
in the left-side argument of numcases
:
documentclass{article}
usepackage{cases}
usepackage{changepage}
usepackage{showframe}
renewcommand{ShowFrameLinethickness}{0.3pt}
begin{document}
begin{adjustwidth}{6em}{6em}
begin{numcases}
{begin{cases}
Eqn1 = 0,\
Eqn2 = 0,
end{cases} iff}
Eqn3 = 0,\
Eqn4 = 0,\
Eqn5 = 0.
end{numcases}
end{adjustwidth}
end{document}
To disambiguate to which equalities the numbers refer to, one may use theadjustwidth
environment, to have the numbers closer. Also, one can nest cases
in the left-side argument of numcases
:
documentclass{article}
usepackage{cases}
usepackage{changepage}
usepackage{showframe}
renewcommand{ShowFrameLinethickness}{0.3pt}
begin{document}
begin{adjustwidth}{6em}{6em}
begin{numcases}
{begin{cases}
Eqn1 = 0,\
Eqn2 = 0,
end{cases} iff}
Eqn3 = 0,\
Eqn4 = 0,\
Eqn5 = 0.
end{numcases}
end{adjustwidth}
end{document}
answered Feb 23 at 16:23
BernardBernard
172k775203
172k775203
add a comment |
add a comment |
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.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476343%2fusing-numcases-with-cases%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
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
Where did you get numcases? It isn't in amsmath or mathtools.
– John Kormylo
Feb 23 at 15:29