Sign up ×
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 am using the MiKTeX + WinEdt for my texing, and every time after click 'texify' WinEdt will automatically open the DVI file for me to preview. Then I usually edit the .tex file and compile again. The thing is, after I am done editing and want to 'texify' + 'preview' the new file, the old DVI window from Yap is no longer useful to me. Instead of manually close it every time, I'd like to configure WinEdt so it will automatically close the current DVI window before open a new one for me. I think this should be pretty simple for some TeX gurus, any help please?

share|improve this question
I edited your post to reflect you're using WinEdt and not WinEdit. If this is incorrect, edit or roll back as needed. – Werner Oct 23 '11 at 2:12
Yes you are right, thanks! – Ying Oct 23 '11 at 2:16
In your yap window, you can simply refresh the current .dvi file by pressing F5, no need to close and re-open. – cmhughes Oct 23 '11 at 4:17

2 Answers 2

You can use the --single-instance or -1 command line switch, this will prevent YAP from opening a new window ;)

share|improve this answer

If you are using PDF as a the preview you can use SumatraPDF which allows amazing features like inverse and forward searches from WinEdt and the viewer. Also it doesnt lock the PDF file unlike Acrobat which allows refresh of PDF on re-compile. More tips are mentioned in WinEdt's quick guide -

share|improve this answer
Welcome to TeX.SE! In the question the op asked explicitly for DVI. I'm not sure your answer can help him ... – Kurt Sep 1 at 22:52
Hi @Kurt, as PDF is more prevalent these days compared to DVI, I started answering with an If clause. As this was asked way long back, this can be useful for people who land here for similar solutions! – Nitin Sep 2 at 23:43

Your Answer


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.