1

we are creating a Latex Online Editor Compiler, The compiler Part and the Viewer part etc are over, but one problem i can't able to solve, In sharelatex, if we click the Pdf Viewer inside some Text, it will redirect the cursor to the Textbox containing Tex document, Can anyone help me in educating the logic behind that functionality in Sharelatex

enter image description here

  • 2
    I guess they use synctex, see e.g. What exactly is SyncTeX?, though exactly how it is implemented I have no idea. You could look at their code though: github.com/sharelatex/sharelatex – Torbjørn T. Jan 22 '16 at 6:43
  • @TorbjørnT. Thanks for your timely help, your post gave me an idea of what is behind that Viewer :-) – user52124 Jan 22 '16 at 8:19
  • It looks that you are using the browser PDF viewer. I think it will be a challenge to change the browser viewer to respond to clicks and get the synctex information from the server (?). I wouldn't know where to start but good luck with it. Let us know how it goes. – alfC Jan 22 '16 at 12:56
  • @alfC Yes true and ideally i changed the Pdf Acrobat viewer to Pdf.js and now trying out with pdfsync to sync pdf and latex source – user52124 Jan 22 '16 at 13:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.