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?

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

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


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 - http://www.winedt.com/doc/QuickGuide.pdf


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.