help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AucTeX and doc-view-mode


From: Tassilo Horn
Subject: Re: AucTeX and doc-view-mode
Date: Tue, 16 Sep 2008 11:53:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

David Hansen <david.hansen@gmx.net> writes:

Hi David,

>> I don't think that you really want to do that.  Doc-view recompiles
>> the whole document after it has changed.  And since its MD5 changed,
>> too, you'll get an additional cache folder in /tmp/doc-view<uid>/ for
>> any latex run.
>
> That's a doc-view deficiency, it could a dir named !path!to!file or
> similar.  Worth a bug report?

But how would doc-view know if the document has to be converted anew?
We could use such a dirname you suggested and add the md5 sum in a file.

The current implementation has the benefit that there will be no new
conversion if you have the document multiple times (or moved it to a new
location).

So both variants have benefits and drawbacks...

> I just noted that ~/tmp/doc-view/ is 500M.  Some access statistic that
> can be used to rm the long time not used directories would be nice
> too.

Yes, that could be nice.  But to get that right one would need access
timestamps.  AFAIK most users turn them off for their filesystem and I
don't know how portable this is anyway.

But a timestamp file could be added in the cache dir.

Do you have write access to the emacs CVS tree?  If yes it would be
great if you added an item about that to etc/TODO.

>> I think it's much better to use preview-latex in that case.
>
> It's not the same as seeing the document as it would come out of the
> printer.  Just think about pictures or the poor syllabication of LaTeX
> in non English languages.

Then I'd open the document and hit `r' (or `g') after each latex run.  I
guess you can automate that somehow.

Bye,
Tassilo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]