Re: [NTG-context] Watchmode

2019-11-29 Thread Aditya Mahajan

On Fri, 29 Nov 2019, Marco Patzer wrote:


On Fri, 29 Nov 2019 11:07:01 +0100
Denis Maier  wrote:


So that I can it once and ConTeXt will re-typeset a file once
there are changes?


Idea:

file='somefile.tex'
while true; do
 inotifywait --event modify "$file"
 context --batchmode "$file"
done


I use atchange (http://users.fred.net/tds/lab/atchange.html), which allows 
you write a file, where you can specify dependencies, so I can trigger an 
automatic rerun if either of the dependencies change. This is useful for 
larger projects.


Aditya
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Watchmode

2019-11-29 Thread Marco Patzer
On Fri, 29 Nov 2019 11:07:01 +0100
Denis Maier  wrote:

> is there a watchmode for ConTeXt?

I'm not aware of such a feature.

> So that I can it once and ConTeXt will re-typeset a file once
> there are changes?

Idea:

file='somefile.tex'
while true; do
  inotifywait --event modify "$file"
  context --batchmode "$file"
done

Marco
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Watchmode

2019-11-29 Thread Denis Maier

Hi,
is there a watchmode for ConTeXt? So that I can it once and ConTeXt will 
re-typeset a file once there are changes?

Best,
Denis
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___