Search code examples
macosbashlatextexmaker

Simple program that automatically compiles latex file


I am using a unix based OS and i am at moment trying to make a small bash program that compiles my tex file all the time, such that i don't need to do that every single time.. the It seem to be compiling fine, but it doesn't create any PDF file.. and I am bit confused on why it doesn't do that.

Here is the code :

#!/bin/bash
while true
do
    pdflatex -synctex=1 -interaction=nonstopmode /Users/Johnathan/Documents/Bachelor/Rp/bachelor.tex
done

Solution

  • Nothing wrong with the bash.. I forgot to run it in correct directory.. I kept it had outputted the onto start..