Skip to content

LaTeX reverse (backward) search not fully functional #5633

@Clstei

Description

@Clstei

SumatraPDF version

3.7.18446, pre-release 64bit is affected.

It looks like older release versions 3.6.1 and 3.5.2 work well.

Description

LaTeX reverse (backward) search does not work if the SYNCTEX file is compressed (with GZIP).

Sumatra-PDF issues a notification "No synchronisation info available"

Image

Reproduce

I prepared a test setup: InverseSearch.zip

  1. Configure Sumatra-PDF for reverse search. You can use this code for debugging what is called by Sumatra-PDF: cmd /c echo %f/%l/%c >> p:\sync.log
  2. Prepare the right SYNCTEX file, see below.
  3. Open my LaTeX-PDF file in Sumatra-PDF: InverseSearch.pdf
  4. Double click somewhere in PDF.
  5. Sumatra-PDF comes up with a warning message. I would expect that Sumatra evokes a LaTeX reverse search here. (The experimental code should write the file name in the sync.log file.)

In modern LaTeX the SYNCTEX file can be created with different options, compressed or uncompressed.

  • uncompressed (works with Sumatra-PDF 3.7.18446, pre-release): InverseSearch.UNCOMPRESSED.synctex
  • compressed .gz file (does not work with Sumatra-PDF 3.7.18446, pre-release): InverseSearch.GZIP.synctex.gz
  • compressed .syntex file (does not work with Sumatra-PDF 3.7.18446, pre-release) InverseSearch.COMPRESSED.synctex

I provided alternative SYNCTEX files for all these 3 cases. For testing you need to rename them to InverseSearch.synctex or InverseSearch.synctex.gz respectively.

With 3.7.18446, pre-release only the uncompressed SYNCTEX file works.

For me the Latex-Support of Sumatra-PDF is a very important feature. Although I cannot directly contribute to development I am willing to support the programmer(s) with LaTeX expertise. I can provide more LaTeX test files if desired or test other Sumatra beta versions. I even have a VisualStudio 2026 (and can use it).

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions