unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* AucTeX and doc-view-mode
@ 2008-09-12 17:39 David Hansen
  2008-09-13  7:45 ` Tassilo Horn
  0 siblings, 1 reply; 4+ messages in thread
From: David Hansen @ 2008-09-12 17:39 UTC (permalink / raw
  To: help-gnu-emacs

Hello,

Can I get AucTeX to use `doc-view-mode' (and if needed `revert-buffer')
to display the result?  I use Emacs and AucTeX from CVS if the matters.

David





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: AucTeX and doc-view-mode
  2008-09-12 17:39 AucTeX and doc-view-mode David Hansen
@ 2008-09-13  7:45 ` Tassilo Horn
  2008-09-13 12:50   ` David Hansen
  0 siblings, 1 reply; 4+ messages in thread
From: Tassilo Horn @ 2008-09-13  7:45 UTC (permalink / raw
  To: help-gnu-emacs

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

Hi David,

> Can I get AucTeX to use `doc-view-mode' (and if needed
> `revert-buffer') to display the result?  I use Emacs and AucTeX from
> CVS if the matters.

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.

I think it's much better to use preview-latex in that case.

Bye,
Tassilo
-- 
Richard Stallman never showers: he runs 'make clean'.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: AucTeX and doc-view-mode
  2008-09-13  7:45 ` Tassilo Horn
@ 2008-09-13 12:50   ` David Hansen
  2008-09-16  9:53     ` Tassilo Horn
  0 siblings, 1 reply; 4+ messages in thread
From: David Hansen @ 2008-09-13 12:50 UTC (permalink / raw
  To: help-gnu-emacs

On Sat, 13 Sep 2008 09:45:38 +0200 Tassilo Horn wrote:

> David Hansen <david.hansen@gmx.net> writes:
>
>> Can I get AucTeX to use `doc-view-mode' (and if needed
>> `revert-buffer') to display the result?  I use Emacs and AucTeX from
>> CVS if the matters.
>
> 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?  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.

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

David





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: AucTeX and doc-view-mode
  2008-09-13 12:50   ` David Hansen
@ 2008-09-16  9:53     ` Tassilo Horn
  0 siblings, 0 replies; 4+ messages in thread
From: Tassilo Horn @ 2008-09-16  9:53 UTC (permalink / raw
  To: help-gnu-emacs

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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-09-16  9:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-12 17:39 AucTeX and doc-view-mode David Hansen
2008-09-13  7:45 ` Tassilo Horn
2008-09-13 12:50   ` David Hansen
2008-09-16  9:53     ` Tassilo Horn

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 read-only IMAP folder(s) and NNTP newsgroup(s).