Now I am genreate the latex synctex file main.synctex.gz, is it possible to parse the file by myself? I want to pass the file path\line number\column number, to get the element in which page of pdf, and exactly position of element in pdf. I am using the rust language, and I did not found any package of any languge to parse the main.synctex.gz file. I also did not found the standard of main.synctex.gz.
why I want to parse the main.synctex.gz? because I am working a latex online editor, now everytime compile the latex project, the pdf will locate to the 1st page automatically.
- I want to remember the page number and the precisely (x,y) of pdf
- I want to navigate the pdf location from the source editor
- I still want to locate the source location from pdf viewer
I have searched from internet and found using synctex could do this job: https://www.overleaf.com/learn/how-to/How_to_jump_to_the_source_code_from_the_typeset_PDF_(SyncTeX)
that's why I want to do this job, my backend api was written by rust.