diff options
Diffstat (limited to 'Master/texmf-dist/scripts')
-rwxr-xr-x | Master/texmf-dist/scripts/texlogfilter/texlogfilter | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/Master/texmf-dist/scripts/texlogfilter/texlogfilter b/Master/texmf-dist/scripts/texlogfilter/texlogfilter index 6a8b2462329..341318e5764 100755 --- a/Master/texmf-dist/scripts/texlogfilter/texlogfilter +++ b/Master/texmf-dist/scripts/texlogfilter/texlogfilter @@ -16,7 +16,7 @@ use Getopt::Long; use Term::ANSIColor; my $name = "texlogfilter"; -my $version = "1.2"; +my $version = "1.3"; # options my @userfilters; @@ -27,7 +27,7 @@ my $showboxmsg = 1; my $showinfomsg = 0; my $showskips = 0; my $skipmarker = "..."; -my $extpattern = "tex|sty|cls|bib"; +my $extpattern = "tex|sty|cls|bib|fd|bst|bbx|cbx|def|clo"; my $fulllog = 0; my $printfilename = -1; # -1: value not modified by options my $errcolor = "red"; @@ -187,7 +187,8 @@ while (<>) { # assume currentfile is given in the last open parenthesis # (works badly for packages) - if (/\(([^)]+$extpattern)$/) {$currentfile = $1;} + if (/^[^(]*\)/) {$currentfile = ""; $lastfile = "";} + if (/\(([^)]+($extpattern))$/) {$currentfile = $1;} # try to show usefull lines following some warnings or errors (starting with # whitespaces or package name) @@ -341,12 +342,14 @@ distributions of LaTeX version 2005/12/01 or later. =over -=item * 2024, February, version 1.2 : fix duplicate or missing lines; handle -package and class names with hyphen ; add info and warning patterns for fonts. +=item * 2024, February, version 1.3: better detect the current file name. -=item * 2022, March, version 1.1 : add --info and --no-info options. +=item * 2024, February, version 1.2: fix duplicate or missing lines; handle +package and class names with hyphen; add info and warning patterns for fonts. -=item * 2021, November, version 1.0 : initial version. +=item * 2022, March, version 1.1: add --info and --no-info options. + +=item * 2021, November, version 1.0: initial version. =back |