aslushnikov / latex-online

Online latex compiler. You give it a link, it gives you PDF
http://latexonline.cc
MIT License
492 stars 89 forks source link

External PDF-viewer spawned periodically #61

Closed Skillmon closed 3 years ago

Skillmon commented 4 years ago

When embedding latexonline into a github page to compile LaTeX examples everything behaves well as long as the default built-in PDF viewer of Firefox is used.

When I configure Firefox to use an external PDF viewer that viewer gets spawned periodically. Confirmed this bug with FF version 74.0.1 on Arch Linux. Used external viewers were Evince and Zathura.

A gif of the buggy behaviour with Zathura as the external viewer:

peek_2020-04-08_12-35

davidcarlisle commented 4 years ago

This is probably an issue with the iframe embedding used on that site (which is just in initial pre-test phase currently) we could open in a new window or use object, if iframe turns out not to be suitable

davidcarlisle commented 4 years ago

This is probably an issue with the iframe embedding used on that site (which is just in initial pre-test phase currently) we could open in a new window or use object, if iframe turns out not to be suitable

My comment above is incorrect this can be reproduced without the learnlatex code by using the latexonline.cc example demo by first choosing (any) external pdf viewer in the firefox options menu. Firefox will then spawn dialog boxes repeatedly until the tab is killed.

aslushnikov commented 3 years ago

This is fixed with https://github.com/aslushnikov/latex-online/commit/210189b2f69d355e5cbba011056e8cc8f9063485