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. Sep 15, 2018 at 16:04
  • @samcarter: Thanks, I just installed texstudio, but I don't know how to set TEXINPUTS for it
    – sean
    Sep 15, 2018 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.
    – sean
    Sep 15, 2018 at 17:55
  • See help.ubuntu.com/community/… how to set system variables also for applications, or superuser.com/a/398881/383391 Sep 15, 2018 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)
    – sean
    Sep 15, 2018 at 20:10

1 Answer 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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .