{"action":"created","issue":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/2706","repository_url":"https://api.github.com/repos/sphinx-doc/sphinx","labels_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/2706/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/2706/comments","events_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/2706/events","html_url":"https://github.com/sphinx-doc/sphinx/issues/2706","id":161369496,"number":2706,"title":"latex: the captions of code blocks inside tables are ignored","user":{"login":"jfbu","id":2589111,"avatar_url":"https://avatars.githubusercontent.com/u/2589111?v=3","gravatar_id":"","url":"https://api.github.com/users/jfbu","html_url":"https://github.com/jfbu","followers_url":"https://api.github.com/users/jfbu/followers","following_url":"https://api.github.com/users/jfbu/following{/other_user}","gists_url":"https://api.github.com/users/jfbu/gists{/gist_id}","starred_url":"https://api.github.com/users/jfbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfbu/subscriptions","organizations_url":"https://api.github.com/users/jfbu/orgs","repos_url":"https://api.github.com/users/jfbu/repos","events_url":"https://api.github.com/users/jfbu/events{/privacy}","received_events_url":"https://api.github.com/users/jfbu/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":null,"milestone":null,"comments":1,"created_at":"2016-06-21T07:46:04Z","updated_at":"2016-06-21T17:12:42Z","closed_at":null,"body":"Test:\r\n\r\n```rst\r\n.. list-table::\r\n\r\n\r\n   * - .. code-block:: python\r\n          :caption: XXX\r\n\r\n          1+1\r\n\r\n     - .. code-block:: python\r\n          :caption: YYY\r\n         \r\n          1+1\r\n          2+2\r\n          3+3\r\n\r\n.. cssclass:: longtable\r\n\r\n+-----------------------+-----------------------+\r\n| **literalblock**      |                       |\r\n+-----------------------+-----------------------+\r\n|.. code-block:: python | .. code-block:: python|\r\n|   :caption: WWW       |    :caption: ZZZ      |\r\n|                       |                       |\r\n|   1+1                 |    1+1                |\r\n|                       |    2+2                |\r\n+-----------------------+-----------------------+\r\n\r\n.. code-block:: python\r\n   :caption: UUU\r\n\r\n   1+1\r\n```\r\n\r\nproduces (tested both on stable and master branches) via `make latexpdf`:\r\n\r\n![capture d ecran 2016-06-21 a 09 34 56](https://cloud.githubusercontent.com/assets/2589111/16221575/da443850-3793-11e6-8190-e3db10f5175c.png)\r\n\r\nIf using PR #2704, this becomes\r\n\r\n![capture d ecran 2016-06-21 a 09 36 01](https://cloud.githubusercontent.com/assets/2589111/16221592/f5b54a8e-3793-11e6-9289-1d95b2e5a109.png)\r\n\r\nThe hyperlink targets work as one can test. Things are not perfect, for example `:linenos:` works but the line numbers by necessity appear inside adjacent cell."},"comment":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/comments/227507588","html_url":"https://github.com/sphinx-doc/sphinx/issues/2706#issuecomment-227507588","issue_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/2706","id":227507588,"user":{"login":"jfbu","id":2589111,"avatar_url":"https://avatars.githubusercontent.com/u/2589111?v=3","gravatar_id":"","url":"https://api.github.com/users/jfbu","html_url":"https://github.com/jfbu","followers_url":"https://api.github.com/users/jfbu/followers","following_url":"https://api.github.com/users/jfbu/following{/other_user}","gists_url":"https://api.github.com/users/jfbu/gists{/gist_id}","starred_url":"https://api.github.com/users/jfbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfbu/subscriptions","organizations_url":"https://api.github.com/users/jfbu/orgs","repos_url":"https://api.github.com/users/jfbu/repos","events_url":"https://api.github.com/users/jfbu/events{/privacy}","received_events_url":"https://api.github.com/users/jfbu/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T17:12:42Z","updated_at":"2016-06-21T17:12:42Z","body":"arguably, `\\abovecaptionskip` should be reduced when caption is inside a table cell and not at top level of document layout."}}
{"actor":{"display_login":"jfbu"}}