views:

409

answers:

2

When running latex, the command-line output it cut after 80 characters:

LaTeX Warning: Reference `fig:assign-by-x' on page 76 undefined on input line 2
41.

Any idea how I can stop this?

Version is:

pdfTeX using libpoppler 3.141592-1.40.3-2.2 (Web2C 7.5.6)
kpathsea version 3.5.6

on Ubuntu Linux 9.04, bash shell.

+1  A: 

As best I can tell from looking at documentation and doing some experiments, this is a hardwired cutoff that can't be changed. The MikTeX pdfTeX documentation (http://docs.miktex.org/2.6/manual/pdftex.html) gives some commands for changing error widths, but they do nothing on Ubuntu. The "pdftex --help" output gives nothing useful at all.

Sorry.

Brooks Moses
Yeah, that's what I found too.
Paul Biggar
+1  A: 

The settings for this, along with all other setting for latex, are in /etc/texmf/texmf.cnf (on Ubuntu anyway). The setting for line length is:

max_print_line=79

We don't want to change this file, but all of the settings are configurable via environmental settings. So we can override this simply by running latex using:

max_print_line=120 latex myfile

Note that this breaks some things - I notice vim errorformat stops working properly.

Paul Biggar