<div dir="ltr"><div><span style="font-family:verdana,sans-serif">Hi Hans,<br></span></div><span style="font-family:verdana,sans-serif">thanks<br></span><div><span style="font-family:verdana,sans-serif"><br></span><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span style="font-family:verdana,sans-serif">I'm not sure why you want to use tikz for matrices but this works</span></blockquote><div><span style="font-family:verdana,sans-serif"> </span></div><span style="font-family:verdana,sans-serif"><a href="https://drive.google.com/file/d/0B-mkD83s36jbMFE5ZjJvdFJSejg/view?usp=sharing">https://drive.google.com/file/d/0B-mkD83s36jbMFE5ZjJvdFJSejg/view?usp=sharing</a><br><br></span></div><div><span style="font-family:verdana,sans-serif">Fabrice</span><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-21 14:30 GMT+02:00 Hans Hagen <span dir="ltr"><<a href="mailto:pragma@wxs.nl" target="_blank">pragma@wxs.nl</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 7/21/2016 11:50 AM, Fabrice Couvreur wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Hans,<br>
If I do this, the problem remains the same.<br>
<br>
\starttikzpicture<br>
  \vbox{\matrix [matrix of math nodes,ampersand replacement=\&]<br>
  {<br>
    a_8 \& a_1 \& a_6         \\<br>
    a_3 \& a_5 \& |[red]| a_7 \\<br>
    a_4 \& a_9 \&     a_2     \\<br>
  };}<br>
\stoptikzpicture<br>
</blockquote>
<br></span>
I'm not sure why you want to use tikz for matrices but this works<span class=""><br>
<br>
\starttikzpicture<br>
  \matrix [matrix of math nodes,ampersand replacement=\&]<br>
  {<br>
    a_8 \& a_1 \& a_6         \\<br>
    a_3 \& a_5 \& {\red a_7} \\<br>
    a_4 \& a_9 \& a_2     \\<br>
  };<br>
\stoptikzpicture<br>
<br></span>
(forget about | there)<br>
<br>
Hans<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
2016-07-21 11:38 GMT+02:00 Hans Hagen <<a href="mailto:pragma@wxs.nl" target="_blank">pragma@wxs.nl</a><br></span>
<mailto:<a href="mailto:pragma@wxs.nl" target="_blank">pragma@wxs.nl</a>>>:<div><div class="h5"><br>
<br>
    On 7/21/2016 11:25 AM, Fabrice Couvreur wrote:<br>
<br>
        Hello,<br>
        Everything is in the title, as this example shows.<br>
<br>
<br>
    normally it means that you need to wrap in a \vbox{...}<br>
<br>
        Thanks,<br>
        Fabrice<br>
<br>
<br>
        ####################################################################<br>
        \usemodule[tikz]<br>
        \usetikzlibrary[matrix]<br>
<br>
        \setupbodyfont[pagella,11pt]<br>
<br>
        \starttext<br>
<br>
        \starttikzpicture<br>
          \matrix [matrix of math nodes,ampersand replacement=\&]<br>
          {<br>
            a_8 \& a_1 \& a_6         \\<br>
            a_3 \& a_5 \& |[red]| a_7 \\<br>
            a_4 \& a_9 \&     a_2     \\<br>
          };<br>
        \stoptikzpicture<br>
<br>
        \stoptext<br>
<br>
        ####################################################################<br>
        tex error       > tex error on line 14 in file<br>
        /home/fab/ntg49.tex: !<br>
        Argument of \tikz@lib@matrix@with@options has an extra }<br>
<br>
        <inserted text><br>
        \par<br>
        <to be read again><br>
        }<br>
        l.14   }<br>
              ;<br>
<br>
         4     \setupbodyfont[pagella,11pt]<br>
         5<br>
         6     \starttext<br>
         7<br>
         8     \starttikzpicture<br>
         9       \matrix [matrix of math nodes,ampersand replacement=\&]<br>
        10       {<br>
        11         a_8 \& a_1 \& a_6         \\<br>
        12         a_3 \& a_5 \& |[red]| a_7 \\<br>
        13         a_4 \& a_9 \&     a_2     \\<br>
        14 >>    };<br>
        15     \stoptikzpicture<br>
        16<br>
        17     \stoptext<br>
<br>
<br>
<br>
<br>
        ___________________________________________________________________________________<br>
        If your question is of interest to others as well, please add an<br>
        entry to the Wiki!<br>
<br></div></div>
        maillist : <a href="mailto:ntg-context@ntg.nl" target="_blank">ntg-context@ntg.nl</a> <mailto:<a href="mailto:ntg-context@ntg.nl" target="_blank">ntg-context@ntg.nl</a>> /<span class=""><br>
        <a href="http://www.ntg.nl/mailman/listinfo/ntg-context" rel="noreferrer" target="_blank">http://www.ntg.nl/mailman/listinfo/ntg-context</a><br>
        webpage  : <a href="http://www.pragma-ade.nl" rel="noreferrer" target="_blank">http://www.pragma-ade.nl</a> / <a href="http://tex.aanhet.net" rel="noreferrer" target="_blank">http://tex.aanhet.net</a><br>
        archive  : <a href="http://foundry.supelec.fr/projects/contextrev/" rel="noreferrer" target="_blank">http://foundry.supelec.fr/projects/contextrev/</a><br>
        wiki     : <a href="http://contextgarden.net" rel="noreferrer" target="_blank">http://contextgarden.net</a><br>
        ___________________________________________________________________________________<br>
<br>
<br>
<br>
    --<br>
<br>
    -----------------------------------------------------------------<br>
                                              Hans Hagen | PRAGMA ADE<br>
                  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands<br>
           tel: 038 477 53 69 | <a href="http://www.pragma-ade.nl" rel="noreferrer" target="_blank">www.pragma-ade.nl</a><br></span>
    <<a href="http://www.pragma-ade.nl" rel="noreferrer" target="_blank">http://www.pragma-ade.nl</a>> | <a href="http://www.pragma-pod.nl" rel="noreferrer" target="_blank">www.pragma-pod.nl</a><br>
    <<a href="http://www.pragma-pod.nl" rel="noreferrer" target="_blank">http://www.pragma-pod.nl</a>><span class=""><br>
    -----------------------------------------------------------------<br>
    ___________________________________________________________________________________<br>
    If your question is of interest to others as well, please add an<br>
    entry to the Wiki!<br>
<br></span>
    maillist : <a href="mailto:ntg-context@ntg.nl" target="_blank">ntg-context@ntg.nl</a> <mailto:<a href="mailto:ntg-context@ntg.nl" target="_blank">ntg-context@ntg.nl</a>> /<div><div class="h5"><br>
    <a href="http://www.ntg.nl/mailman/listinfo/ntg-context" rel="noreferrer" target="_blank">http://www.ntg.nl/mailman/listinfo/ntg-context</a><br>
    webpage  : <a href="http://www.pragma-ade.nl" rel="noreferrer" target="_blank">http://www.pragma-ade.nl</a> / <a href="http://tex.aanhet.net" rel="noreferrer" target="_blank">http://tex.aanhet.net</a><br>
    archive  : <a href="http://foundry.supelec.fr/projects/contextrev/" rel="noreferrer" target="_blank">http://foundry.supelec.fr/projects/contextrev/</a><br>
    wiki     : <a href="http://contextgarden.net" rel="noreferrer" target="_blank">http://contextgarden.net</a><br>
    ___________________________________________________________________________________<br>
<br>
<br>
<br>
<br>
___________________________________________________________________________________<br>
If your question is of interest to others as well, please add an entry to the Wiki!<br>
<br>
maillist : <a href="mailto:ntg-context@ntg.nl" target="_blank">ntg-context@ntg.nl</a> / <a href="http://www.ntg.nl/mailman/listinfo/ntg-context" rel="noreferrer" target="_blank">http://www.ntg.nl/mailman/listinfo/ntg-context</a><br>
webpage  : <a href="http://www.pragma-ade.nl" rel="noreferrer" target="_blank">http://www.pragma-ade.nl</a> / <a href="http://tex.aanhet.net" rel="noreferrer" target="_blank">http://tex.aanhet.net</a><br>
archive  : <a href="http://foundry.supelec.fr/projects/contextrev/" rel="noreferrer" target="_blank">http://foundry.supelec.fr/projects/contextrev/</a><br>
wiki     : <a href="http://contextgarden.net" rel="noreferrer" target="_blank">http://contextgarden.net</a><br>
___________________________________________________________________________________<br>
<br>
</div></div></blockquote><div class="HOEnZb"><div class="h5">
<br>
<br>
-- <br>
<br>
-----------------------------------------------------------------<br>
                                          Hans Hagen | PRAGMA ADE<br>
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands<br>
       tel: 038 477 53 69 | <a href="http://www.pragma-ade.nl" rel="noreferrer" target="_blank">www.pragma-ade.nl</a> | <a href="http://www.pragma-pod.nl" rel="noreferrer" target="_blank">www.pragma-pod.nl</a><br>
-----------------------------------------------------------------<br>
___________________________________________________________________________________<br>
If your question is of interest to others as well, please add an entry to the Wiki!<br>
<br>
maillist : <a href="mailto:ntg-context@ntg.nl" target="_blank">ntg-context@ntg.nl</a> / <a href="http://www.ntg.nl/mailman/listinfo/ntg-context" rel="noreferrer" target="_blank">http://www.ntg.nl/mailman/listinfo/ntg-context</a><br>
webpage  : <a href="http://www.pragma-ade.nl" rel="noreferrer" target="_blank">http://www.pragma-ade.nl</a> / <a href="http://tex.aanhet.net" rel="noreferrer" target="_blank">http://tex.aanhet.net</a><br>
archive  : <a href="http://foundry.supelec.fr/projects/contextrev/" rel="noreferrer" target="_blank">http://foundry.supelec.fr/projects/contextrev/</a><br>
wiki     : <a href="http://contextgarden.net" rel="noreferrer" target="_blank">http://contextgarden.net</a><br>
___________________________________________________________________________________</div></div></blockquote></div><br></div>