ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: [t-vim] Line numbers
Date: Sat, 26 Feb 2011 18:24:33 -0500 (EST)	[thread overview]
Message-ID: <alpine.LNX.2.01.1102261810260.3354@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <20110223175454.610807d7@glyph>

On Wed, 23 Feb 2011, Marco wrote:

> context --purgeall filename
>
> should remove all temporary files belonging to the document like
>
> filename-externalfilter-CON-0.tmp     % not removed
> filename-externalfilter-CON-0.tmp.md5 % not removed
> filename-externalfilter-CON-0.vimout  % not removed
>
> So after the project is done one can run context --purgeall filename to get a
> clean directory structure without having to archive 30 temporary files.

I don't know how to implement this functionality and still provide a 
working pdf. To save time, t-vim (actually t-filter with continue=yes) 
runs the external filter only in the first run; in the subsequent runs the 
cached file is used. So, if I want to delete the temporary files, they 
must be deleted in the last run. Right now, there is no means of detecting 
the last run in MkIV.

In MkII, we can force a final run with --final, but there is no means to 
detect that run. Even if the mode could be detected, asking context to 
delete temporary files forces another run, so the attachments will be 
missing in the final run.

I am happy to provide the 'purge temp files' as a MkIV only feature, but I 
don't know how to force (and detect) a final run in MkIV.

Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  parent reply	other threads:[~2011-02-26 23:24 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-19 14:56 Marco
2011-02-22  1:10 ` Aditya Mahajan
2011-02-22  9:15   ` Marco
2011-02-22 19:26     ` Aditya Mahajan
2011-02-23 10:19       ` Marco
2011-02-23 15:21         ` Aditya Mahajan
2011-02-23 15:43           ` Marco
2011-02-23 16:16             ` Aditya Mahajan
2011-02-23 16:54               ` Marco
2011-02-23 17:49                 ` Aditya Mahajan
2011-02-23 18:27                   ` Marco
2011-02-23 19:39                     ` Aditya Mahajan
2011-02-25 12:08                 ` Hans Hagen
2011-02-26 23:24                 ` Aditya Mahajan [this message]
2011-02-27 17:20                   ` Marco
2011-02-27 17:41                     ` Aditya Mahajan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LNX.2.01.1102261810260.3354@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).