{"action":"created","issue":{"url":"https://api.github.com/repos/josdejong/mathjs/issues/307","labels_url":"https://api.github.com/repos/josdejong/mathjs/issues/307/labels{/name}","comments_url":"https://api.github.com/repos/josdejong/mathjs/issues/307/comments","events_url":"https://api.github.com/repos/josdejong/mathjs/issues/307/events","html_url":"https://github.com/josdejong/mathjs/issues/307","id":63650541,"number":307,"title":"Restructuring util/latex.js","user":{"login":"FSMaxB","id":4294942,"avatar_url":"https://avatars.githubusercontent.com/u/4294942?v=3","gravatar_id":"","url":"https://api.github.com/users/FSMaxB","html_url":"https://github.com/FSMaxB","followers_url":"https://api.github.com/users/FSMaxB/followers","following_url":"https://api.github.com/users/FSMaxB/following{/other_user}","gists_url":"https://api.github.com/users/FSMaxB/gists{/gist_id}","starred_url":"https://api.github.com/users/FSMaxB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FSMaxB/subscriptions","organizations_url":"https://api.github.com/users/FSMaxB/orgs","repos_url":"https://api.github.com/users/FSMaxB/repos","events_url":"https://api.github.com/users/FSMaxB/events{/privacy}","received_events_url":"https://api.github.com/users/FSMaxB/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-23T07:36:48Z","updated_at":"2015-03-23T09:51:26Z","closed_at":null,"body":"I've started restructuring `util/latex.js`.\r\n\r\nThings I'm doing:\r\n* remove dependencies on nodes ( done )\r\n* Write tests for every single function ( in progress )\r\n* Remove unnecessarily complex stuff ( mostly done )\r\n* Implement the LaTeX generation of functions ( for FunctionNodes ) as callback functions so they can be moved to the definition of the respective function in v2. (done)\r\n* Define LaTeX output for stuff that has been missing (in progress)\r\n  - the more uncommon operators for example\r\n  - also many of the functions\r\n\r\nIt's kind of a hard process to decide how to present something in LaTeX because I have to decide on a particular notation.\r\n\r\nThere is one fundamental question remaining right now:\r\n* How should I LaTeX a function that represents an operator? Like 'add' for example.\r\n  - `\\mathrm{add}\\left({a},{b}\\right)`\r\n  - or `\\left({a}+{b}\\right)` (the parenthesis is necessary because I don't have any information about precedence in that case (not for now at least ) )\r\n\r\nMaybe I can get rid of `util/latex.js` entirely."},"comment":{"url":"https://api.github.com/repos/josdejong/mathjs/issues/comments/84918944","html_url":"https://github.com/josdejong/mathjs/issues/307#issuecomment-84918944","issue_url":"https://api.github.com/repos/josdejong/mathjs/issues/307","id":84918944,"user":{"login":"FSMaxB","id":4294942,"avatar_url":"https://avatars.githubusercontent.com/u/4294942?v=3","gravatar_id":"","url":"https://api.github.com/users/FSMaxB","html_url":"https://github.com/FSMaxB","followers_url":"https://api.github.com/users/FSMaxB/followers","following_url":"https://api.github.com/users/FSMaxB/following{/other_user}","gists_url":"https://api.github.com/users/FSMaxB/gists{/gist_id}","starred_url":"https://api.github.com/users/FSMaxB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FSMaxB/subscriptions","organizations_url":"https://api.github.com/users/FSMaxB/orgs","repos_url":"https://api.github.com/users/FSMaxB/repos","events_url":"https://api.github.com/users/FSMaxB/events{/privacy}","received_events_url":"https://api.github.com/users/FSMaxB/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T09:51:26Z","updated_at":"2015-03-23T09:51:26Z","body":"I already did the 'smart, slower, beautiful' implementation for `OperatorNode`s but that doesn't work for functions at the moment ( but it's possible to do this in the future, hence the \"not for now at least\" ). My question is of a fundamental nature. Should a function that represents an operator ( but a `FunctionNode` was used, not an `OperatorNode`) be texified as function call or in operator notation? I tend to the latter."}}