You can use
DDE commands from TeX and LaTeX editors to use Sumatra as a previewer.
notepad++ #
Launch SumatraPDF from notepad++ enabling forward and backward search:
"C:\Program files\SumatraPDF\SumatraPDF.exe" -forward-search "$(FULL_CURRENT_PATH)" $(CURRENT_LINE) -inverse-search "\"C:/Program Files/Notepad++/notepad++.exe\" \"%f\" -n%l" "$(CURRENT_DIRECTORY)"/"$(NAME_PART)".pdf
TexStudio #
Launch SumatraPDF from TeXStudio enabling forward and backward search:
"C:/Program Files/SumatraPDF/SumatraPDF.exe" -forward-search "?c:am.tex" @ -inverse-search "\"C:/Program Files (x86)/TeXstudio/texstudio.exe\" \"%%f\" -line %%l" "?am.pdf"
TeXnicCenter #
Short instructions:
- 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 #