{"action":"opened","issue":{"url":"https://api.github.com/repos/agda/agda/issues/1832","repository_url":"https://api.github.com/repos/agda/agda","labels_url":"https://api.github.com/repos/agda/agda/issues/1832/labels{/name}","comments_url":"https://api.github.com/repos/agda/agda/issues/1832/comments","events_url":"https://api.github.com/repos/agda/agda/issues/1832/events","html_url":"https://github.com/agda/agda/issues/1832","id":132963273,"number":1832,"title":"Insufficient indentation in LaTeX-rendered Agda code","user":{"login":"andreasabel","id":1155218,"avatar_url":"https://avatars.githubusercontent.com/u/1155218?v=3","gravatar_id":"","url":"https://api.github.com/users/andreasabel","html_url":"https://github.com/andreasabel","followers_url":"https://api.github.com/users/andreasabel/followers","following_url":"https://api.github.com/users/andreasabel/following{/other_user}","gists_url":"https://api.github.com/users/andreasabel/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasabel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasabel/subscriptions","organizations_url":"https://api.github.com/users/andreasabel/orgs","repos_url":"https://api.github.com/users/andreasabel/repos","events_url":"https://api.github.com/users/andreasabel/events{/privacy}","received_events_url":"https://api.github.com/users/andreasabel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/agda/agda/labels/latex","name":"latex","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-11T12:41:36Z","updated_at":"2016-02-11T12:41:36Z","closed_at":null,"body":"```latex\r\n\\documentclass{article}\r\n\\usepackage{latex/agda}\r\n\r\n\\begin{document}\r\n\\begin{code}\r\nrecord R : Set₁ where\r\n  field VeryLongFieldNameForSomethingAsTrivialAsFunctor :\r\n          Set → Set\r\n\\end{code}\r\n\\end{document}\r\n```\r\nThis generates the attached PDF.\r\n[IndentingLatex.pdf](https://github.com/agda/agda/files/126312/IndentingLatex.pdf)\r\n\r\nIf someone typed that into Agda, he'd get a parse error, since `field` is a layout keyword and the type of the field is not sufficiently indented.\r\n\r\nI guess `polytable` is to be blamed for this.  The generated LaTeX is fine:\r\n```latex\r\n\\begin{code}%\r\n\\>\\AgdaKeyword{record} \\AgdaRecord{R} \\AgdaSymbol{:} \\AgdaPrimitiveType{Set₁} \\AgdaKeyword{where}\\<%\r\n\\\\\r\n\\>[0]\\AgdaIndent{2}{}\\<[2]%\r\n\\>[2]\\AgdaKeyword{field} \\AgdaField{VeryLongFieldNameForSomethingAsTrivialAsFunctor} \\AgdaSymbol{:}\\<%\r\n\\\\\r\n\\>[2]\\AgdaIndent{10}{}\\<[10]%\r\n\\>[10]\\AgdaPrimitiveType{Set} \\AgdaSymbol{→} \\AgdaPrimitiveType{Set}\\<%\r\n\\end{code}\r\n```"}}