[NTG-context] Newbie questions: integrating ruby/perl scripts into a document

Hans Hagen pragma at wxs.nl
Fri Feb 16 13:43:03 CET 2007


Vyatcheslav Yatskovsky wrote:
>> \executesystemcommand{some_external_program ...}
>>     
>
> When I try something like
>
> \starttext
> Hello
> \executesystemcommand{1.rb}
> \stoptext
>
> I get
>
> systems         : system commands are disabled
> (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo)
> (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo)
> (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo)
> (D:\context\cd-mus.tuo) (E:\MiKTeX\tex\context\base\sort-def.tex)
> (E:\MiKTeX\tex\context\base\sort-lan.tex) (D:\context\cd-mus.tuo)
> (D:\context\cd-mus.tuo)
> systems         : begin file cd-mus at line 1
> system(1.rb)...disabled.
>
>   
if you put your scripts in the texmf tree, you can also use:

texmfstart 1.rb

(which will locate the script and run it)

Hans

-- 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------



More information about the ntg-context mailing list