Re: log file, how to limit output

2000-11-07 Thread Jan Goebel

Hello,

if you are on Unix (i guess you are, right?) you probably find a directory
in /tmp which is called

"lyx_tmp[psid]aaa"

where psid is the Process-ID of lyx (maybe the aaa changes with
multiple running lyx, i guess?)

In this directorie you find for every buffer his own directory 
(syntax=lyx_bufrtmp[psid][aaa-zzz]), if you have multiple buffer :)

And last but not least, you can find in this buffer-directories the 
file needed and produced by latex.

If you edit file.lyx you can find there the file.log you are searching
for.

Good luck

jan

PS: maybe you take a look at your lyxrc.file:

# Default is /tmp/unique directory for each instance of LyX
# (unless set to /tmp).
#\tempdir_path /usr/tmp


On Tue, 07 Nov 2000, Torsten Mueller wrote:

 Hallo,
 
 when I try to look in the log file, I can see some lines for every
 eps figure which is included (which are a lot!).
 When looking for a real error message or warning (e.g. missing references
 etc.) this is disturbing.
 
 Is it possible to limit the output in the log file?
 Or can I filter the output (where is the real file?)
 
 Thanks,
 Torsten

-- 
---
Jan Goebel (mailto:[EMAIL PROTECTED])

DIW German Institute for Economic Research
SOEP
Königin-Luise-Str. 5
D-14195 Berlin
Germany

phone: 49 30 89789-377
---



Re: log file, how to limit output

2000-11-07 Thread Jean-Pierre.Chretien


Date: Tue, 7 Nov 2000 18:12:00 +0100 (MET)
From: Torsten Mueller [EMAIL PROTECTED]
Subject: log file, how to limit output
To: [EMAIL PROTECTED]

Hallo,

when I try to look in the log file, I can see some lines for every
eps figure which is included (which are a lot!).
When looking for a real error message or warning (e.g. missing references
etc.) this is disturbing.

Is it possible to limit the output in the log file?
Or can I filter the output (where is the real file?)

With LyX, the « Edit-Go to error » function allows to get from one error
message to the other without going into the log file.

With latex I do inline filtering wih a perl script which
kepps track of the errors and warnings.

The log lies where you tell to LyX in the lyxrc file
(defaults to tmpdir).
In fact when you latex a file there is a short log on the STDOUT
and a long one in the .log file.

-- 
Jean-Pierre




Re: log file, how to limit output

2000-11-07 Thread Jan Goebel

On Tue, 07 Nov 2000, Jean-Pierre.Chretien wrote:

 With LyX, the « Edit-Go to error » function allows to get from one error
 message to the other without going into the log file.

But sometimes the location of the error box isn't very informativ :(

 
 With latex I do inline filtering wih a perl script which
 kepps track of the errors and warnings.

Nice, maybe you can make this available?

 
 The log lies where you tell to LyX in the lyxrc file
 (defaults to tmpdir).
 In fact when you latex a file there is a short log on the STDOUT
 and a long one in the .log file.

But the short log on STDOUT requires that you have started lyx
in an terminal (IMHO).

jan

 
 -- 
 Jean-Pierre

-- 
---
Jan Goebel (mailto:[EMAIL PROTECTED])

DIW German Institute for Economic Research
SOEP
Königin-Luise-Str. 5
D-14195 Berlin
Germany

phone: 49 30 89789-377
---



Re: log file, how to limit output

2000-11-07 Thread Jean-Pierre.Chretien


Date: Tue, 7 Nov 2000 18:50:20 +0100
From: Jan Goebel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: log file, how to limit output
Mail-Followup-To: Jan Goebel [EMAIL PROTECTED], 
[EMAIL PROTECTED]
User-Agent: Mutt/1.2.5i

On Tue, 07 Nov 2000, Jean-Pierre.Chretien wrote:

 With LyX, the « Edit-Go to error » function allows to get from one error
 message to the other without going into the log file.

But sometimes the location of the error box isn't very informativ :(

 
 With latex I do inline filtering wih a perl script which
 kepps track of the errors and warnings.

Nice, maybe you can make this available?

Sure, you'll have to hack it a bit because it
runs the required latex passes to complete the compilation.
You may run it as is on the tex file of the temporary.

Please keep me posted personnaly if you find bugs...


-- 
Jean-Pierre


#!/usr/local/bin/perl
#


if ($ARGV[0] eq "-h" || $ARGV[0] eq "") {
usage; exit;
}

$log=0;
$log=1,shift @ARGV if ($ARGV[0]=~m/^\-l|\-log/);
 
BOUCLE: while (@ARGV) {
$ARG = shift @ARGV;
$allok=1;
   ($rac,$suf)=($ARG=~m/(.*?)\.(tex)$/m);
if ($suf ne "tex") {
print "$ARG: tex extension needed...\n";
next BOUCLE;
  }

$passe1=`latex '\\nonstopmode{\\input{$rac}}`;
$lastpasse=$passe1;#($temps)=($lastpasse=~m/([0-9]+\.[0-9]+)u 
[0-9]+\.[0-9]+s/sg);
print "$ARG: first pass...\n" unless ($log);

#   print "\n Passe 1 \n$passe1\n\n";
if ($passe1=~m/LaTeX Warning\: There were undefined references\./) {
  $passe1=`bibtex $rac; latex '\\nonstopmode{\\input{$rac}}`;
$lastpasse=$passe1; 
  print "$ARG: bibTeX pass...\n" unless ($log);

#print "\n Passe 2 \n$passe1\n\n";
}

if ($passe1=~m/LaTeX Warning\: Label\(s\) may have changed\. Rerun to get 
cross\-references right\./) {

$passe2=`latex '\\nonstopmode{\\input{$rac}}`;
#print "\n Passe 2 \n$passe2\n\n";
$lastpasse=$passe2;
   print "$ARG: second pass...\n" unless ($log);

  }
if ($passe2=~m/LaTeX Warning\: Label\(s\) may have changed\. Rerun to get 
cross\-references right\./) {
$passe3=`latex '\\nonstopmode{\\input{$rac}}`;
#print "\n Passe 3 \n$passe2\n\n";
$lastpasse=$passe2;
   print "$ARG: third pass...\n" unless ($log);

  }
if (($lastpasse=~m/LaTeX Warning\: There were undefined references\./)) {
print "$ARG: undefined bibliographic reference(s) after bibtex,
check citations:\n" unless ($log);
(@messages)=($lastpasse=~m/\nLaTeX Warning\: (Citation.*?)\n/gs);
print join('
',@messages),"\n\n";
$allok=0;
} 

if (`grep '^! ' $rac.log`) {
   print "$ARG: remaining errors, check $rac.log:\n" unless ($log);
   (@messageslat)=($lastpasse=~m/\n(! .*?\n.*?\n)/gs);
print join('
',@messageslat),"\n\n";
#print $lastpasse,"\n";
$allok=0;
 }
unless ($log) {
   print "$ARG: errorless compilation.\n" if ($allok);
 
undef  @warnings; 
(@warnings)=($lastpasse=~m/\nLaTeX Warning\: (.*?)\n/gs);
print "\nRemaining warnings:\n",join('
',@warnings),"\n\n" if ($allok  @warnings);
 }
print "$lastpasse" if ($log);  
}

sub usage {
print "Usage: latfin [-h(elp)|-l(og)]  file1 file2 ... 
(* convention admitted, e.g. latfin *.tex)
Extension .tex required.
Compiles a latex document w/ necessary passes.
Keeps track of warmning and errors.
latfin -l(og) toto.tex : standard log instead.
";
}





Re: log file, how to limit output

2000-11-07 Thread Torsten Mueller

But the short log on STDOUT requires that you have started lyx
in an terminal (IMHO).

On stdout I see only the messages of bibtex, no latex messages.


So it seems, there is no way to switch off the log entries for
the figures.


Torsten




Re: log file, how to limit output

2000-11-07 Thread Jan Goebel

Hello,

if you are on Unix (i guess you are, right?) you probably find a directory
in /tmp which is called

"lyx_tmp[psid]aaa"

where psid is the Process-ID of lyx (maybe the aaa changes with
multiple running lyx, i guess?)

In this directorie you find for every buffer his own directory 
(syntax=lyx_bufrtmp[psid][aaa-zzz]), if you have multiple buffer :)

And last but not least, you can find in this buffer-directories the 
file needed and produced by latex.

If you edit file.lyx you can find there the file.log you are searching
for.

Good luck

jan

PS: maybe you take a look at your lyxrc.file:

# Default is /tmp/unique directory for each instance of LyX
# (unless set to /tmp).
#\tempdir_path /usr/tmp


On Tue, 07 Nov 2000, Torsten Mueller wrote:

 Hallo,
 
 when I try to look in the log file, I can see some lines for every
 eps figure which is included (which are a lot!).
 When looking for a real error message or warning (e.g. missing references
 etc.) this is disturbing.
 
 Is it possible to limit the output in the log file?
 Or can I filter the output (where is the real file?)
 
 Thanks,
 Torsten

-- 
---
Jan Goebel (mailto:[EMAIL PROTECTED])

DIW German Institute for Economic Research
SOEP
Königin-Luise-Str. 5
D-14195 Berlin
Germany

phone: 49 30 89789-377
---



Re: log file, how to limit output

2000-11-07 Thread Jean-Pierre.Chretien


Date: Tue, 7 Nov 2000 18:12:00 +0100 (MET)
From: Torsten Mueller [EMAIL PROTECTED]
Subject: log file, how to limit output
To: [EMAIL PROTECTED]

Hallo,

when I try to look in the log file, I can see some lines for every
eps figure which is included (which are a lot!).
When looking for a real error message or warning (e.g. missing references
etc.) this is disturbing.

Is it possible to limit the output in the log file?
Or can I filter the output (where is the real file?)

With LyX, the « Edit-Go to error » function allows to get from one error
message to the other without going into the log file.

With latex I do inline filtering wih a perl script which
kepps track of the errors and warnings.

The log lies where you tell to LyX in the lyxrc file
(defaults to tmpdir).
In fact when you latex a file there is a short log on the STDOUT
and a long one in the .log file.

-- 
Jean-Pierre




Re: log file, how to limit output

2000-11-07 Thread Jan Goebel

On Tue, 07 Nov 2000, Jean-Pierre.Chretien wrote:

 With LyX, the « Edit-Go to error » function allows to get from one error
 message to the other without going into the log file.

But sometimes the location of the error box isn't very informativ :(

 
 With latex I do inline filtering wih a perl script which
 kepps track of the errors and warnings.

Nice, maybe you can make this available?

 
 The log lies where you tell to LyX in the lyxrc file
 (defaults to tmpdir).
 In fact when you latex a file there is a short log on the STDOUT
 and a long one in the .log file.

But the short log on STDOUT requires that you have started lyx
in an terminal (IMHO).

jan

 
 -- 
 Jean-Pierre

-- 
---
Jan Goebel (mailto:[EMAIL PROTECTED])

DIW German Institute for Economic Research
SOEP
Königin-Luise-Str. 5
D-14195 Berlin
Germany

phone: 49 30 89789-377
---



Re: log file, how to limit output

2000-11-07 Thread Jean-Pierre.Chretien


Date: Tue, 7 Nov 2000 18:50:20 +0100
From: Jan Goebel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: log file, how to limit output
Mail-Followup-To: Jan Goebel [EMAIL PROTECTED], 
[EMAIL PROTECTED]
User-Agent: Mutt/1.2.5i

On Tue, 07 Nov 2000, Jean-Pierre.Chretien wrote:

 With LyX, the « Edit-Go to error » function allows to get from one error
 message to the other without going into the log file.

But sometimes the location of the error box isn't very informativ :(

 
 With latex I do inline filtering wih a perl script which
 kepps track of the errors and warnings.

Nice, maybe you can make this available?

Sure, you'll have to hack it a bit because it
runs the required latex passes to complete the compilation.
You may run it as is on the tex file of the temporary.

Please keep me posted personnaly if you find bugs...


-- 
Jean-Pierre


#!/usr/local/bin/perl
#


if ($ARGV[0] eq "-h" || $ARGV[0] eq "") {
usage; exit;
}

$log=0;
$log=1,shift @ARGV if ($ARGV[0]=~m/^\-l|\-log/);
 
BOUCLE: while (@ARGV) {
$ARG = shift @ARGV;
$allok=1;
   ($rac,$suf)=($ARG=~m/(.*?)\.(tex)$/m);
if ($suf ne "tex") {
print "$ARG: tex extension needed...\n";
next BOUCLE;
  }

$passe1=`latex '\\nonstopmode{\\input{$rac}}`;
$lastpasse=$passe1;#($temps)=($lastpasse=~m/([0-9]+\.[0-9]+)u 
[0-9]+\.[0-9]+s/sg);
print "$ARG: first pass...\n" unless ($log);

#   print "\n Passe 1 \n$passe1\n\n";
if ($passe1=~m/LaTeX Warning\: There were undefined references\./) {
  $passe1=`bibtex $rac; latex '\\nonstopmode{\\input{$rac}}`;
$lastpasse=$passe1; 
  print "$ARG: bibTeX pass...\n" unless ($log);

#print "\n Passe 2 \n$passe1\n\n";
}

if ($passe1=~m/LaTeX Warning\: Label\(s\) may have changed\. Rerun to get 
cross\-references right\./) {

$passe2=`latex '\\nonstopmode{\\input{$rac}}`;
#print "\n Passe 2 \n$passe2\n\n";
$lastpasse=$passe2;
   print "$ARG: second pass...\n" unless ($log);

  }
if ($passe2=~m/LaTeX Warning\: Label\(s\) may have changed\. Rerun to get 
cross\-references right\./) {
$passe3=`latex '\\nonstopmode{\\input{$rac}}`;
#print "\n Passe 3 \n$passe2\n\n";
$lastpasse=$passe2;
   print "$ARG: third pass...\n" unless ($log);

  }
if (($lastpasse=~m/LaTeX Warning\: There were undefined references\./)) {
print "$ARG: undefined bibliographic reference(s) after bibtex,
check citations:\n" unless ($log);
(@messages)=($lastpasse=~m/\nLaTeX Warning\: (Citation.*?)\n/gs);
print join('
',@messages),"\n\n";
$allok=0;
} 

if (`grep '^! ' $rac.log`) {
   print "$ARG: remaining errors, check $rac.log:\n" unless ($log);
   (@messageslat)=($lastpasse=~m/\n(! .*?\n.*?\n)/gs);
print join('
',@messageslat),"\n\n";
#print $lastpasse,"\n";
$allok=0;
 }
unless ($log) {
   print "$ARG: errorless compilation.\n" if ($allok);
 
undef  @warnings; 
(@warnings)=($lastpasse=~m/\nLaTeX Warning\: (.*?)\n/gs);
print "\nRemaining warnings:\n",join('
',@warnings),"\n\n" if ($allok  @warnings);
 }
print "$lastpasse" if ($log);  
}

sub usage {
print "Usage: latfin [-h(elp)|-l(og)]  file1 file2 ... 
(* convention admitted, e.g. latfin *.tex)
Extension .tex required.
Compiles a latex document w/ necessary passes.
Keeps track of warmning and errors.
latfin -l(og) toto.tex : standard log instead.
";
}





Re: log file, how to limit output

2000-11-07 Thread Torsten Mueller

But the short log on STDOUT requires that you have started lyx
in an terminal (IMHO).

On stdout I see only the messages of bibtex, no latex messages.


So it seems, there is no way to switch off the log entries for
the figures.


Torsten




Re: log file, how to limit output

2000-11-07 Thread Jan Goebel

Hello,

if you are on Unix (i guess you are, right?) you probably find a directory
in /tmp which is called

"lyx_tmp[psid]aaa"

where psid is the Process-ID of lyx (maybe the aaa changes with
multiple running lyx, i guess?)

In this directorie you find for every buffer his own directory 
(syntax=lyx_bufrtmp[psid][aaa-zzz]), if you have multiple buffer :)

And last but not least, you can find in this buffer-directories the 
file needed and produced by latex.

If you edit file.lyx you can find there the file.log you are searching
for.

Good luck

jan

PS: maybe you take a look at your lyxrc.file:

# Default is /tmp/
# (unless set to /tmp).
#\tempdir_path /usr/tmp


On Tue, 07 Nov 2000, Torsten Mueller wrote:

> Hallo,
> 
> when I try to look in the log file, I can see some lines for every
> eps figure which is included (which are a lot!).
> When looking for a real error message or warning (e.g. missing references
> etc.) this is disturbing.
> 
> Is it possible to limit the output in the log file?
> Or can I filter the output (where is the real file?)
> 
> Thanks,
> Torsten

-- 
---
Jan Goebel (mailto:[EMAIL PROTECTED])

DIW German Institute for Economic Research
SOEP
Königin-Luise-Str. 5
D-14195 Berlin
Germany

phone: 49 30 89789-377
---



Re: log file, how to limit output

2000-11-07 Thread Jean-Pierre.Chretien


>>Date: Tue, 7 Nov 2000 18:12:00 +0100 (MET)
>>From: Torsten Mueller <[EMAIL PROTECTED]>
>>Subject: log file, how to limit output
>>To: [EMAIL PROTECTED]
>>
>>Hallo,
>>
>>when I try to look in the log file, I can see some lines for every
>>eps figure which is included (which are a lot!).
>>When looking for a real error message or warning (e.g. missing references
>>etc.) this is disturbing.
>>
>>Is it possible to limit the output in the log file?
>>Or can I filter the output (where is the real file?)

With LyX, the « Edit->Go to error » function allows to get from one error
message to the other without going into the log file.

With latex I do inline filtering wih a perl script which
kepps track of the errors and warnings.

The log lies where you tell to LyX in the lyxrc file
(defaults to tmpdir).
In fact when you latex a file there is a short log on the STDOUT
and a long one in the .log file.

-- 
Jean-Pierre




Re: log file, how to limit output

2000-11-07 Thread Jan Goebel

On Tue, 07 Nov 2000, Jean-Pierre.Chretien wrote:

> With LyX, the « Edit->Go to error » function allows to get from one error
> message to the other without going into the log file.

But sometimes the location of the error box isn't very informativ :(

> 
> With latex I do inline filtering wih a perl script which
> kepps track of the errors and warnings.

Nice, maybe you can make this available?

> 
> The log lies where you tell to LyX in the lyxrc file
> (defaults to tmpdir).
> In fact when you latex a file there is a short log on the STDOUT
> and a long one in the .log file.

But the short log on STDOUT requires that you have started lyx
in an terminal (IMHO).

jan

> 
> -- 
> Jean-Pierre

-- 
---
Jan Goebel (mailto:[EMAIL PROTECTED])

DIW German Institute for Economic Research
SOEP
Königin-Luise-Str. 5
D-14195 Berlin
Germany

phone: 49 30 89789-377
---



Re: log file, how to limit output

2000-11-07 Thread Jean-Pierre.Chretien


>>Date: Tue, 7 Nov 2000 18:50:20 +0100
>>From: Jan Goebel <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED]
>>Subject: Re: log file, how to limit output
>>Mail-Followup-To: Jan Goebel <[EMAIL PROTECTED]>, 
[EMAIL PROTECTED]
>>User-Agent: Mutt/1.2.5i
>>
>>On Tue, 07 Nov 2000, Jean-Pierre.Chretien wrote:
>>
>>> With LyX, the « Edit->Go to error » function allows to get from one error
>>> message to the other without going into the log file.
>>
>>But sometimes the location of the error box isn't very informativ :(
>>
>>> 
>>> With latex I do inline filtering wih a perl script which
>>> kepps track of the errors and warnings.
>>
>>Nice, maybe you can make this available?

Sure, you'll have to hack it a bit because it
runs the required latex passes to complete the compilation.
You may run it as is on the tex file of the temporary.

Please keep me posted personnaly if you find bugs...


-- 
Jean-Pierre


#!/usr/local/bin/perl
#


if ($ARGV[0] eq "-h" || $ARGV[0] eq "") {
usage; exit;
}

$log=0;
$log=1,shift @ARGV if ($ARGV[0]=~m/^\-l|\-log/);
 
BOUCLE: while (@ARGV) {
$ARG = shift @ARGV;
$allok=1;
   ($rac,$suf)=($ARG=~m/(.*?)\.(tex)$/m);
if ($suf ne "tex") {
print "$ARG: tex extension needed...\n";
next BOUCLE;
  }

$passe1=`latex '\\nonstopmode{\\input{$rac}}`;
$lastpasse=$passe1;#($temps)=($lastpasse=~m/([0-9]+\.[0-9]+)u 
[0-9]+\.[0-9]+s/sg);
print "$ARG: first pass...\n" unless ($log);

#   print "\n Passe 1 \n$passe1\n\n";
if ($passe1=~m/LaTeX Warning\: There were undefined references\./) {
  $passe1=`bibtex $rac; latex '\\nonstopmode{\\input{$rac}}`;
$lastpasse=$passe1; 
  print "$ARG: bibTeX pass...\n" unless ($log);

#print "\n Passe 2 \n$passe1\n\n";
}

if ($passe1=~m/LaTeX Warning\: Label\(s\) may have changed\. Rerun to get 
cross\-references right\./) {

$passe2=`latex '\\nonstopmode{\\input{$rac}}`;
#print "\n Passe 2 \n$passe2\n\n";
$lastpasse=$passe2;
   print "$ARG: second pass...\n" unless ($log);

  }
if ($passe2=~m/LaTeX Warning\: Label\(s\) may have changed\. Rerun to get 
cross\-references right\./) {
$passe3=`latex '\\nonstopmode{\\input{$rac}}`;
#print "\n Passe 3 \n$passe2\n\n";
$lastpasse=$passe2;
   print "$ARG: third pass...\n" unless ($log);

  }
if (($lastpasse=~m/LaTeX Warning\: There were undefined references\./)) {
print "$ARG: undefined bibliographic reference(s) after bibtex,
check citations:\n" unless ($log);
(@messages)=($lastpasse=~m/\nLaTeX Warning\: (Citation.*?)\n/gs);
print join('
',@messages),"\n\n";
$allok=0;
} 

if (`grep '^! ' $rac.log`) {
   print "$ARG: remaining errors, check $rac.log:\n" unless ($log);
   (@messageslat)=($lastpasse=~m/\n(! .*?\n.*?\n)/gs);
print join('
',@messageslat),"\n\n";
#print $lastpasse,"\n";
$allok=0;
 }
unless ($log) {
   print "$ARG: errorless compilation.\n" if ($allok);
 
undef  @warnings; 
(@warnings)=($lastpasse=~m/\nLaTeX Warning\: (.*?)\n/gs);
print "\nRemaining warnings:\n",join('
',@warnings),"\n\n" if ($allok && @warnings);
 }
print "$lastpasse" if ($log);  
}

sub usage {
print "Usage: latfin [-h(elp)|-l(og)]... 
(* convention admitted, e.g. latfin *.tex)
Extension .tex required.
Compiles a latex document w/ necessary passes.
Keeps track of warmning and errors.
latfin -l(og) toto.tex : standard log instead.
";
}





Re: log file, how to limit output

2000-11-07 Thread Torsten Mueller

>But the short log on STDOUT requires that you have started lyx
>in an terminal (IMHO).

On stdout I see only the messages of bibtex, no latex messages.


So it seems, there is no way to switch off the log entries for
the figures.


Torsten