{"action":"created","issue":{"url":"https://api.github.com/repos/darioteixeira/lambdoc/issues/30","labels_url":"https://api.github.com/repos/darioteixeira/lambdoc/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/darioteixeira/lambdoc/issues/30/comments","events_url":"https://api.github.com/repos/darioteixeira/lambdoc/issues/30/events","html_url":"https://github.com/darioteixeira/lambdoc/issues/30","id":62122406,"number":30,"title":"Support for document-wide abbreviations of math formulas in Lambtex?","user":{"login":"radekm","id":518912,"avatar_url":"https://avatars.githubusercontent.com/u/518912?v=3","gravatar_id":"","url":"https://api.github.com/users/radekm","html_url":"https://github.com/radekm","followers_url":"https://api.github.com/users/radekm/followers","following_url":"https://api.github.com/users/radekm/following{/other_user}","gists_url":"https://api.github.com/users/radekm/gists{/gist_id}","starred_url":"https://api.github.com/users/radekm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radekm/subscriptions","organizations_url":"https://api.github.com/users/radekm/orgs","repos_url":"https://api.github.com/users/radekm/repos","events_url":"https://api.github.com/users/radekm/events{/privacy}","received_events_url":"https://api.github.com/users/radekm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-16T15:48:38Z","updated_at":"2015-03-16T17:30:14Z","closed_at":null,"body":"Is it possible to create document-wide abbreviations for frequently used mathematical formulas? Eg. `\\mathbb{N}` for natural numbers. I have tried macros but it seems that blahtex commands such as `\\mathbb` cannot be used in macros - since following code\r\n\r\n```\r\n\\newmacro{nat}{0}{\\mathbb{N}}\r\n```\r\n\r\nresults in error \"Reference to undefined macro 'mathbb'.\". I have also tried `\\newcommand` from blahtex but scope of the definitions introduced by `\\newcommand` is limited to a single mathematical environment."},"comment":{"url":"https://api.github.com/repos/darioteixeira/lambdoc/issues/comments/81825912","html_url":"https://github.com/darioteixeira/lambdoc/issues/30#issuecomment-81825912","issue_url":"https://api.github.com/repos/darioteixeira/lambdoc/issues/30","id":81825912,"user":{"login":"darioteixeira","id":2505511,"avatar_url":"https://avatars.githubusercontent.com/u/2505511?v=3","gravatar_id":"","url":"https://api.github.com/users/darioteixeira","html_url":"https://github.com/darioteixeira","followers_url":"https://api.github.com/users/darioteixeira/followers","following_url":"https://api.github.com/users/darioteixeira/following{/other_user}","gists_url":"https://api.github.com/users/darioteixeira/gists{/gist_id}","starred_url":"https://api.github.com/users/darioteixeira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darioteixeira/subscriptions","organizations_url":"https://api.github.com/users/darioteixeira/orgs","repos_url":"https://api.github.com/users/darioteixeira/repos","events_url":"https://api.github.com/users/darioteixeira/events{/privacy}","received_events_url":"https://api.github.com/users/darioteixeira/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T17:30:14Z","updated_at":"2015-03-16T17:30:14Z","body":"No, you can't use them inside `mathtex` environments.  The contents of the `mathtex` environment are not parsed by Lambdoc, being instead fed verbatim into a function from the Blahcaml library for validation and conversion into MathML."}}