summaryrefslogtreecommitdiff
path: root/support/texlogfilter/texlogfilter
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlogfilter/texlogfilter')
-rwxr-xr-xsupport/texlogfilter/texlogfilter17
1 files changed, 10 insertions, 7 deletions
diff --git a/support/texlogfilter/texlogfilter b/support/texlogfilter/texlogfilter
index 6a8b246232..341318e576 100755
--- a/support/texlogfilter/texlogfilter
+++ b/support/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