{"action":"created","issue":{"url":"https://api.github.com/repos/aclements/latexrun/issues/13","labels_url":"https://api.github.com/repos/aclements/latexrun/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/aclements/latexrun/issues/13/comments","events_url":"https://api.github.com/repos/aclements/latexrun/issues/13/events","html_url":"https://github.com/aclements/latexrun/issues/13","id":47408298,"number":13,"title":"Incompatibility with minted","user":{"login":"matze","id":115270,"avatar_url":"https://avatars.githubusercontent.com/u/115270?v=3","gravatar_id":"","url":"https://api.github.com/users/matze","html_url":"https://github.com/matze","followers_url":"https://api.github.com/users/matze/followers","following_url":"https://api.github.com/users/matze/following{/other_user}","gists_url":"https://api.github.com/users/matze/gists{/gist_id}","starred_url":"https://api.github.com/users/matze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matze/subscriptions","organizations_url":"https://api.github.com/users/matze/orgs","repos_url":"https://api.github.com/users/matze/repos","events_url":"https://api.github.com/users/matze/events{/privacy}","received_events_url":"https://api.github.com/users/matze/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-10-31T15:44:03Z","updated_at":"2015-02-08T16:40:13Z","closed_at":"2015-02-08T16:40:13Z","body":"[minted](http://www.ctan.org/tex-archive/macros/latex/contrib/minted) is a package to highlight code snippets. It shells out and calls the Python program pygments to write some intermediate file. This file is not picked up correctly by latexrun, hence the following example fails to compile with `latexrun --latex-args=\"-shell-escape\" test.tex`:\r\n\r\n```latex\r\n\\documentclass{minimal}\r\n\\usepackage{minted}\r\n\r\n\\begin{document}\r\n  \\begin{minted}{latex}\r\n    \\documentclass{minimal}\r\n  \\end{minted}\r\n\\end{document}\r\n```\r\n\r\nCompiling with `latexrun --latex-args=\"-shell-escape\" -O . test.tex` is successful."},"comment":{"url":"https://api.github.com/repos/aclements/latexrun/issues/comments/73418624","html_url":"https://github.com/aclements/latexrun/issues/13#issuecomment-73418624","issue_url":"https://api.github.com/repos/aclements/latexrun/issues/13","id":73418624,"user":{"login":"aclements","id":2688315,"avatar_url":"https://avatars.githubusercontent.com/u/2688315?v=3","gravatar_id":"","url":"https://api.github.com/users/aclements","html_url":"https://github.com/aclements","followers_url":"https://api.github.com/users/aclements/followers","following_url":"https://api.github.com/users/aclements/following{/other_user}","gists_url":"https://api.github.com/users/aclements/gists{/gist_id}","starred_url":"https://api.github.com/users/aclements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aclements/subscriptions","organizations_url":"https://api.github.com/users/aclements/orgs","repos_url":"https://api.github.com/users/aclements/repos","events_url":"https://api.github.com/users/aclements/events{/privacy}","received_events_url":"https://api.github.com/users/aclements/received_events","type":"User","site_admin":false},"created_at":"2015-02-08T16:40:13Z","updated_at":"2015-02-08T16:40:13Z","body":"As a workaround for this problem, you can use \"-O .\" to put output in the source directory.  Other than that, this seems to be a fundamental limitation of latex's -output-directory flag.\r\n\r\nGiven the problems with -output-directory (as well as latex routinely overwriting its own output files), I have considered rewriting latexrun to act as a FUSE file system that could intercept all of latex's file system access.  That would solve this problem, but would also increase the complexity of latexrun and dramatically decrease its portability.\r\n\r\nI'm open to suggestions, but for now I'm sadly marking this as wontfix."}}