Changes

Jump to navigation Jump to search
m
no edit summary
< [[TeX and pdfeTeX]] >
 
Including the contents of another file with TeX is done with
<code>\input</code>. But you have to be careful: TeX appends a character
X\ignorespaces \input temp\relax \removeunwantedspaces X
</texcode>
 
 
== Piping ==
 
''From [[User:Taco|Taco]]'s post on the mailing list:''
 
Latest pdfTeX allows piping:
\input "|ruby ./myscript.rb \vartest XXXXXXXXX"
 
the magic trick is the | symbol. With the current tex:
<texcode>
\writ18{ruby ./myscript.rb \vartest XXXXXXXXX > whatever.tex}
\input whatever % or something using \openin ...
</texcode>
 
[[Category:Tools]]

Navigation menu