How many math columns are allowed in math cases (ConTeXt)?Equation environment for centered, equally-spaced...

Practical reasons to have both a large police force and bounty hunting network?

Paper published similar to PhD thesis

Has a sovereign Communist government ever run, and conceded loss, on a fair election?

I've given my players a lot of magic items. Is it reasonable for me to give them harder encounters?

An Undercover Army

In the world of The Matrix, what is "popping"?

Adding thousand separator to various number types

How does insurance birth control work in the United States?

How do I enter < and > on a broken keyboard?

The need of reserving one's ability in job interviews

Is every open circuit a capacitor?

How can I be pwned if I'm not registered on the compromised site?

Why can't we use freedom of speech and expression to incite people to rebel against government?

Searching for a string that contains the file name

What is the purpose of a disclaimer like "this is not legal advice"?

Are Wave equations equivalent to Maxwell equations in free space?

Why doesn't "adolescent" take any articles in "listen to adolescent agonising"?

Has Wakanda ever accepted refugees?

Difference between 'stomach' and 'uterus'

What kind of inflection is occuring in passive vb + かかった?

3.5% Interest Student Loan or use all of my savings on Tuition?

Is there a math equivalent to the conditional ternary operator?

I can't die. Who am I?

What is better: yes / no radio, or simple checkbox?



How many math columns are allowed in math cases (ConTeXt)?


Equation environment for centered, equally-spaced columns of expressionsAlignment in multiple locations of a single equation based on first lineAlignment with bracketssiunitx: bold single numeric cells + mathspecMore Math Fonts in ConTeXtHow to properly format a proof/explanation with multiple points of alignment?OpenType features for a math font in CONTEXTUsing tag in align environment in […]columns unnecessarily skip a page in ConTeXtSubformula numbering













6















In ConTeXt, when using the cases environment, it seems to allow one MC (giving 2 columns) only, and when I place a second MC (giving 3 columns), the columns are not aligned, and the math variables are not properly displayed as italic.
Is there only 2 columns allowed here?



starttext

placeformula startformula startalign
NC A (m_1,m_2) =
NC startcases
{rm Re} (A (m_1',m_2')), quad m_1 =MC 2m_1'-1,; m_2 =MC 2m_2'-1 NR
{rm Im} (A (m_1',m_2')), quad m_1 =MC 2m_1',; m_2 =MC 2m_2'-1 NR
-{rm Im} (A (m_1',m_2')), quad m_1 =MC 2m_1'-1,; m_2 =MC 2m_2' NR
{rm Re} (A (m_1',m_2')), quad m_1 =MC 2m_1',; m_2 =MC 2m_2' NR
stopcases NR[+]
stopalign stopformula

stoptext


Screenshot










share|improve this question




















  • 1





    You are referring to the cases environment, aren't you?

    – TeXnician
    8 hours ago











  • Yes. Let me edit the post.

    – Aminopterin
    8 hours ago






  • 1





    {rm Re}… brrr. The correct way would be setupmathlabeltext[Re=Re]definemathcommand[Re][nolop]{mfunctionlabeltext{Re}} and then use Re.

    – Henri Menke
    6 hours ago











  • Sorry, new to ConTeXt, and I don't know what is the mathfrak equivalent.

    – Aminopterin
    6 hours ago
















6















In ConTeXt, when using the cases environment, it seems to allow one MC (giving 2 columns) only, and when I place a second MC (giving 3 columns), the columns are not aligned, and the math variables are not properly displayed as italic.
Is there only 2 columns allowed here?



starttext

placeformula startformula startalign
NC A (m_1,m_2) =
NC startcases
{rm Re} (A (m_1',m_2')), quad m_1 =MC 2m_1'-1,; m_2 =MC 2m_2'-1 NR
{rm Im} (A (m_1',m_2')), quad m_1 =MC 2m_1',; m_2 =MC 2m_2'-1 NR
-{rm Im} (A (m_1',m_2')), quad m_1 =MC 2m_1'-1,; m_2 =MC 2m_2' NR
{rm Re} (A (m_1',m_2')), quad m_1 =MC 2m_1',; m_2 =MC 2m_2' NR
stopcases NR[+]
stopalign stopformula

stoptext


Screenshot










share|improve this question




















  • 1





    You are referring to the cases environment, aren't you?

    – TeXnician
    8 hours ago











  • Yes. Let me edit the post.

    – Aminopterin
    8 hours ago






  • 1





    {rm Re}… brrr. The correct way would be setupmathlabeltext[Re=Re]definemathcommand[Re][nolop]{mfunctionlabeltext{Re}} and then use Re.

    – Henri Menke
    6 hours ago











  • Sorry, new to ConTeXt, and I don't know what is the mathfrak equivalent.

    – Aminopterin
    6 hours ago














6












6








6


0






In ConTeXt, when using the cases environment, it seems to allow one MC (giving 2 columns) only, and when I place a second MC (giving 3 columns), the columns are not aligned, and the math variables are not properly displayed as italic.
Is there only 2 columns allowed here?



starttext

placeformula startformula startalign
NC A (m_1,m_2) =
NC startcases
{rm Re} (A (m_1',m_2')), quad m_1 =MC 2m_1'-1,; m_2 =MC 2m_2'-1 NR
{rm Im} (A (m_1',m_2')), quad m_1 =MC 2m_1',; m_2 =MC 2m_2'-1 NR
-{rm Im} (A (m_1',m_2')), quad m_1 =MC 2m_1'-1,; m_2 =MC 2m_2' NR
{rm Re} (A (m_1',m_2')), quad m_1 =MC 2m_1',; m_2 =MC 2m_2' NR
stopcases NR[+]
stopalign stopformula

stoptext


Screenshot










share|improve this question
















In ConTeXt, when using the cases environment, it seems to allow one MC (giving 2 columns) only, and when I place a second MC (giving 3 columns), the columns are not aligned, and the math variables are not properly displayed as italic.
Is there only 2 columns allowed here?



starttext

placeformula startformula startalign
NC A (m_1,m_2) =
NC startcases
{rm Re} (A (m_1',m_2')), quad m_1 =MC 2m_1'-1,; m_2 =MC 2m_2'-1 NR
{rm Im} (A (m_1',m_2')), quad m_1 =MC 2m_1',; m_2 =MC 2m_2'-1 NR
-{rm Im} (A (m_1',m_2')), quad m_1 =MC 2m_1'-1,; m_2 =MC 2m_2' NR
{rm Re} (A (m_1',m_2')), quad m_1 =MC 2m_1',; m_2 =MC 2m_2' NR
stopcases NR[+]
stopalign stopformula

stoptext


Screenshot







math-mode align context






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 8 hours ago









TeXnician

25.4k63390




25.4k63390










asked 10 hours ago









AminopterinAminopterin

35219




35219








  • 1





    You are referring to the cases environment, aren't you?

    – TeXnician
    8 hours ago











  • Yes. Let me edit the post.

    – Aminopterin
    8 hours ago






  • 1





    {rm Re}… brrr. The correct way would be setupmathlabeltext[Re=Re]definemathcommand[Re][nolop]{mfunctionlabeltext{Re}} and then use Re.

    – Henri Menke
    6 hours ago











  • Sorry, new to ConTeXt, and I don't know what is the mathfrak equivalent.

    – Aminopterin
    6 hours ago














  • 1





    You are referring to the cases environment, aren't you?

    – TeXnician
    8 hours ago











  • Yes. Let me edit the post.

    – Aminopterin
    8 hours ago






  • 1





    {rm Re}… brrr. The correct way would be setupmathlabeltext[Re=Re]definemathcommand[Re][nolop]{mfunctionlabeltext{Re}} and then use Re.

    – Henri Menke
    6 hours ago











  • Sorry, new to ConTeXt, and I don't know what is the mathfrak equivalent.

    – Aminopterin
    6 hours ago








1




1





You are referring to the cases environment, aren't you?

– TeXnician
8 hours ago





You are referring to the cases environment, aren't you?

– TeXnician
8 hours ago













Yes. Let me edit the post.

– Aminopterin
8 hours ago





Yes. Let me edit the post.

– Aminopterin
8 hours ago




1




1





{rm Re}… brrr. The correct way would be setupmathlabeltext[Re=Re]definemathcommand[Re][nolop]{mfunctionlabeltext{Re}} and then use Re.

– Henri Menke
6 hours ago





{rm Re}… brrr. The correct way would be setupmathlabeltext[Re=Re]definemathcommand[Re][nolop]{mfunctionlabeltext{Re}} and then use Re.

– Henri Menke
6 hours ago













Sorry, new to ConTeXt, and I don't know what is the mathfrak equivalent.

– Aminopterin
6 hours ago





Sorry, new to ConTeXt, and I don't know what is the mathfrak equivalent.

– Aminopterin
6 hours ago










1 Answer
1






active

oldest

votes


















3














The mathcases environment in ConTeXt is modeled after the cases environment from the amsmath package in LaTeX. Like amsmath it only allows two "columns", one for the value and one for the condition. The general syntax is



startcases
NC value NC condition NR
NC value NC condition NR
stopcases


where the second column is typeset as normal text or



startcases
NC value MC condition NR
NC value MC condition NR
stopcases


where the second column is typeset as math.



So, for your example:



starttext

placeformula startformula
A (m_1,m_2) =
startcases
NC {rm Re} (A (m_1',m_2')), MC m_1 = 2m_1'-1,; m_2 = 2m_2'-1 NR
NC {rm Im} (A (m_1',m_2')), MC m_1 = 2m_1',; m_2 = 2m_2'-1 NR
NC -{rm Im} (A (m_1',m_2')),MC m_1 = 2m_1'-1,; m_2 = 2m_2' NR
NC {rm Re} (A (m_1',m_2')), MC m_1 = 2m_1',; m_2 = 2m_2' NR
stopcases
stopformula

stoptext


which gives:



enter image description here



To improve readability, you can try:



placeformula startformula 
A (m_1,m_2) =
startcases
NC {rm Re} (A (m_1',m_2')), MC (m_1, m_2) = (2m_1'-1, 2m_2'-1) NR
NC {rm Im} (A (m_1',m_2')), MC (m_1, m_2) = (2m_1', 2m_2'-1) NR
NC -{rm Im} (A (m_1',m_2')),MC (m_1, m_2) = (2m_1'-1, 2m_2') NR
NC {rm Re} (A (m_1',m_2')), MC (m_1, m_2) = (2m_1', 2m_2') NR
stopcases
stopformula


which gives



enter image description here






share|improve this answer


























  • Yes, I was lazy about that because that was not the core of what the OP asked

    – Aditya
    6 hours 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',
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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478137%2fhow-many-math-columns-are-allowed-in-math-cases-context%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









3














The mathcases environment in ConTeXt is modeled after the cases environment from the amsmath package in LaTeX. Like amsmath it only allows two "columns", one for the value and one for the condition. The general syntax is



startcases
NC value NC condition NR
NC value NC condition NR
stopcases


where the second column is typeset as normal text or



startcases
NC value MC condition NR
NC value MC condition NR
stopcases


where the second column is typeset as math.



So, for your example:



starttext

placeformula startformula
A (m_1,m_2) =
startcases
NC {rm Re} (A (m_1',m_2')), MC m_1 = 2m_1'-1,; m_2 = 2m_2'-1 NR
NC {rm Im} (A (m_1',m_2')), MC m_1 = 2m_1',; m_2 = 2m_2'-1 NR
NC -{rm Im} (A (m_1',m_2')),MC m_1 = 2m_1'-1,; m_2 = 2m_2' NR
NC {rm Re} (A (m_1',m_2')), MC m_1 = 2m_1',; m_2 = 2m_2' NR
stopcases
stopformula

stoptext


which gives:



enter image description here



To improve readability, you can try:



placeformula startformula 
A (m_1,m_2) =
startcases
NC {rm Re} (A (m_1',m_2')), MC (m_1, m_2) = (2m_1'-1, 2m_2'-1) NR
NC {rm Im} (A (m_1',m_2')), MC (m_1, m_2) = (2m_1', 2m_2'-1) NR
NC -{rm Im} (A (m_1',m_2')),MC (m_1, m_2) = (2m_1'-1, 2m_2') NR
NC {rm Re} (A (m_1',m_2')), MC (m_1, m_2) = (2m_1', 2m_2') NR
stopcases
stopformula


which gives



enter image description here






share|improve this answer


























  • Yes, I was lazy about that because that was not the core of what the OP asked

    – Aditya
    6 hours ago
















3














The mathcases environment in ConTeXt is modeled after the cases environment from the amsmath package in LaTeX. Like amsmath it only allows two "columns", one for the value and one for the condition. The general syntax is



startcases
NC value NC condition NR
NC value NC condition NR
stopcases


where the second column is typeset as normal text or



startcases
NC value MC condition NR
NC value MC condition NR
stopcases


where the second column is typeset as math.



So, for your example:



starttext

placeformula startformula
A (m_1,m_2) =
startcases
NC {rm Re} (A (m_1',m_2')), MC m_1 = 2m_1'-1,; m_2 = 2m_2'-1 NR
NC {rm Im} (A (m_1',m_2')), MC m_1 = 2m_1',; m_2 = 2m_2'-1 NR
NC -{rm Im} (A (m_1',m_2')),MC m_1 = 2m_1'-1,; m_2 = 2m_2' NR
NC {rm Re} (A (m_1',m_2')), MC m_1 = 2m_1',; m_2 = 2m_2' NR
stopcases
stopformula

stoptext


which gives:



enter image description here



To improve readability, you can try:



placeformula startformula 
A (m_1,m_2) =
startcases
NC {rm Re} (A (m_1',m_2')), MC (m_1, m_2) = (2m_1'-1, 2m_2'-1) NR
NC {rm Im} (A (m_1',m_2')), MC (m_1, m_2) = (2m_1', 2m_2'-1) NR
NC -{rm Im} (A (m_1',m_2')),MC (m_1, m_2) = (2m_1'-1, 2m_2') NR
NC {rm Re} (A (m_1',m_2')), MC (m_1, m_2) = (2m_1', 2m_2') NR
stopcases
stopformula


which gives



enter image description here






share|improve this answer


























  • Yes, I was lazy about that because that was not the core of what the OP asked

    – Aditya
    6 hours ago














3












3








3







The mathcases environment in ConTeXt is modeled after the cases environment from the amsmath package in LaTeX. Like amsmath it only allows two "columns", one for the value and one for the condition. The general syntax is



startcases
NC value NC condition NR
NC value NC condition NR
stopcases


where the second column is typeset as normal text or



startcases
NC value MC condition NR
NC value MC condition NR
stopcases


where the second column is typeset as math.



So, for your example:



starttext

placeformula startformula
A (m_1,m_2) =
startcases
NC {rm Re} (A (m_1',m_2')), MC m_1 = 2m_1'-1,; m_2 = 2m_2'-1 NR
NC {rm Im} (A (m_1',m_2')), MC m_1 = 2m_1',; m_2 = 2m_2'-1 NR
NC -{rm Im} (A (m_1',m_2')),MC m_1 = 2m_1'-1,; m_2 = 2m_2' NR
NC {rm Re} (A (m_1',m_2')), MC m_1 = 2m_1',; m_2 = 2m_2' NR
stopcases
stopformula

stoptext


which gives:



enter image description here



To improve readability, you can try:



placeformula startformula 
A (m_1,m_2) =
startcases
NC {rm Re} (A (m_1',m_2')), MC (m_1, m_2) = (2m_1'-1, 2m_2'-1) NR
NC {rm Im} (A (m_1',m_2')), MC (m_1, m_2) = (2m_1', 2m_2'-1) NR
NC -{rm Im} (A (m_1',m_2')),MC (m_1, m_2) = (2m_1'-1, 2m_2') NR
NC {rm Re} (A (m_1',m_2')), MC (m_1, m_2) = (2m_1', 2m_2') NR
stopcases
stopformula


which gives



enter image description here






share|improve this answer















The mathcases environment in ConTeXt is modeled after the cases environment from the amsmath package in LaTeX. Like amsmath it only allows two "columns", one for the value and one for the condition. The general syntax is



startcases
NC value NC condition NR
NC value NC condition NR
stopcases


where the second column is typeset as normal text or



startcases
NC value MC condition NR
NC value MC condition NR
stopcases


where the second column is typeset as math.



So, for your example:



starttext

placeformula startformula
A (m_1,m_2) =
startcases
NC {rm Re} (A (m_1',m_2')), MC m_1 = 2m_1'-1,; m_2 = 2m_2'-1 NR
NC {rm Im} (A (m_1',m_2')), MC m_1 = 2m_1',; m_2 = 2m_2'-1 NR
NC -{rm Im} (A (m_1',m_2')),MC m_1 = 2m_1'-1,; m_2 = 2m_2' NR
NC {rm Re} (A (m_1',m_2')), MC m_1 = 2m_1',; m_2 = 2m_2' NR
stopcases
stopformula

stoptext


which gives:



enter image description here



To improve readability, you can try:



placeformula startformula 
A (m_1,m_2) =
startcases
NC {rm Re} (A (m_1',m_2')), MC (m_1, m_2) = (2m_1'-1, 2m_2'-1) NR
NC {rm Im} (A (m_1',m_2')), MC (m_1, m_2) = (2m_1', 2m_2'-1) NR
NC -{rm Im} (A (m_1',m_2')),MC (m_1, m_2) = (2m_1'-1, 2m_2') NR
NC {rm Re} (A (m_1',m_2')), MC (m_1, m_2) = (2m_1', 2m_2') NR
stopcases
stopformula


which gives



enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited 6 hours ago









Henri Menke

76.1k8167281




76.1k8167281










answered 7 hours ago









AdityaAditya

55.6k2110236




55.6k2110236













  • Yes, I was lazy about that because that was not the core of what the OP asked

    – Aditya
    6 hours ago



















  • Yes, I was lazy about that because that was not the core of what the OP asked

    – Aditya
    6 hours ago

















Yes, I was lazy about that because that was not the core of what the OP asked

– Aditya
6 hours ago





Yes, I was lazy about that because that was not the core of what the OP asked

– Aditya
6 hours ago


















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478137%2fhow-many-math-columns-are-allowed-in-math-cases-context%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Why does my Macbook overheat and use so much CPU and energy when on YouTube?Why do so many insist on using...

How to prevent page numbers from appearing on glossaries?How to remove a dot and a page number in the...

Puerta de Hutt Referencias Enlaces externos Menú de navegación15°58′00″S 5°42′00″O /...