Cygwin support #4263
edemaine
started this conversation in
Show off settings.json
Cygwin support
#4263
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been using LaTeX Workshop with Cygwin texlive for some time. Recently (a month ago?) the way that SyncTeX works changed a little, so I had to update my
settings.json
. I thought I'd share in case anyone else wants to live the dangerous life of LaTeX Workshop + Cygwin (which is officially unsupported).The main ideas in this config:
-outdir=\"
cygpath "%OUTDIR%"\" \"
cygpath -u "%DOC%"\"
converts Windows paths into Unix paths when callingpdflatex
orlatexmk
| sed 's#/cygdrive/\\([a-zA-Z]\\)/#\\1:/#g'
converts Unix paths in LaTeX's output into Windows paths (though they have forward slashes instead of backslashes, VSCode is generally OK with this)(gunzip -kf %DOCFILE%.synctex.gz && sed 's#/cygdrive/\\([a-zA-Z]\\)/#\\1:/#g;s#/#\\\\\\\\#g' <%DOCFILE%.synctex | gzip -c - >%DOCFILE%.synctex.gz ; rm -f %DOCFILE%.synctex)
modifies the.synctex.gz
file to use Windows paths instead of Unix paths so thatsynctex
works when given a Windows path. (It would be nice if I could override the call tosynctex
, but I believe the arguments are not configurable at this point.) This is the part that changed recently: I had to convert forward slashes to backslashes forsynctex
to be happy.Full config of
latex-workshop.latex.tools
:Beta Was this translation helpful? Give feedback.
All reactions