SyncTeX-js
SyncTeX is a new method in TeXLive 2008 for enabling synchronization between source TeX files and the resulting PDF file.
This repository contains a JavaScript implementation of for SyncTeX. It has been originally developed for \BlueLaTex, an open-source LaTeX editor for the Web.
Output
"offset": "x": 0 "y": 0 "version": "1" "files": "1": "path": "/home/thomas/blueData/papers/x4dcc87de752e4b86/./main.tex" "name": "main.tex" "2": "path": "/usr/share/texlive/texmf-dist/tex/latex/base/article.cls" "name": "article.cls" "pages": "1": "page": 1 // page number "blocks": "type": "vertical" "parent": "<ref to parent>" "fileNumber": 1 "file": "<ref to file>" "line": 27 "left": 7199998905471669 "bottom": 7651950023836396 "width": 48330710519146953 "height": 6931950133289229 "depth": 0 "blocks": "type": "vertical" "parent": "<ref to parent>" "fileNumber": 1 "file": "<ref to file>" "line": 27 "left": 5669290392959994 "bottom": 7651950023836396 "width": 4986141903165863 "height": 7453638668226573 "depth": 0 "blocks": ... "elements": ... "page": 1 "elements": "page": 1 "type": "page" "blockNumberLine": "main.tex": // file name "20": // line number "1": // block in page // element in the line "type": "k" "parent": "<ref to parent>" "fileNumber": 1 "file": "<ref to file>" "line": 27 "left": 5553070942461862 "bottom": 7651950023836396 "height": 639113334760274 "width": 2468170356037905 "page": 1 "hBlocks": // all horizontal block of the document "numberPages": 1