{"action":"created","issue":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/2134","labels_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/2134/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/2134/comments","events_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/2134/events","html_url":"https://github.com/sphinx-doc/sphinx/issues/2134","id":119007577,"number":2134,"title":"Figure caption with reference causes latex build error","user":{"login":"hagenw","id":173624,"avatar_url":"https://avatars.githubusercontent.com/u/173624?v=3","gravatar_id":"","url":"https://api.github.com/users/hagenw","html_url":"https://github.com/hagenw","followers_url":"https://api.github.com/users/hagenw/followers","following_url":"https://api.github.com/users/hagenw/following{/other_user}","gists_url":"https://api.github.com/users/hagenw/gists{/gist_id}","starred_url":"https://api.github.com/users/hagenw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hagenw/subscriptions","organizations_url":"https://api.github.com/users/hagenw/orgs","repos_url":"https://api.github.com/users/hagenw/repos","events_url":"https://api.github.com/users/hagenw/events{/privacy}","received_events_url":"https://api.github.com/users/hagenw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sphinx-doc/sphinx/labels/latex","name":"latex","color":"FFFFFF"}],"state":"open","locked":false,"assignee":{"login":"tk0miya","id":748828,"avatar_url":"https://avatars.githubusercontent.com/u/748828?v=3","gravatar_id":"","url":"https://api.github.com/users/tk0miya","html_url":"https://github.com/tk0miya","followers_url":"https://api.github.com/users/tk0miya/followers","following_url":"https://api.github.com/users/tk0miya/following{/other_user}","gists_url":"https://api.github.com/users/tk0miya/gists{/gist_id}","starred_url":"https://api.github.com/users/tk0miya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tk0miya/subscriptions","organizations_url":"https://api.github.com/users/tk0miya/orgs","repos_url":"https://api.github.com/users/tk0miya/repos","events_url":"https://api.github.com/users/tk0miya/events{/privacy}","received_events_url":"https://api.github.com/users/tk0miya/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/milestones/13","html_url":"https://github.com/sphinx-doc/sphinx/milestones/1.3.4","labels_url":"https://api.github.com/repos/sphinx-doc/sphinx/milestones/13/labels","id":1439120,"number":13,"title":"1.3.4","description":"","creator":{"login":"shimizukawa","id":151623,"avatar_url":"https://avatars.githubusercontent.com/u/151623?v=3","gravatar_id":"","url":"https://api.github.com/users/shimizukawa","html_url":"https://github.com/shimizukawa","followers_url":"https://api.github.com/users/shimizukawa/followers","following_url":"https://api.github.com/users/shimizukawa/following{/other_user}","gists_url":"https://api.github.com/users/shimizukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shimizukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimizukawa/subscriptions","organizations_url":"https://api.github.com/users/shimizukawa/orgs","repos_url":"https://api.github.com/users/shimizukawa/repos","events_url":"https://api.github.com/users/shimizukawa/events{/privacy}","received_events_url":"https://api.github.com/users/shimizukawa/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":11,"state":"open","created_at":"2015-12-02T08:31:18Z","updated_at":"2015-12-19T23:44:04Z","due_on":"2016-01-03T15:00:00Z","closed_at":null},"comments":6,"created_at":"2015-11-26T09:50:26Z","updated_at":"2015-12-20T09:12:04Z","closed_at":null,"body":"If you include references in your figure like\r\n\r\n```rst\r\n.. figure:: img/example.png\r\n\r\n    This is the figure caption with a reference to [AuthorYear]_.\r\n\r\n.. [AuthorYear] Author, Title, Year\r\n```\r\n\r\nThe latexpdf builds fails with:\r\n```\r\n<use example.png> <use example.png>)\r\n! Incomplete \\iffalse; all text was ignored after line 6576.\r\n<inserted text> \r\n                \\fi\r\n```\r\n\r\nThis issue maybe related to #2118 and/or #2094."},"comment":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/comments/166091923","html_url":"https://github.com/sphinx-doc/sphinx/issues/2134#issuecomment-166091923","issue_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/2134","id":166091923,"user":{"login":"tk0miya","id":748828,"avatar_url":"https://avatars.githubusercontent.com/u/748828?v=3","gravatar_id":"","url":"https://api.github.com/users/tk0miya","html_url":"https://github.com/tk0miya","followers_url":"https://api.github.com/users/tk0miya/followers","following_url":"https://api.github.com/users/tk0miya/following{/other_user}","gists_url":"https://api.github.com/users/tk0miya/gists{/gist_id}","starred_url":"https://api.github.com/users/tk0miya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tk0miya/subscriptions","organizations_url":"https://api.github.com/users/tk0miya/orgs","repos_url":"https://api.github.com/users/tk0miya/repos","events_url":"https://api.github.com/users/tk0miya/events{/privacy}","received_events_url":"https://api.github.com/users/tk0miya/received_events","type":"User","site_admin":false},"created_at":"2015-12-20T09:12:04Z","updated_at":"2015-12-20T09:12:04Z","body":"@xuhdev Sorry for late response. I'd just read your suggestion now.\r\n\r\nAt 32b483d, I removed `\\phantomsection` from captions.\r\nIn your suggestion, the macro will not be removed, but be invalidated.\r\n\r\nI think there is no differences between these solutions.\r\nPlease tell me what is your solution better than current implementation."}}