[NTG-context] two questions on file handling

Aditya Mahajan adityam at umich.edu
Sat Feb 21 08:44:32 CET 2015


On Fri, 20 Feb 2015, Pablo Rodriguez wrote:

> On 02/20/2015 11:05 PM, Hans Hagen wrote:
>> On 2/20/2015 10:53 PM, Pablo Rodriguez wrote:
>>> I would like to compile something like (well, using pandoc):
>>>
>>>      cat a.tex | contextjit --purgeall
>> 
>> won't work (imagine multiple runs) .. why pipe and not just "contextjit 
>> a.tex"
>
> Well, it was a more complex command:
>
>  pandoc -S -s --section-divs book.md -t html -o book.xml
>
> Since I won’t use that book.xml for other purpose, I thought it would be
> better not to write it to disk.

If you don't require multiple runs, you can use `context --pipe`, for 
example:

echo "\starttext Hello world \stoptext" | context --pipe

Aditya


More information about the ntg-context mailing list