[Tex/LaTex] pdflatex commandline hide compilation output

terminal-output

My program produces multiple outputs: I have a .tex file compiled, and some of them are produced in the command-line. The compilation info of pdf-latex is useless to me and I would like to hide it to make my command-line output readable.

I have seen this site mention some box-thicking should do it, but I haven't found a command-line equivalent.

Best Answer

You can either redirect all of the pdflatex output:

  • for sh: pdflatex ... > /dev/null 2>&1
  • for cmd: pdflatex ... > NUL 2>&1

Or you can use the -quiet option:

pdflatex -quiet ...
Related Question