ashthespy / Atom-LaTeX

The only LaTeX package you need for typesetting with Atom.
https://atom.io/packages/atom-latex
MIT License
22 stars 9 forks source link

Pdf viewer does not preview newly compiled pdfs after the first one. #168

Closed Dirivian closed 6 years ago

Dirivian commented 6 years ago

When the user complies and runs a Tex file, the pdf viewer previews the document as it should.

Now, when compiling a new Tex file without restarting Atom, the pdf viewer keeps previewing the old pdf instead of the new one.

ashthespy commented 6 years ago

How do you compile the new file? The pdf viewer previews the pdf file corresponding to the current root file.

Dirivian commented 6 years ago

I press CTRL + S to compile. What do you recommend?

ashthespy commented 6 years ago

Either split your projects into separate atom "projects" or Use the "Build LaTeX from current editor" function of the package.

ctrl + s with the "Build on save" option will build the currently set LaTeX root file - and hence you don't get an preview - cause it never builds the new file.

Dirivian commented 6 years ago

That works. Do you want to close this issue or I can document this somewhere.

ashthespy commented 6 years ago

Hmm, this is kinda how most TeX editors work - but if you think it needs an explicit note - go ahead and open a PR :-)