<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <span id="result_box" class="" lang="en"><span class="hps">Hi</span>
      <span class="hps">Herbert</span><span>,</span> <br>
      <span class="hps">Seeing</span> <span class="hps">come on the
        forum</span> <span class="hps">ConTeXt</span> <span
        class="hps">nothing,</span> <span class="hps">I modified the</span>
      file <span class="hps atn">m-</span><span></span><span
        class="hps">pstricks.mkii</span> <span class="hps">as follows</span><span>
        :<br>
        <br>
        <blockquote type="cite">%D \module<br>
          %D   [       file=m-pstricks,<br>
          %D        version=1997.01.15,<br>
          %D          title=\CONTEXT\ Extra Modules,<br>
          %D       subtitle=\PSTRICKS\ Connections,<br>
          %D         author=Hans Hagen,<br>
          %D           date=\currentdate,<br>
          %D      copyright={PRAGMA ADE \& \CONTEXT\ Development
          Team}]<br>
          %C<br>
          %C This module is part of the \CONTEXT\ macro||package and is<br>
          %C therefore copyrighted by \PRAGMA. See mreadme.pdf for<br>
          %C details.<br>
          <br>
          % pstricks is not supported in context mkii (it's no problem
          doing that<br>
          % but as we also need to support latex it would become quite
          messy so for<br>
          % context we use metapost and for latex pstricks)<br>
          <br>
          %M \usemodule[pstric]<br>
          <br>
          \letvalue{@unused}\plussixteen<br>
          \letvalue{alloc@}\gobblefivearguments<br>
          <br>
          \chardef\oldbarcode\the\catcode`\|  \catcode`\|=12<br>
          <br>
          \def\loadpstrickscolors#1%<br>
            {\pushmacro\dodefinecolor<br>
             \pushmacro\dodefinepalet<br>
             \pushmacro\dodefinecolorgroup<br>
             \def\dodefinecolor[##1][##2]%<br>
               {\doifassignmentelse{##2}<br>
                  {\getparameters[pstricks][r=0,g=0,b=0,##2]%<br>
                   \expanded{\newrgbcolor{##1}{{\pstricksr} {\pstricksg}
          {\pstricksb}}}}%<br>
                  {}}%<br>
             \def\dodefinepalet     [##1][##2]{}%<br>
             \def\dodefinecolorgroup[##1][##2][##3]{}%<br>
             \writestatus{pstricks}{loading colors from #1}%<br>
             \input #1 \relax<br>
             \popmacro\dodefinecolorgroup<br>
             \popmacro\dodefinepalet<br>
             \popmacro\dodefinecolor}<br>
          <br>
          \doifelse{\jobsuffix}{dvi}<br>
            {\input multido  \relax<br>
             \input pstricks \relax<br>
             \input pst-plot \relax<br>
            <font color="#cc0000"> \loadpstrickscolors{colo-rgb.mkii}}</font><br>
            {\writestatus{pstricks}{using indirect method; enable
          write18}}<br>
          <br>
          \catcode`\|=\oldbarcode<br>
          <br>
          \def\loadpstricksmodule[#1]%<br>
            {\chardef\oldbarcode\the\catcode`\|<br>
             \catcode`\|=12<br>
             \readfile{#1}{}{}%<br>
             \catcode`\|=\oldbarcode}<br>
          <br>
          %D The next piece of code is for John Culleton who suggested
          to<br>
          %D handle \PSTRICKS\ in a similar fashion as \METAPOST, i.e.\<br>
          %D using a child process. For the moment there is no support<br>
          %D for passing environments, so these should be called<br>
          %D explicitly inside this environment.<br>
          <br>
          \unprotect<br>
          <br>
          %D \startPSTRICKS[offset=2pt] ... \stopPSTRICKS<br>
          %D<br>
          %D works in both dvi and pdf mode<br>
          %D<br>
          %D % \usemodule[pstric]<br>
          %D<br>
          %D \startPSTRICKS<br>
          %D   \pspicture(0,0)(10,10)<br>
          %D     \dorecurse{10}{\psline(0,0)(\recurselevel,10)}<br>
          %D     \dorecurse{10}{\psline(0,0)(10,\recurselevel)}<br>
          %D   \endpspicture<br>
          %D \stopPSTRICKS<br>
          <br>
          \def\startPSTRICKS<br>
            {\dosingleempty\dostartPSTRICKS}<br>
          <br>
          % \ifx\startTEXapplication\undefined<br>
          %<br>
          % \long\def\dostartPSTRICKS[#1]#2\stopPSTRICKS<br>
          %   {\doifelse{\jobsuffix}{dvi}<br>
          %      {#2}<br>
          %      {\bgroup<br>
          %       \setbuffer[pstricks]%<br>
          %         \usemodule[pstric]%<br>
          %         \setbox\scratchbox\hbox{#2}%<br>
          %         % There is probably a nicer way to handle this<br>
          %         \immediate\openout\scratchwrite=\bufferprefix
          dim.tmp<br>
          %        
          \immediate\write\scratchwrite{\dimen0=\the\ht\scratchbox}%<br>
          %        
          \immediate\write\scratchwrite{\dimen2=\the\wd\scratchbox}%<br>
          %         \immediate\closeout\scratchwrite<br>
          %         % Quick and dirty<br>
          %         \startTEXpage[#1]\box\scratchbox\stopTEXpage<br>
          %       \endbuffer<br>
          %       % Here we go!<br>
          %       %\immediate\write18{texexec \bufferprefix pstricks.tmp
          --once --batch}%<br>
          %       %\immediate\write18{dvips -G0 -Ppdf \bufferprefix
          pstricks -o}%<br>
          %       %\immediate\write18{ps2pdf  \bufferprefix pstricks.ps
          \bufferprefix pstricks.pdf}%<br>
          %       \executesystemcommand{texexec \bufferprefix
          pstricks.tmp --once --batch}%<br>
          %       \executesystemcommand{dvips -G0 -Ppdf \bufferprefix
          pstricks -o}%<br>
          %       \executesystemcommand{texmfstart pstopdf \bufferprefix
          pstricks.ps \bufferprefix pstricks.pdf}%<br>
          %       % We pick up the dimensions from the scratch file.<br>
          %       \readlocfile{\bufferprefix pstricks-dim.tmp}{}{}%<br>
          %       % Since the graphic is put on a page (sigh) by
          dvips/gs<br>
          %       % we need to shift it around a bit.<br>
          %       \setbox\scratchbox\hbox<br>
          %         {\externalfigure[\bufferprefix
          pstricks.pdf][\c!object=\v!no]}%<br>
          %       \setbox\scratchbox\hbox<br>
          %        
          {\lower\ht\scratchbox\hbox{\raise\dimen2\box\scratchbox}}%<br>
          %       \wd\scratchbox\dimen0<br>
          %       \ht\scratchbox\dimen2<br>
          %       \dp\scratchbox\zeropoint<br>
          %       \box\scratchbox<br>
          %       \egroup}}<br>
          %<br>
          % \fi<br>
          <br>
          \long\def\dostartPSTRICKS[#1]#2\stopPSTRICKS<br>
            {\doifelse{\jobsuffix}{dvi} % will some day move to app as
          switch<br>
               {\hbox{#2}}<br>
          %     
          {\startTEXapplication[#1]{\usemodule[pstric]}#2\stopTEXapplication}}<br>
               {\startTEXapplication[#1]{}#2\stopTEXapplication}}<br>
          <br>
          \protect \endinput</blockquote>
      </span></span><br>
    <span id="result_box" class="" lang="en"><span><span id="result_box"
          class="" lang="en"><span class="hps">I then</span> <span
            class="hps">compiled</span> <span class="hps">the example
            with</span> <span class="hps">minimal</span> <span
            class="hps">ConTeXt</span><span>, but I get</span> <span
            class="hps">the following error :</span></span></span> <br>
      <blockquote type="cite">fab@debian:~$ source context/tex/setuptex<br>
        Setting "/home/fab/context/tex" as ConTeXt root.<br>
        fab@debian:~$ context ntg.tex <br>
        <br>
        mtx-context     | run 1: luatex
        --fmt="/home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
        --jobname="ntg"
        --lua="/home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
        --no-parse-first-line --c:currentrun=1
        --c:fulljobname="./ntg.tex" --c:input="./ntg.tex"
        --c:kindofrun=1 --c:maxnofruns=8 "cont-yes.mkiv"<br>
        This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev
        4972) <br>
         \write18 enabled.<br>
        open source     > 1 > 1 >
        /home/fab/context/tex/texmf-context/tex/context/base/cont-yes.mkiv<br>
        <br>
        ConTeXt  ver: 2014.10.09 15:22 MKIV beta  fmt: 2014.10.12  int:
        english/english<br>
        <br>
        system          > 'cont-new.mkiv' loaded<br>
        open source     > 2 > 2 >
        /home/fab/context/tex/texmf-context/tex/context/base/cont-new.mkiv<br>
        close source    > 2 > 2 >
        /home/fab/context/tex/texmf-context/tex/context/base/cont-new.mkiv<br>
        system          > files > jobname 'ntg', input './ntg',
        result 'ntg'<br>
        fonts           > latin modern fonts are not preloaded<br>
        languages       > language 'en' is active<br>
        open source     > 2 > 3 > /home/fab/ntg.tex<br>
        resolvers       > modules > 'pstricks' is loaded<br>
        open source     > 3 > 4 >
        /home/fab/context/tex/texmf-context/tex/context/base/m-pstricks.mkiv<br>
        resolvers       > lua > loading file
        '/home/fab/context/tex/texmf-context/tex/context/base/m-pstricks.lua'
        succeeded<br>
        close source    > 3 > 4 >
        /home/fab/context/tex/texmf-context/tex/context/base/m-pstricks.mkiv<br>
        fonts           > preloading latin modern fonts (second
        stage)<br>
        fonts           > 'fallback modern-designsize rm 12pt' is
        loaded<br>
        This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014)
        (preloaded format=cont-en)<br>
         \write18 enabled.<br>
        entering extended mode<br>
        (./ntg-pstricks-0001.tmp<br>
        <br>
        ConTeXt  ver: 2013.06.07 17:34 MKII  fmt: 2014.10.12  int:
        english/english<br>
        <br>
        system          : cont-new.mkii loaded<br>
(/home/fab/context/tex/texmf-context/tex/context/base/cont-new.mkii<br>
        systems         : beware: some patches loaded from cont-new.mkii<br>
        )<br>
        system          : cont-sys.rme loaded<br>
(/home/fab/context/tex/texmf-context/tex/context/user/cont-sys.rme<br>
(/home/fab/context/tex/texmf-context/tex/context/base/type-siz.mkii)<br>
(/home/fab/context/tex/texmf-context/tex/context/base/type-one.mkii))<br>
        system          : ntg-pstricks-0001.top loaded<br>
        (./ntg-pstricks-0001.top)<br>
        bodyfont        : 12pt rm is loaded<br>
        language        : patterns
        nl->texnansi:texnansi->1->2:2
        nl->ec:ec->2->2:2 us-><br>
        ec:ec->3->2:3 de->texnansi:texnansi->4->3:3
        de->ec:ec->5->3:3 da->ec:ec->6->2:2<br>
         sv->ec:ec->7->2:2 af->ec:ec->8->2:2
        gb->ec:ec->9->2:2 fr->texnansi:texnansi->1<br>
        0->2:2 fr->ec:ec->11->2:2
        es->ec:ec->12->2:2 ca->ec:ec->13->2:2
        it->texnansi:te<br>
        xnansi->14->2:2 it->ec:ec->15->2:2
        la->ec:ec->16->2:2 pt->texnansi:texnansi->17<br>
        ->2:2 pt->ec:ec->18->2:2 ro->ec:ec->19->2:2
        pl->pl0:pl0->20->2:2 pl->ec:ec->21-<br>
        >2:2 pl->qx:qx->22->2:2
        cs->il2:il2->23->2:2 cs->ec:ec->24->2:2
        sk->il2:il2->25<br>
        ->2:2 sk->ec:ec->26->2:2 hr->ec:ec->27->2:2
        sl->ec:ec->28->2:2 tr->ec:ec->29->2<br>
        :2 tk->ec:ec->30->1:2 lt->l7x:l7x->31->2:2
        agr->agr:agr->33->2:2 fi->ec:ec->34-<br>
        >2:2 hu->ec:ec->35->2:2
        ru->t2a:t2a->37->2:2 uk->t2a:t2a->38->3:3 
        loaded<br>
        specials        : dvips loaded<br>
        systems         : system commands are enabled<br>
        language        : language en is active<br>
        publications    : file ntg-pstricks-0001.bbl not found, waiting
        for bibtex<br>
        systems         : begin file ntg-pstricks-0001 at line 1<br>
        system          : module pstric (mkii) loaded<br>
(/home/fab/context/tex/texmf-context/tex/context/base/m-pstricks.mkii<br>
        ! I can't find file `multido'.<br>
        <argument> \input multido <br>
                                  \relax \input pstricks \relax \input
        pst-plot \rel...<br>
        <br>
        \firstoftwoarguments #1#2->#1<br>
                                     <br>
        l.47 ...s}{using indirect method; enable write18}}<br>
                                                          <br>
        (Press Enter to retry, or Control-D to exit)<br>
        Please type another input file name: <br>
      </blockquote>
      <span class="hps"></span><br>
      <span class="hps">Best regards</span><span>,</span> <br>
      <span class="hps">Fabrice<br>
        <br>
      </span></span>
  </body>
</html>