aslushnikov / latex-online

Online latex compiler. You give it a link, it gives you PDF
http://latexonline.cc
MIT License
497 stars 89 forks source link

Add option to select compiler command in bash script #47

Closed P-D-G closed 5 years ago

P-D-G commented 5 years ago

This pull request adds a command-line argument to select an alternative latex compiler to pdflatex from the bash script. This should solve issue https://github.com/aslushnikov/latex-online/issues/45. The input is controlled to avoid trying to run a non-supported compiler, and abort the script with an error message if the entered compiler doesn't exist. Documentation is added in the help command, but not in README, like the -d flag.

I haven't detected any weird behavior, but will of course correct it if there's something wrong. Also, it's my first PR and I'm not sure I followed the right process, please tell me if I did something wrong :D

Regards