[NTG-context] Problem with \definemathmatrix

Aditya Mahajan adityam at umich.edu
Fri Jan 19 01:13:12 CET 2018


On Thu, 18 Jan 2018, Hans Hagen wrote:

> On 1/18/2018 9:13 PM, Otared Kavian wrote:
>>  Hi Aditya,
>>
>>  Thanks for sharing this nice module, it is really useful, especially when
>>  making documents for students while using Matlab or Scilab.
>
> Nice indeed.
>
>>  There is also in the distribution the module m-matrix.mkiv written by Hans
>>  and Jeong Dalyoung, which allows to manipulate matrices.
>>  Maybe one should add the functionality of your module to the one in the
>>  distribution and somehow unify their environments.
>
> I'll add this to the core:
>
> % D We hook it into the normal mathmatrix code:
>
> \ifdefined\c!simplecommand\else\def\c!simplecommand{simplecommand}\fi
>
> \appendtoks
>     \edef\p_simplecommand{\mathmatrixparameter\c!simplecommand}%
>     \ifx\p_simplecommand\empty\else
>
> \setuevalue{\p_simplecommand}{\dodoubleempty\math_matrix_simple[\currentmathmatrix]}%
>    \fi
> \to \everydefinemathmatrix

Ah, this does make it more direct.

Thanks,
Aditya


More information about the ntg-context mailing list