DragMath only shows up to 3 matrix columns

DragMath only shows up to 3 matrix columns

by Rick Bruderick -
Number of replies: 6

Using Moodle 2.0.2 and DragMath.

$$ \left( \begin{array}{ccc} 1 & 2 & 3 & 4 & 5\\-\left(1\right) & -\left(2\right) & -\left(3\right) & -\left(4\right) & -\left(5\right)\\ \end{array} \right) $$

When I create a matrix with more than 3 columns, only 3 columns will be displayed, with the additional column data wrapping into the next row.

Anyone else get this problem?  Where do I start to fix it?

Average of ratings: -
In reply to Rick Bruderick

Re: DragMath only shows up to 3 matrix columns

by Mauno Korpelainen -

The syntax of arrays seems to be wrong - dragmath applet adds  \begin{array}{ccc} which is a bug.

If the matrix has 5 columns it should start with

\begin{array}{ccccc}

and your matrix could look like

$$\left( \begin{array}{ccccc} 1 & 2 & 3 & 4 & 5\\-1 & -2 & -3 & -4 & -5\\ \end{array} \right)$$

with

\left( \begin{array}{ccccc} 1 & 2 & 3 & 4 & 5\\-1 & -2 & -3 & -4 & -5\\ \end{array} \right)

In reply to Mauno Korpelainen

Re: DragMath only shows up to 3 matrix columns

by Mauno Korpelainen -

Or for example

$$ \left( \begin{array}{rrrrr} 1 & 2 & 3 & 4 & 5\\-1 & -2 & -3 & -4 & -5\\ \end{array} \right) $$

with right alignment

\left( \begin{array}{rrrrr} 1 & 2 & 3 & 4 & 5\\-1 & -2 & -3 & -4 & -5\\ \end{array} \right)

Average of ratings: Useful (2)
In reply to Rick Bruderick

Re: DragMath only shows up to 3 matrix columns

by Ruslan Kabalin -
Picture of Core developers Picture of Moodle HQ Picture of Moodle Workplace team Picture of Peer reviewers Picture of Plugin developers

The bug report has been filled in: http://tracker.moodle.org/browse/MDL-30628

In reply to Ruslan Kabalin

Re: DragMath only shows up to 3 matrix columns

by Mauno Korpelainen -

Developers of moodle can't fix this because it should be fixed in Dragmath applet.

Rick Bruderick and some anonymous user have created also an issue to DragMath bug tracker

http://sourceforge.net/tracker/?func=detail&aid=2219288&group_id=201862&atid=979256

http://sourceforge.net/tracker/?func=detail&aid=3239490&group_id=201862&atid=979256

http://sourceforge.net/tracker/?func=detail&aid=3239955&group_id=201862&atid=979256

but Alex and Chris obviously have not read this post...