This question already has an answer here:
- Tools for automating document compilation 26 answers
I am currently using Texworks + Linux. To compile the PDF I hit pdflatex + bibtex + pdflatex + pdflatex. Is there a way so that I create a new typeset that does that in one click?
Found the easy answer:
1- add a new typeset tool, (Edit > Preferences > Typesetting > Add Processing tools)
2- And use Browse to add your simple bash code:
#!/bin/bash filename=$1 filename_bib=$2 pdflatex $filename bibtex $filename_bib pdflatex $filename pdflatex $filename