Open main menu

Difference between revisions of "Talk:Multiline equations"

(Can anyone look into why the equations are not compiling)
 
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
For some reasons the equations here to not compile. May start working after the garden version of context is updated.
 
For some reasons the equations here to not compile. May start working after the garden version of context is updated.
 +
 +
:Just wait a day or two, I'm sure Patrick will update soon. IIRC, you can check the
 +
version by clicking the 'live ConTeXt' link. [[User:Taco|Taco]]
  
 
I am not sure on what should be a good title for this page. Mathalign does not seem right, but math alignment is already taken.
 
I am not sure on what should be a good title for this page. Mathalign does not seem right, but math alignment is already taken.
 +
 +
:Math structures perhaps? [[User:Taco|Taco]]
 +
 +
Math structures is fine. Is there someway that I can change the name of an existing page [[User:Adityam|Aditya]]
 +
 +
:I have a special button for that :) [[User:Taco|Taco]]
 +
 +
I've updated the cases section to explain \NC and \NT. Unfortunately the wiki's ConTeXt version doesn't seem to have this update, and so it shows the wrong output. [[User:Jack3103|Jack3103]]
 +
 +
 +
 +
=== Removed content 2024.05.12 ===
 +
[[User:Garulfoo|Garulfoo]]
 +
<texcode>
 +
\startcases, \stopcases
 +
\startmathmatrix, \stopmathmatrix
 +
\startalign,\stopalign
 +
</texcode>
 +
Each has its own advantage and can be customized: for a thorough understanding of these commands please
 +
refer to Aditya Mohajan's excellent user's guide
 +
[https://wiki.contextgarden.net/images/archive/b/b4/20100530075041!Mathalign.pdf Using \startalign and friends].
 +
These commands can be found in [[source:core-mat.tex|core-mat.tex]] file, which contains
 +
most of the core ConTeXt math macros.
 +
 +
<context source="yes">
 +
This is an example of aligned equations:
 +
\startformula
 +
\startcases[align={right,left},distance=3pt]
 +
  \NC 2x + 3y \NC{} = 10 \NR
 +
  \NC 3x + 2y \NC{} = 5,  \NR
 +
\stopcases
 +
\stopformula
 +
and this is another one:
 +
\startformula
 +
\startmatrix[align={right,left},distance=3pt,left={\left\{}, right={\right.}]
 +
  \NC 2x + 3y \NC{} = 10 \NR
 +
  \NC 3x + 2y \NC{} = 5  \NR
 +
\stopmatrix
 +
\stopformula
 +
</context>
 +
In these structures it is important (well, in the above example it is not important and the result is the same, but I have been told that it is necessary in some other situations...) to notice that the sign "=" is preceded by "\NC{}, since
 +
otherwise that sign would be considered as a binary operator and the alignment would be
 +
disturbed (at least this is what I guess…Otared K.).

Latest revision as of 09:28, 12 May 2024

For some reasons the equations here to not compile. May start working after the garden version of context is updated.

Just wait a day or two, I'm sure Patrick will update soon. IIRC, you can check the

version by clicking the 'live ConTeXt' link. Taco

I am not sure on what should be a good title for this page. Mathalign does not seem right, but math alignment is already taken.

Math structures perhaps? Taco

Math structures is fine. Is there someway that I can change the name of an existing page Aditya

I have a special button for that :) Taco

I've updated the cases section to explain \NC and \NT. Unfortunately the wiki's ConTeXt version doesn't seem to have this update, and so it shows the wrong output. Jack3103


Removed content 2024.05.12

Garulfoo

\startcases, \stopcases
\startmathmatrix, \stopmathmatrix
\startalign,\stopalign

Each has its own advantage and can be customized: for a thorough understanding of these commands please refer to Aditya Mohajan's excellent user's guide Using \startalign and friends. These commands can be found in core-mat.tex file, which contains most of the core ConTeXt math macros.

This is an example of aligned equations:
\startformula
 \startcases[align={right,left},distance=3pt]
   \NC 2x + 3y \NC{} = 10 \NR
   \NC 3x + 2y \NC{} = 5,   \NR
 \stopcases
\stopformula
and this is another one:
\startformula
 \startmatrix[align={right,left},distance=3pt,left={\left\{}, right={\right.}]
   \NC 2x + 3y \NC{} = 10 \NR
   \NC 3x + 2y \NC{} = 5   \NR
 \stopmatrix
\stopformula

 

In these structures it is important (well, in the above example it is not important and the result is the same, but I have been told that it is necessary in some other situations...) to notice that the sign "=" is preceded by "\NC{}, since otherwise that sign would be considered as a binary operator and the alignment would be disturbed (at least this is what I guess…Otared K.).

Return to "Multiline equations" page.