From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: luatex lunatic
Date: Thu, 19 Dec 2013 00:51:36 +0100 [thread overview]
Message-ID: <CAG5iGsCJU3_xtNh2cs7HkyLPdTni=dZv8HiiViQ0s7s2X_Mptw@mail.gmail.com> (raw)
In-Reply-To: <CAPBmU9FTxtPqMeJM1=nsQVaCdBELWipfApTvhdRZKUv958ZjQA@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1716 bytes --]
On Wed, Dec 18, 2013 at 11:16 PM, DesdeChaves <desdechaves@gmail.com> wrote:
> Dear sirs
> I would like to try luatex lunatic (
> http://wiki.contextgarden.net/User:Luigi.scarso/luatex_lunatic) but i
> d'ont find the luatex-0.42. I'm looking in
> https://foundry.supelec.fr/frs/?group_id=10&release_id=406#luatex-beta-0.76.0-title-content
>
> I've been looking for a way to simulate data with different distributions
> (normal, poisson, exponential, etc.) in the .tex file. The use of GSL
> library is a good option, but it seems impossible to import in luatex.
> Another way is using the R-statistical through filter module***, which
> seems to work well in luatex. At this time I would try to import the GSL
> functions through python script. For that i think that i need the older
> luatex 0.42 but I don't find that.
>
> ***
> \defineexternalfilter
> [R]
> [
> filtercommand={R CMD BATCH -q --save --restore
> \externalfilterinputfile\space \externalfilteroutputfile},
> output=\externalfilterbasefile.out,
> directory=output,
> readcommand=\typefile,
> read=no,
> cache=yes,
> ]
>
>
> Jorge
>
> I'm sorry to say that I cannot help you with luatex lunatic, luatex 0.42
is too old and today there are other ways to build wrappers . I can suggest
to see SWIG (http://www.swig.org), there is a very good section on Lua.
In any case the filter module that you use is often a reliable
alternative to connect to external programs, so the problem
is often to be sure to have a good program. In your case you can also write
a python script that uses that gsl module (if there is such module, I
don't know exactly) and then call python by mean of the filter module.
--
luigi
[-- Attachment #1.2: Type: text/html, Size: 2642 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2013-12-18 23:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-18 22:16 DesdeChaves
2013-12-18 23:42 ` Hans Hagen
2013-12-18 23:51 ` luigi scarso [this message]
2013-12-19 6:29 ` Alan Braslau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAG5iGsCJU3_xtNh2cs7HkyLPdTni=dZv8HiiViQ0s7s2X_Mptw@mail.gmail.com' \
--to=luigi.scarso@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).