[NTG-context] Run context from Perl script

John Culleton john at wexfordpress.com
Wed May 12 14:57:55 CEST 2010


On Wednesday 12 May 2010 05:08:02 luigi scarso wrote:
> On Wed, May 12, 2010 at 11:03 AM, Vnpenguin 
<vnpenguin at vnoss.org> wrote:
> > Hi all,
> > I would like to run context from a Perl script. Within this script 
I
> > defined environment variables (TEXMFOS, TEXMFCAHE & 
PATH).
> > The command to run is :
> >
> > exec("/path/to/context myfile.tex");
> >
> > But context can not start. I have following error:
> >
> > MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
> >
> > With the same method, I can run "texexec" without any 
problem.
> >
> > Any idea for help ?
>
> What about
> qx{source /opt/luatex/minimals-beta/tex/setuptex; context --
silent
> --batch myfile.tex};

I have texlive 2009 installed. I get the same error messages:

bash-3.1$ context book.tex
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

Do I have to install context-minimals to use mkiv or is this just a 
path problem?


-- 
John Culleton
Wexford Press
"Create Book Covers with Scribus"
Printable E-book 38 pages $5.95
http://www.scribd.com/doc/24676863/
http://www.booklocker.com/books/4055.html


More information about the ntg-context mailing list