thomasjo / atom-latex

Compile LaTeX or knitr documents from within Atom
https://atom.io/packages/latex
MIT License
224 stars 42 forks source link

Ctrl+Alt+S to view pdf doesn't work with DiCy #428

Closed trentks closed 6 years ago

trentks commented 7 years ago

Just switched to DiCy to use pweave, it breaks the ctrl+alt+s functionality to view the pdf. If you spam ctrl+alt+s it seems to issue a build command (as it complains about a build currently being in progress).

I guess it's potentially relevant that I'm using Okular.

yitzchak commented 7 years ago

Thanks for reporting the issue!

Unfortunately, SyncTeX functionality is not available with Pweave because Pweave does not generate a source map. Sync is available in pure LaTeX documents and to a limited extent in knitr documents since knitr generates a concordance file which is then used to patch the SyncTeX file. Requesting a sync causes a load command to be sent to DiCy, which triggers the build spinner.

We probably could use some document explaining what functionality is available.

trentks commented 7 years ago

Thanks for the explanation, makes sense. Perhaps a sane default of literally just opening up the PDF even if you can't automatically browse to the relevant portion?

As it turns out, I need both R and Python in the same document, so instead of using Pweave I'm using knitR and invoking the Python from within R. The annoying part is to get any figures back out of the python I must manually save them to a .pdf and then import them with latex after. But this is sufficient for my purposes.

A real shame you can't use both pweave and knitR! A boy can dream though.

yitzchak commented 7 years ago

This should be the current functionality. If it isn't working that way, then something is wrong.

Try doing a rebuild in case the cache has been damaged. If that doesn't work then try reloading Atom before you do the rebuild.

stale[bot] commented 6 years ago

This issue has been marked as stale because due to inactivity. It will be closed in 7 days if no further activity occurs.