SublimeText / LaTeXTools

LaTeX plugin for Sublime Text
https://latextools.readthedocs.io/
2.01k stars 365 forks source link

FileNotFoundError: [Errno2]... Can't create the log file #359

Open luciffer opened 10 years ago

luciffer commented 10 years ago

win 8.1 x86, mikTex 2.9 There was some problem with texify in my system, so I had to switch to latexmk. In previous version of Latextools, latexmk worked fine (with xelatex).

But in the new version, I don't know how to use latexmk. I change LateXTools.sublime-settings like this:

"builder": "traditional",
"builder_path": "",
"builder_settings" : {
        "windows" : {
                    "program" : "xelatex",
                    "command" :[
                            "latexmk", "-cd",
                            "-e", "\\$pdflatex = 'xelatex %O -interaction=nonstopmode -synctex=1 %S'",
                            "-silent",
                            "-f", "-pdf"
                            ]
            // See README or third-party documentation
        }
                             }

And LateXTools still "invoke texify", Is there anything wrong with my setting? Thanks

luciffer commented 10 years ago

OK, now the setting look like this

"builder_settings" : {
                    "command" :[
                            "latexmk", "-cd",
                            "-e", "\\$pdflatex = 'xelatex %O -interaction=nonstopmode -synctex=1 %S'",
                            "-silent",
                            "-f", "-pdf"
                            ]
        }

and Latextools now can use latexmk, but there is an error:

FileNotFoundError: [Errno2] No such file or directory: 'C:\\software\\test.log'

As I recall, when I used texify. there was same problem. What's wrong?

shouxi commented 10 years ago

maybe you should try to change the value of distro from "miktex" to "texlive" in LaTeX.sublime-settings file in the User directory.

luciffer commented 10 years ago

Maybe I should change the title...

luciffer commented 10 years ago

find another computer (win 7 sp1 x64,miktex 2.9),install latextools, create a minimal tex file that only contains English characters, compile with default setting, texify and pdflatex work well. Then add some Chinese words into the tex file, texify works well too, and as pdflatex can't handle Chinese characters properly. I have to use xelatex, then there is the problem,

chid commented 10 years ago

@luciffer You do what @shouxi said https://github.com/SublimeText/LaTeXTools/issues/359#issuecomment-37726038