[NTG-context] run a ruby script and use the standard output ???

Taco Hoekwater taco at elvenkind.com
Thu Sep 28 11:18:37 CEST 2006



Hans Hagen wrote:
> piping: the latest versions of pdftex support this (i\ve forgotten the syntax, but taco who wrote the patch may remember)

piping syntax:

   \input "|ruby ./myscript.rb \vartest XXXXXXXXX"

the magic trick is the | symbol. With your current tex:

   \writ18{ruby ./myscript.rb \vartest XXXXXXXXX > whatever.tex}
   \input whatever % or something using \openin ...


Taco


More information about the ntg-context mailing list