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}{<span style="color:#ff0000;"><strong>ccc</strong></span>} which is a bug.

If the matrix has 5 columns it should start with

\begin{array}{<span style="color:#ff0000;"><strong>ccccc</strong></span>}

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}{<span style="color:#ff0000;"><strong>rrrrr</strong></span>} 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 -
Immàgine de Core developers Immàgine de Moodle HQ Immàgine de Moodle Workplace team Immàgine de Peer reviewers Immàgine de 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...