Sumatra PDF Automatic Forward Search

Ertugrul
2011-03-08
2012-10-17
  • Ertugrul
    Ertugrul
    2011-03-08

    I have decided to use SumatraPDF instead of the build-in pdf viewer of
    texmaker till Benito implements continous scrolling for texmaker's viewer.

    I have succesfully configured tmx as

    Enter this command to the PdfLaTeX cmd field in Options>Configure>Commands:
    pdflatex -interaction=nonstopmode -synctex=-1 "?am.tex"

    Enter this command to the PDF Viewer cmd field in Options>Configure>Commands:
    "G:/Program Files/SumatraPDF/SumatraPDF.exe" -reuse-instance -inverse-search
    """"G:\installed\latex\TexMakerX\texmakerx.exe""" """%%f""" -line %%l" %.pdf

    And this one in the custom tools:
    dde://SUMATRA/control/

    Is it possible to have automatic forward searching for SumatraPDF (that is
    with quick build, the place where cursor is automaticaly highlighted in pdf)
    as in viewer of texmakerX.

     
  • Ertugrul
    Ertugrul
    2011-03-10

    I have just discovered that this possible my defining the following for quick
    build:

    pdflatex -interaction=nonstopmode -synctex=-1 "?am.tex" | dde://C:/Program
    Files/SumatraPDF/SumatraPDF.exe:SUMATRA/control/

    By pressing F1, it automatically opens SumatraPDF (if it is not running, if it
    is running no problem), and highlights the corresponding part. Forward and
    reverse searches working perfectly :)

    Thanks tmx and sumatrapdf