removing .pgf file with --purgeall
Hello Hans, may I request removing \jobname.pgf when doing context/ctxtools --purgeall (in both mkii/mkiv)? That's a file that TikZ creates by default (similar to \jobname-mpgraph*, only serving a different purpose) and is only needed when a document is compiled on computer without tikz installed. (Low priority request.) Mojca
On Mon, Jun 08, 2009 at 01:28:01PM +0200, Mojca Miklavec wrote:
Hello Hans,
may I request removing \jobname.pgf when doing context/ctxtools --purgeall (in both mkii/mkiv)? That's a file that TikZ creates by default (similar to \jobname-mpgraph*, only serving a different purpose) and is only needed when a document is compiled on computer without tikz installed.
(Low priority request.)
While on it, may I request removing .synctex.gz generated when SyncTeX is enabled (I know it is needed for previewers, but I assume --purgeall to remove every generated file except the output document). Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer
Khaled Hosny wrote:
On Mon, Jun 08, 2009 at 01:28:01PM +0200, Mojca Miklavec wrote:
Hello Hans,
may I request removing \jobname.pgf when doing context/ctxtools --purgeall (in both mkii/mkiv)? That's a file that TikZ creates by default (similar to \jobname-mpgraph*, only serving a different purpose) and is only needed when a document is compiled on computer without tikz installed.
(Low priority request.)
While on it, may I request removing .synctex.gz generated when SyncTeX is enabled (I know it is needed for previewers, but I assume --purgeall to remove every generated file except the output document).
local temporary_runfiles = { "tui", "tua", "tup", "ted", "tes", "top", "log", "tmp", "run", "bck", "rlg", "mpt", "mpx", "mpd", "mpo", "mpb", "ctl", "synctex.gz", } can you test it? ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Tue, Jun 09, 2009 at 05:50:39PM +0200, Hans Hagen wrote:
Khaled Hosny wrote:
On Mon, Jun 08, 2009 at 01:28:01PM +0200, Mojca Miklavec wrote:
Hello Hans,
may I request removing \jobname.pgf when doing context/ctxtools --purgeall (in both mkii/mkiv)? That's a file that TikZ creates by default (similar to \jobname-mpgraph*, only serving a different purpose) and is only needed when a document is compiled on computer without tikz installed.
(Low priority request.)
While on it, may I request removing .synctex.gz generated when SyncTeX is enabled (I know it is needed for previewers, but I assume --purgeall to remove every generated file except the output document).
local temporary_runfiles = { "tui", "tua", "tup", "ted", "tes", "top", "log", "tmp", "run", "bck", "rlg", "mpt", "mpx", "mpd", "mpo", "mpb", "ctl", "synctex.gz", }
can you test it? This works for me, but I think we need to added it to ctxtools.rb for 'ctxtools --purgefiles --all' too?
Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer
Khaled Hosny wrote:
On Tue, Jun 09, 2009 at 05:50:39PM +0200, Hans Hagen wrote:
Khaled Hosny wrote:
On Mon, Jun 08, 2009 at 01:28:01PM +0200, Mojca Miklavec wrote:
Hello Hans,
may I request removing \jobname.pgf when doing context/ctxtools --purgeall (in both mkii/mkiv)? That's a file that TikZ creates by default (similar to \jobname-mpgraph*, only serving a different purpose) and is only needed when a document is compiled on computer without tikz installed.
(Low priority request.) While on it, may I request removing .synctex.gz generated when SyncTeX is enabled (I know it is needed for previewers, but I assume --purgeall to remove every generated file except the output document). local temporary_runfiles = { "tui", "tua", "tup", "ted", "tes", "top", "log", "tmp", "run", "bck", "rlg", "mpt", "mpx", "mpd", "mpo", "mpb", "ctl", "synctex.gz", }
can you test it? This works for me, but I think we need to added it to ctxtools.rb for 'ctxtools --purgefiles --all' too?
ctxtools becomes obsolete ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
This works for me, but I think we need to added it to ctxtools.rb for 'ctxtools --purgefiles --all' too?
ctxtools becomes obsolete
I would have used context --purge, but that one doesn't purge the junk that mkii generates. But there only 6 characters to add to this list it ctxtools, right? (OK, a bit more to handle both requests.) $forsuresuffixes = [ "tui", "tua", "tup", "ted", "tes", "top", ... Mojca
Mojca Miklavec wrote:
This works for me, but I think we need to added it to ctxtools.rb for 'ctxtools --purgefiles --all' too? ctxtools becomes obsolete
I would have used context --purge, but that one doesn't purge the junk that mkii generates.
But there only 6 characters to add to this list it ctxtools, right? (OK, a bit more to handle both requests.)
$forsuresuffixes = [ "tui", "tua", "tup", "ted", "tes", "top", ...
so: "pgf", "synctex.gz", ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Fri, Jun 12, 2009 at 09:55, Hans Hagen wrote:
Mojca Miklavec wrote:
This works for me, but I think we need to added it to ctxtools.rb for 'ctxtools --purgefiles --all' too?
ctxtools becomes obsolete
I would have used context --purge, but that one doesn't purge the junk that mkii generates.
But there only 6 characters to add to this list it ctxtools, right? (OK, a bit more to handle both requests.)
$forsuresuffixes = [ "tui", "tua", "tup", "ted", "tes", "top", ...
so:
"pgf", "synctex.gz",
It seems to work (almost) OK, thanks a lot. I have made a tiny minor mistake though. $forsuresuffixes cleans the files on "--purge" while $texnonesuffixes cleans them on "--purge --all". So it might be slighty better to have $forsuresuffixes = [ "tui", "tua", "tup", "ted", "tes", "top", "log", "tmp", "run", "bck", "rlg", "mpt", "mpx", "mpd", "mpo", "mpb", "ctl", "synctex.gz(busy)", "tmp.md5", "tmp.out" ] $texonlysuffixes = [ "dvi", "ps", "pdf" ] $texnonesuffixes = [ "tuo", "tub", "top", "tuc", "pgf", "synctex.gz" ] but now I'm already too annoying, so you may just as well ignore the notice above :) :) On the other hand (1) neither "context --purge" nor "context --purge --all" remove the .synctex.gz (2) running "context somefile" deletes somefile.synctex.gz none of which is probably the desired effect. I have been scratching my head about (2) for quite some time, but then I figured out that it indeed makes sense to delete the synctex file. The problem with (1) is that local suffix = file.extname(name) only returns .gz and that one is not properly recognized when compared with "synctex.gz". Apart from that I would put "pgf" and "synctex.gz" under "persistent_runfiles" rather than "temporary_runfiles" (like in mkii). Mojca
Mojca Miklavec wrote:
Hello Hans,
may I request removing \jobname.pgf when doing context/ctxtools --purgeall (in both mkii/mkiv)? That's a file that TikZ creates by default (similar to \jobname-mpgraph*, only serving a different purpose) and is only needed when a document is compiled on computer without tikz installed.
is this name configureable? can we turn it into something \jobname-temp.pgf or so? (as we do with the mp temp files) or maybe \jobname-pgfgraphic.pgf or so ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Tue, Jun 9, 2009 at 17:48, Hans Hagen wrote:
Mojca Miklavec wrote:
Hello Hans,
may I request removing \jobname.pgf when doing context/ctxtools --purgeall (in both mkii/mkiv)? That's a file that TikZ creates by default (similar to \jobname-mpgraph*, only serving a different purpose) and is only needed when a document is compiled on computer without tikz installed.
is this name configureable? can we turn it into something \jobname-temp.pgf or so? (as we do with the mp temp files) or maybe \jobname-pgfgraphic.pgf or so.
I don't believe that it's configurable (though it could be possible to send a request to Till Tantau). The code is just: \def\pgfutil@aux@read@hook{ \pgfutil@IfFileExists{\jobname.pgf}{\input \jobname.pgf\relax}{} \csname newwrite\endcsname\pgfutil@auxout \csname openout\endcsname\pgfutil@auxout\jobname.pgf } Is the main concern being afraid of removing some file with the same ending? Mojca
Mojca Miklavec wrote:
On Tue, Jun 9, 2009 at 17:48, Hans Hagen wrote:
Mojca Miklavec wrote:
Hello Hans,
may I request removing \jobname.pgf when doing context/ctxtools --purgeall (in both mkii/mkiv)? That's a file that TikZ creates by default (similar to \jobname-mpgraph*, only serving a different purpose) and is only needed when a document is compiled on computer without tikz installed. is this name configureable? can we turn it into something \jobname-temp.pgf or so? (as we do with the mp temp files) or maybe \jobname-pgfgraphic.pgf or so.
I don't believe that it's configurable (though it could be possible to send a request to Till Tantau). The code is just:
\def\pgfutil@aux@read@hook{ \pgfutil@IfFileExists{\jobname.pgf}{\input \jobname.pgf\relax}{} \csname newwrite\endcsname\pgfutil@auxout \csname openout\endcsname\pgfutil@auxout\jobname.pgf }
Is the main concern being afraid of removing some file with the same ending?
indeed; it's why i have the -mpgraph it would be handy if there was \def\pfgfilename{\jobname.pgf} or so, but for the moment i've just added the suffix to the remove list and we leave it to the user not to use the pgf suffix otherwise Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Khaled Hosny
-
Mojca Miklavec