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?

5
  • 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 5 '12 at 11:29
  • I don't use auctex, but this question might be interesting: tex.stackexchange.com/questions/11123/… – doncherry Feb 5 '12 at 11:41
  • refer to tex.stackexchange.com/questions/11123/… – Ayman Elmasry Feb 5 '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 5 '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 2:25
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.