Take the 2-minute tour ×

I miss a functionality in TeXworks. When working on a master file in LaTeX that includes subfiles by means of the \input{\pathToFile/filename.tex} command, I would like the possibility of right clicking on the "filename.tex" to open this file. This functionality is available when editing MatLab files and is extremely handy and practical. Is there some script available for TeXworks that makes this possible? Or, are there other LaTeX editors that make this possible?

share|improve this question
Google is your friend: code.google.com/p/texworks/issues/detail?id=261#c5 –  Marco Daniel Jun 1 '12 at 11:27
Please accept an answer if your question has been addressed to your satisfaction. (If not, tell us why!) People donate their time to your questions and not accepting an answer gives the impression that you don't appreciate their contributions. –  Pieter Jun 7 '12 at 13:12

1 Answer 1

The project page of TeX Works has a collection of available scripts.

One script has the following description:

When using a master document, you may wish to open a selected file name, or one in an \input{filename.tex} just position the cursor between the {braces} (useful until project management tools are able to be developed)

The script: openFileAtInputTag.zip

share|improve this answer
Thanks. I have downloaded, unzipped and put the .js file into the scripts folder. However, when placing the cursor and chosing the script from the Scripts menu, I get the following error message: "Uncaught exception at C:/Users/espen.donali/AppData/Local/MiKTeX/2.9/TeXworks/0.4/scripts/Acona commands/openFileAtInputTag.js:23: SyntaxError: Parse error". What is wrong? –  Espen Donali Jun 11 '12 at 11:14

Your Answer


