Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synctex do not go to the correct location on VSCode #433

Open
czhang03 opened this issue Jun 9, 2021 · 0 comments
Open

Synctex do not go to the correct location on VSCode #433

czhang03 opened this issue Jun 9, 2021 · 0 comments

Comments

@czhang03
Copy link

czhang03 commented Jun 9, 2021

Hi I am using vscode and Latex-Workshop, and noticed that synctex do not go to the correct place on large files.

I find out that the synctex from PDF consistently points towards a later part in the file, and synctex from file, consistently points towards an earlier part of the PDF.

This effect became worse at later part of the file, for a 20-page-ish document, the difference on the later part of the file can be as large as 1 single page difference, but for the difference at 4 pages, it would be around 1 to 2 lines.

Here is the acmart setting I use:

\documentclass[acmsmall]{acmart}\settopmatter{}

And I have not imported any other geometry packages or changed any spacing property.

Here is my latexmk build setting in vscode:

       {
            "name": "latexmk",
            "command": "latexmk",
            "args": [
                "-synctex=1",
                "-interaction=nonstopmode",
                "-file-line-error",
                "-pdf",
                "-outdir=%OUTDIR%",
                "-aux-directory=%OUTDIR%/aux_files",
                "%DOC%"
            ],
            "env": {}
        },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant