{"action":"created","issue":{"url":"https://api.github.com/repos/lervag/vimtex/issues/153","labels_url":"https://api.github.com/repos/lervag/vimtex/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/lervag/vimtex/issues/153/comments","events_url":"https://api.github.com/repos/lervag/vimtex/issues/153/events","html_url":"https://github.com/lervag/vimtex/issues/153","id":68293915,"number":153,"title":"vimtex does not compile in Windows 8","user":{"login":"IbnSaeed","id":75794,"avatar_url":"https://avatars.githubusercontent.com/u/75794?v=3","gravatar_id":"","url":"https://api.github.com/users/IbnSaeed","html_url":"https://github.com/IbnSaeed","followers_url":"https://api.github.com/users/IbnSaeed/followers","following_url":"https://api.github.com/users/IbnSaeed/following{/other_user}","gists_url":"https://api.github.com/users/IbnSaeed/gists{/gist_id}","starred_url":"https://api.github.com/users/IbnSaeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IbnSaeed/subscriptions","organizations_url":"https://api.github.com/users/IbnSaeed/orgs","repos_url":"https://api.github.com/users/IbnSaeed/repos","events_url":"https://api.github.com/users/IbnSaeed/events{/privacy}","received_events_url":"https://api.github.com/users/IbnSaeed/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-04-14T07:46:24Z","updated_at":"2015-04-14T10:33:07Z","closed_at":"2015-04-14T10:33:07Z","body":"Hello\r\n\r\nI have perl installed with Starberryperl and i also have TexLive 2014 which comes with latexmk.\r\n\r\nWhen i do :VimtexCompile it shows\r\n```latexmk compile: started continuous mode```\r\n\r\nBut in the output directory, nothing gets output, no pdf or auxiliary files etc.\r\n\r\nBut when i run ```latexmk.exe -pvc``` in windows command prompt, it succesfully compiles the same latex file and produces the pdf with continuous mode\r\n\r\nI tried the same file in TexStudio and it compiles there as well.\r\n\r\nbut vimtex does not output at errors at all, so i dont know what issues it is facing. Vimtex is the only plugin i am using in vim to work with latex. \r\n\r\nHere is my .vimrc code for vimtex\r\n```\r\n\" =======================================\r\n\" vimtex {\r\n\" =======================================\r\n\r\n\" Set default tex file format to latex\r\nlet g:tex_flavor = \"latex\"\r\n\r\nlet g:vimtex_enabled = 1\r\nlet g:vimtex_view_enabled = 1\r\nlet g:vimtex_fold_enabled = 0\r\nlet g:vimtex_fold_preamble = 0\r\nlet g:vimtex_indent_enabled = 1\r\nlet g:vimtex_view_method = 'sumatrapdf'\r\nlet g:vimtex_latexmk_continuous = 1\r\nlet g:vimtex_latexmk_options ='xelatex -shell-escape -synctex=1 -src-specials -interaction=nonstopmode $*'\r\n\r\nlet g:vimtex_view_sumatrapdf_viewer = 'SumatraPDF -reuse-instance -inverse-search -a +\\%l \\%f\\\"\"'\r\n\r\n\" }\r\n```\r\n\r\nand here are the contents of ~/.latexmkrc\r\n\r\n```\r\n$pdf_mode = 1;\r\n$pdflatex = \"xelatex --shell-escape -src-specials -synctex=1 -interaction=nonstopmode %O %S\";\r\n$recorder = 1;\r\n$pdf_previewer = \"SumatraPDF -reuse-instance -inverse-search -a %O %S\";\r\n```"},"comment":{"url":"https://api.github.com/repos/lervag/vimtex/issues/comments/92760297","html_url":"https://github.com/lervag/vimtex/issues/153#issuecomment-92760297","issue_url":"https://api.github.com/repos/lervag/vimtex/issues/153","id":92760297,"user":{"login":"lervag","id":998898,"avatar_url":"https://avatars.githubusercontent.com/u/998898?v=3","gravatar_id":"","url":"https://api.github.com/users/lervag","html_url":"https://github.com/lervag","followers_url":"https://api.github.com/users/lervag/followers","following_url":"https://api.github.com/users/lervag/following{/other_user}","gists_url":"https://api.github.com/users/lervag/gists{/gist_id}","starred_url":"https://api.github.com/users/lervag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lervag/subscriptions","organizations_url":"https://api.github.com/users/lervag/orgs","repos_url":"https://api.github.com/users/lervag/repos","events_url":"https://api.github.com/users/lervag/events{/privacy}","received_events_url":"https://api.github.com/users/lervag/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T10:33:07Z","updated_at":"2015-04-14T10:33:07Z","body":"Thanks for your input, @lahwaacz!\r\n\r\n@IbnSaeed To clarify, the option `g:vimtex_latexmk_options` is passed directly to `latexmk`. So you should rather have used something like the following:\r\n```vimL\r\nlet g:vimtex_latexmk_options ='-pdflatex=\"xelatex -shell-escape -synctex=1 -src-specials -interaction=nonstopmode $*\"'\r\n```\r\nNote that I did not test the above, so there is probably some escaping issue. However, since you already specify this in your `.latexmkrc` file, it is not necessary to add it to your `vimrc` file. And in that regard I'm glad to hear that the problem is solved.\r\n\r\nRegarding the speed, I think @lahwaacz is right that it is slow much because `latexmk` is very conservative and insists on compiling several times. This is particularly noticable on large documents. However, it does also mean that the document is (almost) always properly compiled. Personally I'm fine with this, although I would also be happy if we could find a way to speed things up! If you have any ideas, please feel free to open a new issue or pull request.\r\n\r\nNote also that `vim-latex-live-preview` uses an autocommand to compile the document \"in real time\", that is, whenever you leave insert mode (or something like that). `vimtex` through `latexmk` only compiles after each write to file.\r\n\r\nAlso thanks for your kind words about the plugin! :)\r\n\r\nPS! I'm closing this, as it seems to resolved."}}