Which of the TeX editors have the possibility to make jump by clicking to source file some_source_tex_file.tex in \import{some-dir}{some_source_tex_file.tex} in view for editing?

Bigest thank you for answers!

Tell me, if \import or \subimport have the dir part as \newcommand element - this construction is possible for click and jump to view some_file.tex? \newcommand{\commonPath}{../../../common} \subimport{\commonPath/somedir/}{some_file.tex}

  • Not by clicking, but Vim has a command for that, see help gf.
    – marsupilam
    Jul 9 '17 at 12:21
  • With some lines of code in Elisp, Emacs.
    – giordano
    Jul 9 '17 at 21:47

In texstudio you can use Ctrl + Left click to open the file directly(*) or right click and then open <your-file-name>.tex.

enter image description here

Or from within the pdf right click and Go to Source will also open the file <your-file-name>.tex (if synctex is activated).

enter image description here

(*) Thanks to Troy for his comment!

  • Ctrl + Left clicking on the file.tex in the \import command will work as well (in TeXstudio).
    – Troy
    Jul 9 '17 at 11:36
  • 1
    @Troy Thanks for your comment! I added this information to the answer! Jul 9 '17 at 12:49

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.