-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"! I can't find file" at latex compilation on Windows #4
Comments
Dear Casey, I dug further. The problems comes from the windows path short format (with ~): this is not supported when the pdflatex command is cast in LatexProject.run_pdflatex (see also: https://stackoverflow.com/questions/11420689/how-to-get-long-file-system-path-from-python-on-windows ) As usernames are rather long, this bug may affect most of Windows users... Best |
Thanks for opening this issue. I don't have access to a Windows machine to test this but I can give some pointers. Please let me know how you end up resolving this. Error messages starting with This line from the error catches my eye: |
Dear Casey, Thanks for your quick reply. My quick and dirty fix is inserting at line 102 of project.py:
This forces the Windows path to be in the right format. I don't think my coding is plateform independent. If you find a way... Finally, as I am your Windows beta tester... I suggest using pdftocairo instead of pdf2svg which I have not found for Windows (I assume pdftocairo does exactly the same thing?). This ends up by changing line 269 in convert to: Hope this helps a bit! |
Great. I think the best solution would be to write a helper function that checks the platform type (Windows vs. other) and does the correct conversion. Then it's easy to use for all calls of tempfile. I believe someone else previously requested pdftocairo but I would need to confirm they have equivalent output (especially with respect to unit scaling) before switching or supporting both. |
Dear Casey,
Thank you for providing latextools and drawSvg.
I have a functionnal install following the readme instructions:
Neverthless, when running the examples, latex compilation fails on my machine. Here is the result with the first example on the readme page:
I tried my best to find out if the temp directory and its files to be compiled are actually created or not. As everything is wiped out after execution, I could not figure out.
Any suggestion?
Best Regards
Arthur
The text was updated successfully, but these errors were encountered: