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?
1If 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.– samcarter_is_at_topanswers.xyzSep 15, 2018 at 16:04
@samcarter: Thanks, I just installed texstudio, but I don't know how to set TEXINPUTS for it– seanSep 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.– seanSep 15, 2018 at 17:55
See help.ubuntu.com/community/… how to set system variables also for applications, or superuser.com/a/398881/383391– samcarter_is_at_topanswers.xyzSep 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)– seanSep 15, 2018 at 20:10
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"
Texstudio will then open the file and jump to the relevant position in the source.