{"action":"created","issue":{"url":"https://api.github.com/repos/jgm/pandoc/issues/615","labels_url":"https://api.github.com/repos/jgm/pandoc/issues/615/labels{/name}","comments_url":"https://api.github.com/repos/jgm/pandoc/issues/615/comments","events_url":"https://api.github.com/repos/jgm/pandoc/issues/615/events","html_url":"https://github.com/jgm/pandoc/issues/615","id":6953796,"number":615,"title":"Automatic numbering of figures and tables in HTML output","user":{"login":"nichtich","id":299856,"avatar_url":"https://avatars.githubusercontent.com/u/299856?v=3","gravatar_id":"","url":"https://api.github.com/users/nichtich","html_url":"https://github.com/nichtich","followers_url":"https://api.github.com/users/nichtich/followers","following_url":"https://api.github.com/users/nichtich/following{/other_user}","gists_url":"https://api.github.com/users/nichtich/gists{/gist_id}","starred_url":"https://api.github.com/users/nichtich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nichtich/subscriptions","organizations_url":"https://api.github.com/users/nichtich/orgs","repos_url":"https://api.github.com/users/nichtich/repos","events_url":"https://api.github.com/users/nichtich/events{/privacy}","received_events_url":"https://api.github.com/users/nichtich/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jgm/pandoc/labels/enhancement","name":"enhancement","color":"d7e102"},{"url":"https://api.github.com/repos/jgm/pandoc/labels/Major","name":"Major","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2012-09-18T14:09:38Z","updated_at":"2015-07-24T01:34:31Z","closed_at":null,"body":"Pandoc supports numbering of section headings in LaTeX and HTML output with option `-N, --number-sections`. Figures and tables are only numbered in LaTeX (because this is default in LaTeX). There should be options to add automatic numbering of figures and tables (`--number-tables`/`--number-figures`?) also in HTML output like this:\r\n\r\n    <span class=\"figurename\">Fig. 1</span> Caption\r\n    <span class=\"tablename\">Table 1</span> Caption\r\n\r\nThe prefix could be modified by a template variable that also works in LaTeX:\r\n\r\n    \\renewcommand{\\figurename}{$figurename$}\r\n    \\renewcommand{\\tablename}{$tablename$}\r\n\r\nA dot or colon can be added after the figurename/tablename with CSS, so no addition template magic is needed, for instance:\r\n\r\n    .figurename:after { content: \":\"; }\r\n\r\nBy the way this was already asked [in this thread](https://groups.google.com/forum/?fromgroups=#!topic/pandoc-discuss/el6zQnIQR6s)"},"comment":{"url":"https://api.github.com/repos/jgm/pandoc/issues/comments/124288422","html_url":"https://github.com/jgm/pandoc/issues/615#issuecomment-124288422","issue_url":"https://api.github.com/repos/jgm/pandoc/issues/615","id":124288422,"user":{"login":"sjackman","id":291551,"avatar_url":"https://avatars.githubusercontent.com/u/291551?v=3","gravatar_id":"","url":"https://api.github.com/users/sjackman","html_url":"https://github.com/sjackman","followers_url":"https://api.github.com/users/sjackman/followers","following_url":"https://api.github.com/users/sjackman/following{/other_user}","gists_url":"https://api.github.com/users/sjackman/gists{/gist_id}","starred_url":"https://api.github.com/users/sjackman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjackman/subscriptions","organizations_url":"https://api.github.com/users/sjackman/orgs","repos_url":"https://api.github.com/users/sjackman/repos","events_url":"https://api.github.com/users/sjackman/events{/privacy}","received_events_url":"https://api.github.com/users/sjackman/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T01:34:31Z","updated_at":"2015-07-24T01:34:31Z","body":":+1:"}}