<div dir="ltr"><div>Hi Hans,<br><span id="result_box" class="" lang="en"><span class="">I installed</span> <span class="">pstoedit</span><span> :</span><br><br>root@debian:/home/fab# dpkg --status pstoedit<br>Package: pstoedit<br>Status: install ok installed<br>Priority: optional<br>Section: graphics<br>Installed-Size: 662<br>Maintainer: Roland Stigge <<a href="mailto:stigge@antcom.de">stigge@antcom.de</a>><br>Architecture: amd64<br>Source: pstoedit (3.62-2)<br>Version: 3.62-2+b3<br>Depends: libc6 (>= 2.2.5), libpstoedit0c2a, libstdc++6 (>= 4.1.1), ghostscript<br>Suggests: xfig | ivtools-bin | tgif | transfig<br>Description: PostScript and PDF files to editable vector graphics converter<br> pstoedit converts Postscript and PDF files to various editable<br> vector graphic formats including tgif, xfig, PDF graphics, gnuplot format,<br> idraw, MetaPost, GNU Metafile, PIC, Kontour and flattened PostScript.<br>Homepage: <a href="http://www.pstoedit.net/">http://www.pstoedit.net/</a><br>root@debian:/home/fab# <br><br> <span class="">I </span><span class="">compiled</span> <span class="">the file as</span> <span class="">this : "context test.tex" but it</span> <span class="">is still empty</span></span>.<br></div><div>Thanks,<br></div><div>Fabrice<br></div><br><br><span lang="en"><span>\setuppagenumbering[location=]<br><br>\setupcolors<br>  [state=start]<br><br>\setMPtext{text}{MATH\'{E}MATIQUES}<br><br><br>\starttext<br>\startuseMPgraphic{test}<br>picture pic ;<br>pic := image(graphictext \MPstring{text}<br>withdrawcolor red <br>withpen pencircle scaled 1pt ; ) ;<br>\stopuseMPgraphic<br>\stoptext</span></span><br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-08-27 10:23 GMT+02:00 Fabrice Couvreur <span dir="ltr"><<a href="mailto:fabrice1.couvreur@gmail.com" target="_blank">fabrice1.couvreur@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Hans,<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">Do you have pstoedit installed ?</blockquote><div><br>root@debian:/home/fab# apt-cache search pstoedit<br>libpstoedit0c2a - PostScript to editable vector graphics library (runtime files)<br>root@debian:/home/fab# <br><br><span lang="en"><span>I compile</span> <span>the file test.tex  with</span></span>  context test.tex<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>Fabrice<br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2015-08-27 9:39 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"><div><div>On 8/26/2015 7:12 PM, Fabrice Couvreur wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
I try to understand how this macro by testing a simple example. Why pdf<br>
file is empty?<br>
This question follows my question Cover page (Metafun)<br>
<a href="http://www.ntg.nl/pipermail/ntg-context/2015/083078.html" rel="noreferrer" target="_blank">http://www.ntg.nl/pipermail/ntg-context/2015/083078.html</a><br>
Thank you.<br>
<br>
\setuppagenumbering[location=]<br>
<br>
\setupcolors<br>
   [state=start]<br>
<br>
\setMPtext{text}{MATHEMATIQUES}<br>
<br>
<br>
\starttext<br>
\startuseMPgraphic{test}<br>
picture pic ;<br>
pic := image(graphictext \MPstring{text}<br>
withdrawcolor red<br>
withpen pencircle scaled 1pt ; ) ;<br>
addto currentpicture also pic ;<br>
\stopuseMPgraphic<br>
\stoptext<br>
</blockquote>
<br></div></div>
Do you have pstoedit installed?<br>
<br>
Anyway, there is a new mechanism that doesn't depend on additional programs:<br>
<br>
% outlinetext   (text) transformations ;<br>
% outlinetext.d (text) (draw options) transformations ;<br>
% outlinetext.f (text) (fill options) transformations ;<br>
% outlinetext.b (text) (draw options) (fill options) transformations ;<br>
% outlinetext.r (text) (fill options) (draw options) transformations ;<br>
<br>
\starttext<br>
<br>
\startMPdefinitions<br>
    let graphictext = new_graphictext ;<br>
\stopMPdefinitions<br>
<br>
\startMPpage<br>
<br>
    draw outlinetext.b<br>
        ("\framed[align=normal]{\input{tufte}}")<br>
        (withcolor .5white)<br>
        (withcolor red withpen pencircle scaled 1/10)<br>
        xsized 10cm ;<br>
<br>
\stopMPpage<br>
<br>
\startMPpage<br>
<br>
    draw outlinetext.r<br>
        ("\framed[align=normal]{\input{tufte}}")<br>
        (withcolor red withpen pencircle scaled 1/10)<br>
        (withcolor .5white)<br>
        xsized 10cm ;<br>
<br>
\stopMPpage<br>
<br>
\startMPpage<br>
<br>
    draw outlinetext.d<br>
        ("\framed[align=normal]{\input{tufte}}")<br>
        (withcolor .5white)<br>
        xsized 10cm ;<br>
<br>
\stopMPpage<br>
<br>
\startMPpage<br>
<br>
    picture p ; p := outlinetext.p("PX") ;<br>
<br>
    for i within p :<br>
        draw i withcolor red withpen pencircle scaled 1/10 ;<br>
    endfor ;<br>
<br>
\stopMPpage<br>
<br>
\stoptext<br>
<br>
<br>
<br>
-----------------------------------------------------------------<br>
                                          Hans Hagen | PRAGMA ADE<br>
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands<br>
    tel: 038 477 53 69 | voip: 087 875 68 74 | <a href="http://www.pragma-ade.com" rel="noreferrer" target="_blank">www.pragma-ade.com</a><br>
                                             | <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>
___________________________________________________________________________________</blockquote></div><br></div>
</div></div></blockquote></div><br></div>