jlaurens / synctex

Synchronization for TeX
MIT License
64 stars 19 forks source link

Handling path names with special characters #78

Open cerja opened 6 months ago

cerja commented 6 months ago

Problem:

If the path to the synctex file (*.synctex.gz) contains non ASCII characters the synchronization between the compiled .pdf and source code is broken. This means that if the .tex file being worked on is in a folder, which name includes special characters, or indeed any upstream folder includes special characters, synchronization won't work. This seems to pertain to different combinations of multiple editors (TexWorks, TexStudio ...) and multiple LaTex distributions (MikTex, TeX Live ...).

This complicates things quite a lot for all non English speaking communities and would be greatly appreciated if it was resolved (renaming one folder is not a big problem, but renaming all upstream ones can break many other things).

If, however, this is not a direct deficiency of synctex, I apologize in advance.

jlaurens commented 6 months ago

Are you on windows?

cerja commented 6 months ago

Yes, I forgot to mention that.

jlaurens commented 6 months ago

If you have the synctex command line tool, you can try to typeset some foo.tex which full path contains non ascii characters, the you can try to execute

synctex.exe edit 1:2:3:foo.pdf

What is the output ?