{"action":"created","issue":{"url":"https://api.github.com/repos/jgm/pandoc/issues/1833","labels_url":"https://api.github.com/repos/jgm/pandoc/issues/1833/labels{/name}","comments_url":"https://api.github.com/repos/jgm/pandoc/issues/1833/comments","events_url":"https://api.github.com/repos/jgm/pandoc/issues/1833/events","html_url":"https://github.com/jgm/pandoc/issues/1833","id":52615703,"number":1833,"title":"Lualatex engine fails, ignores output directory","user":{"login":"kapep","id":516111,"avatar_url":"https://avatars.githubusercontent.com/u/516111?v=3","gravatar_id":"","url":"https://api.github.com/users/kapep","html_url":"https://github.com/kapep","followers_url":"https://api.github.com/users/kapep/followers","following_url":"https://api.github.com/users/kapep/following{/other_user}","gists_url":"https://api.github.com/users/kapep/gists{/gist_id}","starred_url":"https://api.github.com/users/kapep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kapep/subscriptions","organizations_url":"https://api.github.com/users/kapep/orgs","repos_url":"https://api.github.com/users/kapep/repos","events_url":"https://api.github.com/users/kapep/events{/privacy}","received_events_url":"https://api.github.com/users/kapep/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jgm/pandoc/labels/bug","name":"bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-12-22T02:51:36Z","updated_at":"2015-04-20T22:05:42Z","closed_at":null,"body":"When using the lualatex engine I get this error: `Error producing PDF from TeX source`\r\n\r\nI've used following command with a very simple test file. The pdflatex and xelatex engines are working fine.\r\n\r\n    >pandoc -f markdown -t latex --latex-engine=lualatex -o foo.pdf test.md\r\n\r\nIt seems to ignore the temporary output directory and creates the files `input.aux` `input.log` `input.out` and `input.pdf ` in the current directory.\r\n\r\nIt might be an issue of lualatex. For now I've used this workaround: Create and use `lulatex.cmd` as engine which moves the generated file to the temp directory:\r\n\r\n    @echo off\r\n    \"C:\\Program Files (x86)\\MiKTeX 2.9\\miktex\\bin\\lualatex.exe\" %*\r\n    move input.aux %5\r\n    move input.log %5\r\n    move input.out %5\r\n    move input.pdf %5\r\n\r\n\r\nSystem: pandoc 1.13.2, LuaLaTeX, Version beta-0.76.0-2013062820  (MiKTeX 2.9) (rev 4627), Windows 8.1"},"comment":{"url":"https://api.github.com/repos/jgm/pandoc/issues/comments/94580365","html_url":"https://github.com/jgm/pandoc/issues/1833#issuecomment-94580365","issue_url":"https://api.github.com/repos/jgm/pandoc/issues/1833","id":94580365,"user":{"login":"jgm","id":3044,"avatar_url":"https://avatars.githubusercontent.com/u/3044?v=3","gravatar_id":"","url":"https://api.github.com/users/jgm","html_url":"https://github.com/jgm","followers_url":"https://api.github.com/users/jgm/followers","following_url":"https://api.github.com/users/jgm/following{/other_user}","gists_url":"https://api.github.com/users/jgm/gists{/gist_id}","starred_url":"https://api.github.com/users/jgm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgm/subscriptions","organizations_url":"https://api.github.com/users/jgm/orgs","repos_url":"https://api.github.com/users/jgm/repos","events_url":"https://api.github.com/users/jgm/events{/privacy}","received_events_url":"https://api.github.com/users/jgm/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T22:05:42Z","updated_at":"2015-04-20T22:05:42Z","body":"Yes, a log would be great.  I only have a minimal Windows\nsetup for building pandoc binaries, so it's hard for me to\ntest effectively.\n"}}