thehogfather / brackets-latex

Support for editing and compiling latex documents in brackets
24 stars 4 forks source link

First attempt to add xelatex for issue #2 #3

Closed weirdf0x closed 10 years ago

weirdf0x commented 10 years ago

This is my first attempt to add xelatex, additionally to the xetex option. The fix is not optimal, because, whether it compiles the file at all or compiles the file to pdf after that, happens quite randomly. I'm new to Brackets plugin development, so I don't know how to debug this stuff. It seems that it quite often ends in an infinite loop or something similar, because after the 'Please wait... ' message either nothing or an empty line is shown. Rarely the output of xetex command is shown with all the debug details. Perhaps you can spot the problem?

thehogfather commented 10 years ago

Turns out you were nearly there - the xelatex command (unline the xetex) can be run once directly to generate a pdf). For some reason xetex doesnt like this hence the two step process I was using to first generate an xdv file which is converted to pdf using xdvipdfmx. There is a related issue reported at tex.stackexchange