Am Montag, 6. Dezember 2004 18:12 schrieb Jean-Marc Lasgouttes:
> There are a number of regexps for that, but in this case, it is the
> opening parenthesis that triggers, I guess.
> 
> I would do as follows: 
> 
> if I find a line with opening parenthesis so that what follows does
> not form an existing file name and _if_ the line is exactly 80 chars
> long (check the value, maybe), then try to merge with the next line.

At least in tetex the line width can be configured. From /etc/texmf.cnf:

% It's probably inadvisable to change these. At any rate, we must have:
% 45 < error_line      < 255;
% 30 < half_error_line < error_line - 15;
% 60 <= max_print_line;
% These apply to Metafont and MetaPost as well.
error_line = 79
half_error_line = 50
max_print_line = 79

It would be nice if the parsing could work without the line length 
information. Or it could be guessed: If the n (maybe n = 3) longest lines 
all have the same width, then this is the line width.

There is also an option --recorder in tetex, which records all opened 
files in a file with extensiom .fls. But I don't know if all tex variants 
support this option.


Georg

Reply via email to