LaTeX Tweaks

Configuring your editor/viewer combination

Since it's quite a challenge to gather and combine the correct commands for forward and inverse search (on Windows) in a way that would not require to change the PDF viewer options permanently within the viewer, I provide some configuration instructions for various editors. To keep it short, this is just for various combinations of PDF viewers with LaTeX editors; other customization such as replacing BibTeX with biber should be straightforward. (You should make sure that synctex is enabled for this to work!)

  • TeXnicCenter and SumatraPDF
    • Path of Executable
      C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe -inverse-search "\"c:\Program Files (x86)\TeXnicCenter\TEXCNTR.EXE\" /ddecmd \"[goto('%f','%l')]\""
    • Project Output DDE Command
      with Server
      and Topic
    • Forward Search
      (the same as project output)
  • TeXnicCenter 2 and SumatraPDF
    (accepts the same settings as TeXniccenter)
  • TeXstudio and SumatraPDF, option "External PDF Viewer"
    "C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe" -reuse-instance "?am.pdf" -inverse-search """"c:\Program Files (x86)\TeXstudio\texstudio.exe""" """%%f""" -line %%l" -forward-search "?c:am.tex" @
  • TeXmaker and SumatraPDF, option "External Viewer"
    "C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe" -reuse-instance "%.pdf" -inverse-search "C:\Program Files (x86)\Texmaker\texmaker.exe %%f -line %%l" -forward-search "#.tex" @