{"action":"created","issue":{"url":"https://api.github.com/repos/stathissideris/ditaa/issues/42","repository_url":"https://api.github.com/repos/stathissideris/ditaa","labels_url":"https://api.github.com/repos/stathissideris/ditaa/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/stathissideris/ditaa/issues/42/comments","events_url":"https://api.github.com/repos/stathissideris/ditaa/issues/42/events","html_url":"https://github.com/stathissideris/ditaa/pull/42","id":374716837,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2MzQyNjkw","number":42,"title":"Implement Latex math support (WIP; Please do not merge this pull request yet)","user":{"login":"dakusui","id":529265,"node_id":"MDQ6VXNlcjUyOTI2NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/529265?v=4","gravatar_id":"","url":"https://api.github.com/users/dakusui","html_url":"https://github.com/dakusui","followers_url":"https://api.github.com/users/dakusui/followers","following_url":"https://api.github.com/users/dakusui/following{/other_user}","gists_url":"https://api.github.com/users/dakusui/gists{/gist_id}","starred_url":"https://api.github.com/users/dakusui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dakusui/subscriptions","organizations_url":"https://api.github.com/users/dakusui/orgs","repos_url":"https://api.github.com/users/dakusui/repos","events_url":"https://api.github.com/users/dakusui/events{/privacy}","received_events_url":"https://api.github.com/users/dakusui/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-28T04:44:46Z","updated_at":"2018-10-28T12:53:17Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/stathissideris/ditaa/pulls/42","html_url":"https://github.com/stathissideris/ditaa/pull/42","diff_url":"https://github.com/stathissideris/ditaa/pull/42.diff","patch_url":"https://github.com/stathissideris/ditaa/pull/42.patch"},"body":"This is a pull request that offers an implementation of Issue-#39 (LaTeX math mode support) \r\n**NOTE:** This pull request is opened for review and discussions. Another pull request will be created when it becomes necessary.\r\n\r\n# README\r\nFollowing is a documentation about this feature. This will appear in README.md after discussions are concluded.\r\n#### LaTeX mode.\r\nIf you place LaTeX formulae inside 2 ```$```s, it will be rendered using [```jlatexmath```](https://github.com/opencollab/jlatexmath). That is, if you have a following input files.\r\n```ditaa\r\n\r\n$Box_1$                    $Box^2$\r\n+---------------------+    +------+   /---------\\\r\n|$\\sum_{i=0}^{n}x^i$  |    |$cBLU$|   |         |\r\n|                     +--->|cRED  +-=-+cGRE$C_k$|\r\n|{io}                 |    |cXYZ  |   |{o}      |\r\n+----------+----------+    +---+--+   \\---------/\r\n           |                   |\r\n           |                   :\r\n           |                   V\r\n           |           +-------------------+\r\n           +---------->*$A_i$ hello $B^i$  |\r\n                       |              +----+\r\n                       |              |c8FA|\r\n                       +--------------+----+\r\n\r\n$|Set| = o-*-Freunde-*-nicht=*=diese-=-*- * töne$\r\n\r\no Quick brown fox jumps over\r\n* a lazy dog.\r\n\r\n$Q_u^i$, $C_k$, $B_r^{own}$, $F_{ox}$ jumps\r\n\r\nover a lazy $d\\cdot\\frac{o}{g}$.\r\n\r\n\r\n$\\forall x \\in X, \\quad \\exists y \\leq \\epsilon$\r\n\r\n\r\n$\\sin A \\cos B =$\r\n\r\n    $ \\frac{1}{2}\\left[ \\sin(A-B)+\\sin(A+B) \\right]$\r\n\r\n\r\n$\\frac{d}{dx}\\left( \\int_{0}^{x} f(u)\\,du\\right)=f(x).$\r\n\r\n\r\n $v \\sim \\mathcal{N} (m,\\sigma^2)$\r\n```\r\n\r\nThis will be rendered as follows.\r\n\r\n![art-latexmath-1](https://user-images.githubusercontent.com/529265/47612043-98a9ca00-dab5-11e8-97e6-2eeb10f75d7a.png)\r\n\r\n##### Limitations\r\nThis feature is only available when you are generating ```.png``` files.\r\n\r\n# Discussions\r\n* This enhancement introduces a new semantics to a certain character in a text and it means potentially hurts a compatibility. I think I can implement a new option in command line to enable/disable this feature if you think it is important. Please let me know your thought.\r\n* I think ```.svg``` support should be done in a separate pull-request since it would be a bit big change.\r\n# Tasks\r\n- [ ] Implement tests\r\n- [x] Fix a bug where ```*``` is rendered as a bullet point (or a connector?) even if it is placed inside ```$``` and ```$```.\r\n- [ ] Remove ```pom.xml```\r\n  - [ ] Backport chages made in ```pom.xml``` to ```project.clj```\r\n- [ ] Provide a documentation.\r\n"},"comment":{"url":"https://api.github.com/repos/stathissideris/ditaa/issues/comments/433702728","html_url":"https://github.com/stathissideris/ditaa/pull/42#issuecomment-433702728","issue_url":"https://api.github.com/repos/stathissideris/ditaa/issues/42","id":433702728,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzcwMjcyOA==","user":{"login":"stathissideris","id":162007,"node_id":"MDQ6VXNlcjE2MjAwNw==","avatar_url":"https://avatars2.githubusercontent.com/u/162007?v=4","gravatar_id":"","url":"https://api.github.com/users/stathissideris","html_url":"https://github.com/stathissideris","followers_url":"https://api.github.com/users/stathissideris/followers","following_url":"https://api.github.com/users/stathissideris/following{/other_user}","gists_url":"https://api.github.com/users/stathissideris/gists{/gist_id}","starred_url":"https://api.github.com/users/stathissideris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stathissideris/subscriptions","organizations_url":"https://api.github.com/users/stathissideris/orgs","repos_url":"https://api.github.com/users/stathissideris/repos","events_url":"https://api.github.com/users/stathissideris/events{/privacy}","received_events_url":"https://api.github.com/users/stathissideris/received_events","type":"User","site_admin":false},"created_at":"2018-10-28T12:53:17Z","updated_at":"2018-10-28T12:53:17Z","author_association":"OWNER","body":"2 characters and spaces sounds like a reasonable default to me. Could you please send me a *new* PR on the current master that applies that to the whole project? Then you can git rebase this PR on the new master and continue work. Thanks!"}}
{"actor":{"display_login":"stathissideris"}}