Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
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 Answer 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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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