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: Wed, 23 Feb 2011 11:16:32 -0500 (EST)	[thread overview]
Message-ID: <alpine.LNX.2.01.1102231111110.18794@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <20110223164302.5fe84500@glyph>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1733 bytes --]

On Wed, 23 Feb 2011, Marco wrote:

>> So, the easiest solution is to move (or perhaps simlink) the file
>> to the temporary directory. Then you can include the file tmp/t.tex and
>> the md5 hash will be created in the tmp directory.
>
> It will probably work, but is not a nice solution in my opinion. It looks
> strange that the document includes files from the tmp directory. From a tmp
> directory I expect to be able to delete the content without any effects.

I do not make that assumption in t-vim. Currently there is no way to 
specify the output directory to mtxrun --ifchanged. So, the only way that 
I can implement this feature is to either manually copy the input file, or 
manually copy the md5 file. I do not think that either of these options is 
worth the trouble.

>>> Is it possible to convince the context script to remove the temporary
>>> stuff when called with the --purgeall option?
>>
>> I will look into that. I guess that the easiest way out is that, instead
>> of using .vimout extension, I use .tmp extension. Then, all the temporary
>> files will be removed by --purgeall.
>
> I don't think so. AFAIK --purgeall only deletes .tmp files with the basename
> as the document itself.
>
> I think it would make sense to convince --purgeall to be more grabby and to
> remove all .tmp files in the working dir + all files in the »directory« dir
> (here tmp). But I'm not sure about possible displeasing side effects, though.

I am not sure what you want. Do you want

context --purge filename

to remove all the temp files that t-vim creates, or do you want

context --purgeall

to delete all the files created by t-vim that reside in the current 
directory?

Aditya

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2011-02-23 16:16 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 [this message]
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
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.1102231111110.18794@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).