user202729 / tex-fast-recompile

A Python module to speed up TeX compilation.
LaTeX Project Public License v1.3c
13 stars 0 forks source link

TeXStudio and synctex #22

Open antshar opened 5 months ago

antshar commented 5 months ago

Since tex_fast_recompile creates a persistent running process that watches files. I'm curious what would be the best way of using it together with TeXStudio to trigger view pdf with synctex to highlight the changed line?

I was thinking if it's possible to make tex_fast_recompile stop the process after compiling, i.e without further watching files. In this case can I use it the same way as pdflatex command in conjunction with txs:///view command that updates pdf preview with synctex. However, at the same time, doing that will decrease the speed boost of tex_fast_recompile, because recompiling when watching files is usually faster than a first run.

user202729 commented 5 months ago

I'll implement daemon mode some day which allows it to integrate seamlessly with latexmk (possibly at the cost of slower file-changed detection, I don't know what algorithm latexmk use to detect changed files)

Thanks for using the package anyway despite the uncountable number of bugs with it (I'll get around to fix them some day… it just doesn't irk me enough… yet.)

Another workaround for now is to run the process externally outside of TeXStudio (does this work?)