dvcrn / proton

space-atom. spacemacs and sublimious style editing in atom
GNU General Public License v3.0
565 stars 55 forks source link

LaTeX / PDF View Package #230

Closed karlmoller closed 8 years ago

karlmoller commented 8 years ago

Maybe I am missing something, but how do I configure the lang/latex layer to open a PDF in PDF View (pdf.js) (rather than the system PDF viewer)? I can set it in the latex package settings, but obviously that gets wiped when proton loads. I read some of the source code (as much Clojure as I understand...) to see if there is some exposed hook, but I don't see anything.

karlmoller commented 8 years ago

New manual explains how to get this working. Closing.

dvcrn commented 8 years ago

Are you referring to the new manual.md file of proton? If yes how did it help you solve the problem?

karlmoller commented 8 years ago

Yes, I was not sure how to translate keyspace + attribute in JS to Proton/Clojure the "correct way", the new manual.md explicitly states how it works. I eventually stumbled upon set-config! and hacked it in somewhere, guess I should have taken the extra 15min to read more of the codebase.

To be more clear: the latex package is set by default not to open in Atom using PDF.js, so I had to change that. So adding ["latex.alwaysOpenResultInAtom" true] to .proton works.