Generallatex quiet mode?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
gosha
Posts: 16
Joined: Mon Nov 24, 2008 2:48 pm

latex quiet mode?

Post by gosha »

Is it possible to run latex or pdflatex in quiet mode, that is without all the output and only having output if anything fails?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

latex quiet mode?

Post by localghost »

When using MiKTeX you can add a switch to the command line arguments for the compiler.

Code: Select all

latex -quiet filename.tex
I didn't find an according switch for systems based on Web2C (TeX Live). To find out if your compiler supports this option, call its help function.

Code: Select all

latex -help
All allowed options will be listed.


Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
gosha
Posts: 16
Joined: Mon Nov 24, 2008 2:48 pm

Re: latex quiet mode?

Post by gosha »

I'm using TexLive, and could not find the -quite option. Probably it's not supported.
Thank you
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

latex quiet mode?

Post by Juanjo »

To compile foo.tex, perhaps you may try this:

Code: Select all

pdflatex -interaction=batchmode foo
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
gosha
Posts: 16
Joined: Mon Nov 24, 2008 2:48 pm

Re: latex quiet mode?

Post by gosha »

works!
Thanks a lot!
jhapk
Posts: 81
Joined: Tue Apr 20, 2010 9:33 pm

latex quiet mode?

Post by jhapk »

Hi,

when I do

Code: Select all

pdflatex -interaction=batchmode foo
it supresses all the other messages, but I get the following output on my machine:

Code: Select all

$pdflatex -interaction=batchmode foo
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
 %&-line parsing enabled.
entering extended mode
$
Can I turn these three lines off??
User avatar
shadgrind
Posts: 140
Joined: Thu Jul 16, 2009 12:39 am

latex quiet mode?

Post by shadgrind »

jhapk wrote:Can I turn these three lines off??
In Linux you could just send stdout to the bit bucket:

Code: Select all

$pdflatex -interaction=batchmode foo 1>/dev/null
System: TeX Live 2012, Fedora 18 x86_64, GNU Emacs 24.2
jhapk
Posts: 81
Joined: Tue Apr 20, 2010 9:33 pm

Re: latex quiet mode?

Post by jhapk »

Thanks. That works.
Post Reply