Latex problem: junk .aux files left around...

Hi all,

Small problem. After using pylab to run some code, having enabled the beautiful new latex support, when I quit pylab I'm getting a bunch of junk files like:

-rw-r--r-- 1 fperez 8 Jun 7 14:32 e85b79abfd76b7c13b1334d8d8c194a5.aux

left in the current directory. Some cleanup code is not being executed, any ideas?

Cheers,

f

Ouch. Would you try pasting this over line 106 in texmanager.py?

        cleanup = glob.glob(prefix+'.*')
        for fname in cleanup: os.remove(fname)
        return dvifile

Darren

···

On Tuesday 07 June 2005 4:34 pm, Fernando Perez wrote:

Hi all,

Small problem. After using pylab to run some code, having enabled the
beautiful new latex support, when I quit pylab I'm getting a bunch of
junk files like:

-rw-r--r-- 1 fperez 8 Jun 7 14:32
e85b79abfd76b7c13b1334d8d8c194a5.aux

left in the current directory. Some cleanup code is not being executed,
any ideas?

Darren Dale wrote:

Ouch. Would you try pasting this over line 106 in texmanager.py?

        cleanup = glob.glob(prefix+'.*')
        for fname in cleanup: os.remove(fname)
        return dvifile

Yup, works, as long as an 'import glob' is added at the top. I added a print statement to check, and a pylab script run shows:

In [1]: run Maps
numerix Numeric 23.7
Map iteration Demo
Map: <function logistic at 0x41da625c>
Close plot to continue
   Creating Bifurcation Diagram
*** cleanup: ['30565a8911a6bb487e3745c0ea3c8224.aux']
*** cleanup: ['3d522deaf85577451c01974654b36ad3.aux']
*** cleanup: ['54fbf38cf649866815e0fefc46a1f6c7.aux']
*** cleanup: ['e95e1ca27d0e39aa03eb5a611ce4122f.aux']
*** cleanup: ['57eeec0a6974ecb4e9fcf68fab052f7b.aux']
*** cleanup: ['e4c2e8edac362acab7123654b9e73432.aux']

Time for 0.81.1 :slight_smile: (John, you may need to wipe ~/.tex.cache to see the problem, but it's there.)

Cheers,

f

It may also have been the case that these files were created by LaTeX but not
TeX. I've cleaned it up and will commit the changes momentarily

Darren

···

On Tuesday 07 June 2005 5:50 pm, Fernando Perez wrote:

Darren Dale wrote:
> Ouch. Would you try pasting this over line 106 in texmanager.py?
>
> cleanup = glob.glob(prefix+'.*')
> for fname in cleanup: os.remove(fname)
> return dvifile

Yup, works, as long as an 'import glob' is added at the top. I added a
print statement to check, and a pylab script run shows:

In [1]: run Maps
numerix Numeric 23.7
Map iteration Demo
Map: <function logistic at 0x41da625c>
Close plot to continue
   Creating Bifurcation Diagram
*** cleanup: ['30565a8911a6bb487e3745c0ea3c8224.aux']
*** cleanup: ['3d522deaf85577451c01974654b36ad3.aux']
*** cleanup: ['54fbf38cf649866815e0fefc46a1f6c7.aux']
*** cleanup: ['e95e1ca27d0e39aa03eb5a611ce4122f.aux']
*** cleanup: ['57eeec0a6974ecb4e9fcf68fab052f7b.aux']
*** cleanup: ['e4c2e8edac362acab7123654b9e73432.aux']

Time for 0.81.1 :slight_smile: (John, you may need to wipe ~/.tex.cache to see the
problem, but it's there.)