{"action":"created","issue":{"url":"https://api.github.com/repos/jgm/pandoc/issues/2108","labels_url":"https://api.github.com/repos/jgm/pandoc/issues/2108/labels{/name}","comments_url":"https://api.github.com/repos/jgm/pandoc/issues/2108/comments","events_url":"https://api.github.com/repos/jgm/pandoc/issues/2108/events","html_url":"https://github.com/jgm/pandoc/issues/2108","id":70854848,"number":2108,"title":"LaTeX reader throwing error on valid LaTeX","user":{"login":"pharpend","id":3221699,"avatar_url":"https://avatars.githubusercontent.com/u/3221699?v=3","gravatar_id":"","url":"https://api.github.com/users/pharpend","html_url":"https://github.com/pharpend","followers_url":"https://api.github.com/users/pharpend/followers","following_url":"https://api.github.com/users/pharpend/following{/other_user}","gists_url":"https://api.github.com/users/pharpend/gists{/gist_id}","starred_url":"https://api.github.com/users/pharpend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pharpend/subscriptions","organizations_url":"https://api.github.com/users/pharpend/orgs","repos_url":"https://api.github.com/users/pharpend/repos","events_url":"https://api.github.com/users/pharpend/events{/privacy}","received_events_url":"https://api.github.com/users/pharpend/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-04-25T05:03:33Z","updated_at":"2015-04-26T02:51:59Z","closed_at":null,"body":"I believe this is a resurfacing of #1866 .\r\n\r\n```\r\n$ pandoc lysa.ltx -f latex -t epub -o lysa.epub\r\npandoc: \r\nError at \"input\" (line 409, column 39):\r\nunexpected \"{\"\r\nexpecting letter or lf new-line\r\n\\ch{Answers to the exercises}\r\n                                      ^\r\n```\r\n\r\nI get the same thing when trying to convert to HTML or Markdown.\r\n\r\n## Reproduction instructions\r\n\r\n* Follow https://github.com/learnyou/lysa/blob/master/en/CONTRIBUTING.md to install TeXLive and clone my project.\r\n* Enter these commands\r\n        git submodule init && \r\n            git submodule update\r\n        cd en/book\r\n        ./lysabuild --sandbox\r\n        cd tmp\r\n        pandoc lysa.ltx -f latex -t epub -o lysa.epub\r\n\r\n* Watch it fail."},"comment":{"url":"https://api.github.com/repos/jgm/pandoc/issues/comments/96313346","html_url":"https://github.com/jgm/pandoc/issues/2108#issuecomment-96313346","issue_url":"https://api.github.com/repos/jgm/pandoc/issues/2108","id":96313346,"user":{"login":"lierdakil","id":7275622,"avatar_url":"https://avatars.githubusercontent.com/u/7275622?v=3","gravatar_id":"","url":"https://api.github.com/users/lierdakil","html_url":"https://github.com/lierdakil","followers_url":"https://api.github.com/users/lierdakil/followers","following_url":"https://api.github.com/users/lierdakil/following{/other_user}","gists_url":"https://api.github.com/users/lierdakil/gists{/gist_id}","starred_url":"https://api.github.com/users/lierdakil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lierdakil/subscriptions","organizations_url":"https://api.github.com/users/lierdakil/orgs","repos_url":"https://api.github.com/users/lierdakil/repos","events_url":"https://api.github.com/users/lierdakil/events{/privacy}","received_events_url":"https://api.github.com/users/lierdakil/received_events","type":"User","site_admin":false},"created_at":"2015-04-26T02:51:59Z","updated_at":"2015-04-26T02:51:59Z","body":"Looking at your filenames, you don't need curly braces at all, at least not with `pdflatex`. So you can safely remove those for the time being.\r\n```latex\r\n\\newcommand{\\answergraph}[1]{\\begin{center}\\inclgraph{#1}\\end{center}}\r\n```"}}