5

I love preview-latex but it litters my directories with its temporary files. I've scanned the documentation of previewlatex, auctex, and the latex preview package but can't find a variable that lets me customize where it generates files :(

If I could shove that stuff in a build/ directory that'd be great. Anyone have an idea?

  • There is a variable called preview-temp-dirs with the docstring "List of top level temporary directories in use from preview. Any directory not in this list will be cleared out by preview on first use." – N.N. Feb 05 '12 at 11:29
  • I don't use auctex, but this question might be interesting: http://tex.stackexchange.com/questions/11123/prevent-pdflatex-from-writing-a-bunch-of-files – doncherry Feb 05 '12 at 11:41
  • refer to http://tex.stackexchange.com/questions/11123/prevent-pdflatex-from-writing-a-bunch-of-files – Ayman Elmasry Feb 05 '12 at 13:15
  • I know about pdflatex's output redirecting, but that doesn't solve the problem. There is no exposed interface (that I know of) to preview-latex's use of pdflatex, so I would have to monkey patch auctex in a number of places. I was hoping there was a better way that I missed :) – Christopher Monsanto Feb 05 '12 at 23:42
  • I made some progress on this but ended up giving up due to the amount of effort. If you grep for .prv in the preview-latex source, there are some functions that manipulate the cache filenames. Override these in your .emacs and it should be OK but YMMV. – Christopher Monsanto Aug 12 '12 at 02:25

1 Answers1

1

[Comment by OP converted to answer]

I know about pdfLaTeX's output redirecting, but that doesn't solve the problem. There is no exposed interface (that I know of) to preview-latex's use of pdfLaTeX, so I would have to monkey patch AUCTeX in a number of places. I was hoping there was a better way that I missed :) I made some progress on this but ended up giving up due to the amount of effort. If you grep for .prv in the preview-latex source, there are some functions that manipulate the cache filenames. Override these in your .emacs and it should be OK but YMMV

Joseph Wright
  • 259,911
  • 34
  • 706
  • 1,036