{"action":"created","issue":{"url":"https://api.github.com/repos/davidfarmer/applied-combinatorics/issues/6","repository_url":"https://api.github.com/repos/davidfarmer/applied-combinatorics","labels_url":"https://api.github.com/repos/davidfarmer/applied-combinatorics/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/davidfarmer/applied-combinatorics/issues/6/comments","events_url":"https://api.github.com/repos/davidfarmer/applied-combinatorics/issues/6/events","html_url":"https://github.com/davidfarmer/applied-combinatorics/issues/6","id":153510569,"number":6,"title":"Wrap overpic in image and latex-image-code","user":{"login":"mitchkeller","id":8580151,"avatar_url":"https://avatars.githubusercontent.com/u/8580151?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchkeller","html_url":"https://github.com/mitchkeller","followers_url":"https://api.github.com/users/mitchkeller/followers","following_url":"https://api.github.com/users/mitchkeller/following{/other_user}","gists_url":"https://api.github.com/users/mitchkeller/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchkeller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchkeller/subscriptions","organizations_url":"https://api.github.com/users/mitchkeller/orgs","repos_url":"https://api.github.com/users/mitchkeller/repos","events_url":"https://api.github.com/users/mitchkeller/events{/privacy}","received_events_url":"https://api.github.com/users/mitchkeller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-05-06T18:26:55Z","updated_at":"2016-06-16T00:44:14Z","closed_at":null,"body":"With modifications to the mbx script (available on the dev branch of my fork of mathbook), I've managed to get overpic working. However, the export from LaTeX to MBX needs to be improved a bit to wrap the LaTeX code in the correct XML. As an example of what I got to work, see the following:\r\n\r\n```xml\r\n<image xml:id=\"img-fig_graphs_utils\">\r\n    <latex-image-code><![CDATA[\r\n        \\begin{overpic}{images/k33}\r\n        \\put(-37,92){ Water}\r\n        \\put(-66,50){ Electricity}\r\n        \\put(-76,5){ Natural gas}\r\n        \\put(90,92){ Home 1}\r\n        \\put(90,50){ Home 2}\r\n        \\put(90,5){ Home 3}\r\n        \\end{overpic}]]>\r\n    </latex-image-code>\r\n</image>\r\n```\r\n\r\n(That can be found in section7-5.mbx on the tweak-mbx branch of my applied-combinatorics repository.)"},"comment":{"url":"https://api.github.com/repos/davidfarmer/applied-combinatorics/issues/comments/226360045","html_url":"https://github.com/davidfarmer/applied-combinatorics/issues/6#issuecomment-226360045","issue_url":"https://api.github.com/repos/davidfarmer/applied-combinatorics/issues/6","id":226360045,"user":{"login":"mitchkeller","id":8580151,"avatar_url":"https://avatars.githubusercontent.com/u/8580151?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchkeller","html_url":"https://github.com/mitchkeller","followers_url":"https://api.github.com/users/mitchkeller/followers","following_url":"https://api.github.com/users/mitchkeller/following{/other_user}","gists_url":"https://api.github.com/users/mitchkeller/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchkeller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchkeller/subscriptions","organizations_url":"https://api.github.com/users/mitchkeller/orgs","repos_url":"https://api.github.com/users/mitchkeller/repos","events_url":"https://api.github.com/users/mitchkeller/events{/privacy}","received_events_url":"https://api.github.com/users/mitchkeller/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T00:44:14Z","updated_at":"2016-06-16T00:44:14Z","body":"Actually, let me not make a new issue like I promised in closing your PR, since it's still on topic here. The `latex-image-code` block gets passed off to the `mbx` script for processing, and thus we don't want `<m>` tags inside there. If you can avoid converting the $'s to `m` tags inside these `latex-image-code` elements, then I think we'll be good to go. (It's easy to get the full LaTeX file that comes out to `xsltproc` to compile by doing a global find and replace to get rid of those tags, but the `mbx` script is going to barf.)"}}
{"actor":{"display_login":"mitchkeller"}}