You can use DDE commands from TeX and LaTeX editors to use Sumatra as a pre-viewer.

TeXnicCenter

Short instructions:
Configure viewer in output profiles.
  • Path of executable: C:\Program Files\SumatraPDF\SumatraPDF.exe on (or wherever you've installed SumatraPDF)
  • View project's output
    • DDE command: [Open("%bm.pdf",0,1,1)]
    • Server: SUMATRA
    • Topic: control
  • Forward Search
    • DDE command: [ForwardSearch("%bm.pdf","%Wc",%l,0,0,1)]
    • Server: SUMATRA
    • Topic: control
Some people reported better results when using %sbm instead of %bm in the above command.
  • Close document before running LaTeX: Do not close
  • To enable the inverse search, you also have to append to the LaTeX compiler arguments: -synctex=1

WinEdt, Emacs and Vim


suggest change to this page