ajshort / vscode-latex-preview

Compilation and embedded preview of LaTeX documents for Visual Studio Code
MIT License
32 stars 11 forks source link

Ability to update preview when saving included files #4

Closed parnell closed 7 years ago

parnell commented 7 years ago

Your extension preview works perfectly in the case of a single tex file but many tex projects, including many of mine, have multiple chapters or other included files that change. As these are part of the main project it would be nice for the preview to update when changes are made to these as well.

Short Example: main.tex \documentclass[12pt]{article} \includeonly{abstract} \includeonly{chapter1} \begin{document} \include{abstract} \include{chapter1} \end{document}

In this case, any changes that are made in abstract.tex, or chapter1.tex won't be reflected in the preview until main.tex is changed and saved.

So as a potential improvement I would like to suggest the ability to update the preview when any tex file is changed, or some way to choose which tex files can be saved to update the preview.