acmart
acmart copied to clipboard
Synctex do not go to the correct location on VSCode
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": {}
},