synctex icon indicating copy to clipboard operation
synctex copied to clipboard

Handling path names with special characters

Open cerja opened this issue 11 months ago • 3 comments

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.

cerja avatar Mar 10 '24 17:03 cerja

Are you on windows?

jlaurens avatar Mar 11 '24 00:03 jlaurens

Yes, I forgot to mention that.

cerja avatar Mar 11 '24 16:03 cerja

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 ?

jlaurens avatar Mar 11 '24 19:03 jlaurens