From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Problem with \definemathmatrix
Date: Thu, 18 Jan 2018 18:21:45 +0100 [thread overview]
Message-ID: <CACyK-erJvNkACf=FodNC9PS7KvnQFXRG2HVjJVR-SqDr9CTAfg@mail.gmail.com> (raw)
In-Reply-To: <alpine.OSX.2.03.1801172252390.2446@zptvyy.pn>
[-- Attachment #1.1: Type: text/plain, Size: 1823 bytes --]
Hello,
Thank you.
@Adytan This module is not part of context standalone, in which directory
is it better to put it ?
Fabrice
2018-01-18 4:53 GMT+01:00 Aditya Mahajan <adityam@umich.edu>:
> On Wed, 17 Jan 2018, Fabrice Couvreur wrote:
>
> Hello,
>> This macro that is not mine worked very well. I just tested the following
>> file and there is a problem.
>>
>
> Otared has already answered your question but ...
>
> \math{M^3=\startpmatrix
>> \NC 2 \NC 3 \NC 6 \NC 4 \NC 2 \NC 7 \NC 3 \NC 1 \NR
>> \NC 3 \NC 0 \NC 1 \NC 1 \NC 2 \NC 3 \NC 6 \NC 4 \NR
>> \NC 6 \NC 1 \NC 4 \NC 4 \NC 4 \NC 9 \NC 10 \NC 6 \NR
>> \NC 4 \NC 1 \NC 4 \NC 4 \NC 5 \NC 8 \NC 8 \NC 3 \NR
>> \NC 2 \NC 2 \NC 4 \NC 5 \NC 2 \NC 7 \NC 3 \NC 1 \NR
>> \NC 7 \NC 3 \NC 9 \NC 8 \NC 7 \NC 8 \NC 10 \NC 3 \NR
>> \NC 3 \NC 6 \NC 10 \NC 8 \NC 3 \NC 10 \NC 4 \NC 1 \NR
>> \NC 1 \NC 4 \NC 6 \NC 3 \NC 1 \NC 3 \NC 1 \NC 0 \NR
>>
>> \stoppmatrix}
>>
>
> If you type a lot of such matrices, you might find the attached module
> interesting. Using it you can use matlab-like syntax for writing matrices:
>
> \usemodule[simplematrix]
> \definesimplematrix[MATRIX][fence=parenthesis, align=middle]
>
> \starttext
> $\MATRIX{1,2,3,4;5,6,7,8;9,10,11,12}$
> \stoptext
>
> Aditya
> ____________________________________________________________
> _______________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/
> listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ____________________________________________________________
> _______________________
>
[-- Attachment #1.2: Type: text/html, Size: 3438 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2018-01-18 17:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-17 18:19 Fabrice Couvreur
2018-01-17 23:35 ` Otared Kavian
2018-01-18 3:53 ` Aditya Mahajan
2018-01-18 17:21 ` Fabrice Couvreur [this message]
2018-01-18 18:12 ` Aditya Mahajan
2018-01-18 18:29 ` Fabrice Couvreur
2018-01-18 20:13 ` Otared Kavian
2018-01-18 21:34 ` Hans Hagen
2018-01-19 0:13 ` Aditya Mahajan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CACyK-erJvNkACf=FodNC9PS7KvnQFXRG2HVjJVR-SqDr9CTAfg@mail.gmail.com' \
--to=fabrice1.couvreur@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).