Skip to content
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

Option --autosize doesn't work on windows when tempfile path is complicated #103

Open
wittiger opened this issue Aug 3, 2023 · 0 comments

Comments

@wittiger
Copy link

wittiger commented Aug 3, 2023

Hi,

the --autosize option doesnt work on windows when the path is complicated enough:

Debug file:
2023-08-03 16:20:17,692 dot2tex DEBUG Running command: latex -interaction=nonstopmode C:\Users\USERN~1\AppData\Local\Temp\dot2texyvzdrxix\dot2tex.tex 2023-08-03 16:20:18,165 dot2tex DEBUG stdout from latex b"This is pdfTeX, Version 3.141592653-2.6-1.40.25 (MiKTeX 23.5) (preloaded format=latex.fmt)\r\n restricted \\write18 enabled.\r\nentering extended mode\r\n! I can't find file "C:/Users/USERN".\r\n<to be read again>

Errors:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\USERN~1\\AppData\\Local\\Temp\\dot2texyvzdrxix\\dot2tex.log'

The ~ character seems to through something off.

Workaround: Set os environment variable TMPFILE to C:\temp (And create that directory if it does not exist)

Kind regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant