1

My question is just in the title. My tex source is broken into > 20 files (only a few are written by me). Is there a editor in Ubuntu that allow me to quickly locate the source file when reading the PDF?

  • 1
    If you use texstudio with synctex, you can right click in the pdf and chose "go to source". This will open the corresponding file at the correct position. – user36296 Sep 15 '18 at 16:04
  • @samcarter: Thanks, I just installed texstudio, but I don't know how to set TEXINPUTS for it – qsp Sep 15 '18 at 17:44
  • @samcarter I just figured out that it's OK to compile using command line, although setting TEXTINPUTS is more convenient. Could you please turn your comment to an answer so that I can accept it. Thanks so much. – qsp Sep 15 '18 at 17:55
  • See help.ubuntu.com/community/… how to set system variables also for applications, or superuser.com/a/398881/383391 – user36296 Sep 15 '18 at 18:06
  • @samcarter Yes, I set it in my .bashrc file, and I can run it OK with pdflatex from command line. However, when I run the command from TexStudio, it says it couldn't find ***.sty (which is in my TEXINPUTS) – qsp Sep 15 '18 at 20:10
1

One possibility is TeXStudio used together with synctex enabled. Probably most other editors which support synctex will behave similarly.

On right click in the pdf, you will see context menu with "Go to Source"

enter image description here

Texstudio will then open the file and jump to the relevant position in the source.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.