{"action":"created","issue":{"url":"https://api.github.com/repos/JelteF/PyLaTeX/issues/114","repository_url":"https://api.github.com/repos/JelteF/PyLaTeX","labels_url":"https://api.github.com/repos/JelteF/PyLaTeX/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/JelteF/PyLaTeX/issues/114/comments","events_url":"https://api.github.com/repos/JelteF/PyLaTeX/issues/114/events","html_url":"https://github.com/JelteF/PyLaTeX/pull/114","id":127907430,"number":114,"title":"Expose more of siunitx's capabilities","user":{"login":"bjodah","id":485936,"avatar_url":"https://avatars.githubusercontent.com/u/485936?v=3","gravatar_id":"","url":"https://api.github.com/users/bjodah","html_url":"https://github.com/bjodah","followers_url":"https://api.github.com/users/bjodah/followers","following_url":"https://api.github.com/users/bjodah/following{/other_user}","gists_url":"https://api.github.com/users/bjodah/gists{/gist_id}","starred_url":"https://api.github.com/users/bjodah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjodah/subscriptions","organizations_url":"https://api.github.com/users/bjodah/orgs","repos_url":"https://api.github.com/users/bjodah/repos","events_url":"https://api.github.com/users/bjodah/events{/privacy}","received_events_url":"https://api.github.com/users/bjodah/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-21T11:50:26Z","updated_at":"2016-02-05T17:26:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JelteF/PyLaTeX/pulls/114","html_url":"https://github.com/JelteF/PyLaTeX/pull/114","diff_url":"https://github.com/JelteF/PyLaTeX/pull/114.diff","patch_url":"https://github.com/JelteF/PyLaTeX/pull/114.patch"},"body":"This extends the capabilities of `Quantity` to pass options to siunitx command `\\SI`\r\n\r\nI struggled a bit with dealing with escaping of `Options`. Note the suggested change in behaviour\r\nof `Parameters` and the modification of private variable `_escape` in `quantities.py`.\r\nIs there another preferred way of achieving this which I have overlooked?\r\n\r\nTODO:\r\n- [x] Allow to pass options\r\n- [ ] Support for `quantities.UncertainQuantity`\r\n- [ ] Support for using Python `float` with `pylatex.Quantity` (which would map to `siunitx`'s `\\num{}`)\r\n- [ ] Update `changelog.rst`"},"comment":{"url":"https://api.github.com/repos/JelteF/PyLaTeX/issues/comments/180453811","html_url":"https://github.com/JelteF/PyLaTeX/pull/114#issuecomment-180453811","issue_url":"https://api.github.com/repos/JelteF/PyLaTeX/issues/114","id":180453811,"user":{"login":"JelteF","id":1162278,"avatar_url":"https://avatars.githubusercontent.com/u/1162278?v=3","gravatar_id":"","url":"https://api.github.com/users/JelteF","html_url":"https://github.com/JelteF","followers_url":"https://api.github.com/users/JelteF/followers","following_url":"https://api.github.com/users/JelteF/following{/other_user}","gists_url":"https://api.github.com/users/JelteF/gists{/gist_id}","starred_url":"https://api.github.com/users/JelteF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JelteF/subscriptions","organizations_url":"https://api.github.com/users/JelteF/orgs","repos_url":"https://api.github.com/users/JelteF/repos","events_url":"https://api.github.com/users/JelteF/events{/privacy}","received_events_url":"https://api.github.com/users/JelteF/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T17:26:10Z","updated_at":"2016-02-05T17:26:10Z","body":"The suggested `Parameters` change seems fine although I'm not sure it is the best way to check it for being a dict."}}