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

« Rendre » et « render » (the meaning)

Can an earth elemental drown/bury its opponent underground using earth glide?

How do you make a gun that shoots melee weapons and/or swords?

Remove object from array based on array of some property of that object

Does it cost more to counter Sphinx of New Prahv?

Meshing the cow

An Undercover Army

Specific Chinese carabiner QA?

Why would the IRS ask for birth certificates or even audit a small tax return?

How spaceships determine each other mass in space?

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

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

Where is this quote about overcoming the impossible said in "Interstellar"?

School performs periodic password audits. Is my password compromised?

What in the blazes does "rhumatis" mean?

How do you write a macro that takes arguments containing paragraphs?

Is being socially reclusive okay for a graduate student?

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

Are small insurances worth it

The orphan's family

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

How do we objectively assess if a dialogue sounds unnatural or cringy?

Was it really inappropriate to write a pull request for the company I interviewed with?

Faulty RAID1 disk now shows as foreign



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
    9 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
    7 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
    9 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
    7 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 11 hours ago









AminopterinAminopterin

35219




35219








  • 1





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

    – TeXnician
    9 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
    7 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
    9 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
    7 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
9 hours ago





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

– TeXnician
9 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
7 hours ago





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

– Henri Menke
7 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
    7 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
    7 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
    7 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 7 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
    7 hours ago



















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

    – Aditya
    7 hours ago

















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

– Aditya
7 hours ago





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

– Aditya
7 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

El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

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

Castillo d'Acher Características Menú de navegación