`startalign` and `startcases` are not compatible
In ConTeXt, it seems that startalign
and startcases
are not compatible.
If so, what should I do when I want to align an equation containing a case-statement and a following equation?
starttext
placeformula
startformula
startalign % < -- Causes compilation error
NC f(x) NC
=startcases
NC 1, MC x >0 NR
NC 0,MC x leq 0 NR
stopcases
NC g(x) NC =x^2 +2x +1
stopalign % < -- Causes compilation error
stopformula
stoptext
context cases alignment
add a comment |
In ConTeXt, it seems that startalign
and startcases
are not compatible.
If so, what should I do when I want to align an equation containing a case-statement and a following equation?
starttext
placeformula
startformula
startalign % < -- Causes compilation error
NC f(x) NC
=startcases
NC 1, MC x >0 NR
NC 0,MC x leq 0 NR
stopcases
NC g(x) NC =x^2 +2x +1
stopalign % < -- Causes compilation error
stopformula
stoptext
context cases alignment
add a comment |
In ConTeXt, it seems that startalign
and startcases
are not compatible.
If so, what should I do when I want to align an equation containing a case-statement and a following equation?
starttext
placeformula
startformula
startalign % < -- Causes compilation error
NC f(x) NC
=startcases
NC 1, MC x >0 NR
NC 0,MC x leq 0 NR
stopcases
NC g(x) NC =x^2 +2x +1
stopalign % < -- Causes compilation error
stopformula
stoptext
context cases alignment
In ConTeXt, it seems that startalign
and startcases
are not compatible.
If so, what should I do when I want to align an equation containing a case-statement and a following equation?
starttext
placeformula
startformula
startalign % < -- Causes compilation error
NC f(x) NC
=startcases
NC 1, MC x >0 NR
NC 0,MC x leq 0 NR
stopcases
NC g(x) NC =x^2 +2x +1
stopalign % < -- Causes compilation error
stopformula
stoptext
context cases alignment
context cases alignment
edited Feb 22 at 13:42
Aminopterin
asked Feb 22 at 11:50
AminopterinAminopterin
32019
32019
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Each line of a multi-line math align environment must be of the form:
NC .... NC .... NR
So, you have to close the first line with NR
after the case
environment:
starttext
startformula startalign
NC f(x) NC = startcases
NC 1, MC x > 0 NR
NC 0, MC x >= 0 NR
stopcases NR
NC g(x) NC = x^2 +2x +1 NR
stopalign stopformula
stoptext
@TeXnician Totally
– DG'
Feb 22 at 12:35
Oh, the first=0
in my question is superfluous. Since the text is invented, I overlooked that. Shall I edit it away for future reader?
– Aminopterin
Feb 22 at 13:09
1
@DG' I changed the language a little bit. Hope that you don't mind.
– Aditya
Feb 22 at 16:02
@Aditya On the contrary, I appreciate it
– DG'
Feb 22 at 16:11
@TeXnician: sorry I misread your comment
– Aditya
Feb 23 at 5:17
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%2f476145%2fstartalign-and-startcases-are-not-compatible%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Each line of a multi-line math align environment must be of the form:
NC .... NC .... NR
So, you have to close the first line with NR
after the case
environment:
starttext
startformula startalign
NC f(x) NC = startcases
NC 1, MC x > 0 NR
NC 0, MC x >= 0 NR
stopcases NR
NC g(x) NC = x^2 +2x +1 NR
stopalign stopformula
stoptext
@TeXnician Totally
– DG'
Feb 22 at 12:35
Oh, the first=0
in my question is superfluous. Since the text is invented, I overlooked that. Shall I edit it away for future reader?
– Aminopterin
Feb 22 at 13:09
1
@DG' I changed the language a little bit. Hope that you don't mind.
– Aditya
Feb 22 at 16:02
@Aditya On the contrary, I appreciate it
– DG'
Feb 22 at 16:11
@TeXnician: sorry I misread your comment
– Aditya
Feb 23 at 5:17
add a comment |
Each line of a multi-line math align environment must be of the form:
NC .... NC .... NR
So, you have to close the first line with NR
after the case
environment:
starttext
startformula startalign
NC f(x) NC = startcases
NC 1, MC x > 0 NR
NC 0, MC x >= 0 NR
stopcases NR
NC g(x) NC = x^2 +2x +1 NR
stopalign stopformula
stoptext
@TeXnician Totally
– DG'
Feb 22 at 12:35
Oh, the first=0
in my question is superfluous. Since the text is invented, I overlooked that. Shall I edit it away for future reader?
– Aminopterin
Feb 22 at 13:09
1
@DG' I changed the language a little bit. Hope that you don't mind.
– Aditya
Feb 22 at 16:02
@Aditya On the contrary, I appreciate it
– DG'
Feb 22 at 16:11
@TeXnician: sorry I misread your comment
– Aditya
Feb 23 at 5:17
add a comment |
Each line of a multi-line math align environment must be of the form:
NC .... NC .... NR
So, you have to close the first line with NR
after the case
environment:
starttext
startformula startalign
NC f(x) NC = startcases
NC 1, MC x > 0 NR
NC 0, MC x >= 0 NR
stopcases NR
NC g(x) NC = x^2 +2x +1 NR
stopalign stopformula
stoptext
Each line of a multi-line math align environment must be of the form:
NC .... NC .... NR
So, you have to close the first line with NR
after the case
environment:
starttext
startformula startalign
NC f(x) NC = startcases
NC 1, MC x > 0 NR
NC 0, MC x >= 0 NR
stopcases NR
NC g(x) NC = x^2 +2x +1 NR
stopalign stopformula
stoptext
edited Feb 22 at 16:01
Aditya
55.5k2109236
55.5k2109236
answered Feb 22 at 12:15
DG'DG'
10.7k21844
10.7k21844
@TeXnician Totally
– DG'
Feb 22 at 12:35
Oh, the first=0
in my question is superfluous. Since the text is invented, I overlooked that. Shall I edit it away for future reader?
– Aminopterin
Feb 22 at 13:09
1
@DG' I changed the language a little bit. Hope that you don't mind.
– Aditya
Feb 22 at 16:02
@Aditya On the contrary, I appreciate it
– DG'
Feb 22 at 16:11
@TeXnician: sorry I misread your comment
– Aditya
Feb 23 at 5:17
add a comment |
@TeXnician Totally
– DG'
Feb 22 at 12:35
Oh, the first=0
in my question is superfluous. Since the text is invented, I overlooked that. Shall I edit it away for future reader?
– Aminopterin
Feb 22 at 13:09
1
@DG' I changed the language a little bit. Hope that you don't mind.
– Aditya
Feb 22 at 16:02
@Aditya On the contrary, I appreciate it
– DG'
Feb 22 at 16:11
@TeXnician: sorry I misread your comment
– Aditya
Feb 23 at 5:17
@TeXnician Totally
– DG'
Feb 22 at 12:35
@TeXnician Totally
– DG'
Feb 22 at 12:35
Oh, the first
=0
in my question is superfluous. Since the text is invented, I overlooked that. Shall I edit it away for future reader?– Aminopterin
Feb 22 at 13:09
Oh, the first
=0
in my question is superfluous. Since the text is invented, I overlooked that. Shall I edit it away for future reader?– Aminopterin
Feb 22 at 13:09
1
1
@DG' I changed the language a little bit. Hope that you don't mind.
– Aditya
Feb 22 at 16:02
@DG' I changed the language a little bit. Hope that you don't mind.
– Aditya
Feb 22 at 16:02
@Aditya On the contrary, I appreciate it
– DG'
Feb 22 at 16:11
@Aditya On the contrary, I appreciate it
– DG'
Feb 22 at 16:11
@TeXnician: sorry I misread your comment
– Aditya
Feb 23 at 5:17
@TeXnician: sorry I misread your comment
– Aditya
Feb 23 at 5:17
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%2f476145%2fstartalign-and-startcases-are-not-compatible%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