Script for Latex projects in Coderunner IDE.
If you use Coderunner IDE and you have multiple source files in a LaTeX project, you already know that every time you need to recompile, you shall select the main source file (that you probably leave always opened in the editor).
You may say I'm lazy, but I find this very annoying; in order to make things faster I decided to write this script. The first time you set up a project, do the following:
- put the source files in the same folder
- select a LaTeX file (let me call it child-file) in the project
- click on Run Settings
- write the name of the main source file (let me call it main-file) in Compile Flags
- press Close
- run child-file
The next time you need to recompile, just run the child-file.
Very simple procedure:
- go to Coderunner's preferences > Languages > LaTeX > Settings
- select Edit Script
- replace the content of the file compile.sh with my script