From eb083a3999de866133bbf50522e98c3d816066e0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 15 Mar 2010 10:02:24 +0000 Subject: [PATCH] * Increase `max_print_line' to prevent TeX from breaking lines at 79 characters, which is stupid. (For instance, it breaks grepping for words when they are broken across multiple lines.) * Print warnings in the condensed log output. svn path=/nixpkgs/trunk/; revision=20625 --- pkgs/misc/tex/nix/run-latex.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/misc/tex/nix/run-latex.sh b/pkgs/misc/tex/nix/run-latex.sh index ecce893950b..1db41f3c336 100644 --- a/pkgs/misc/tex/nix/run-latex.sh +++ b/pkgs/misc/tex/nix/run-latex.sh @@ -2,6 +2,9 @@ source $stdenv/setup ensureDir $out +export TEXMFCNF=$TMPDIR: +echo 'max_print_line = 8192' >> $TMPDIR/texmf.cnf + mkdir root cd root @@ -125,6 +128,10 @@ else fi +echo "WARNINGS:" +cat $tmpFile | grep "Warning:" | grep -v "Citation.*undefined" || true + +echo echo "OVERFULL/UNDERFULL:" cat $tmpFile | egrep "Overfull|Underfull" || true