{"action":"created","issue":{"url":"https://api.github.com/repos/area/language-latex/issues/130","repository_url":"https://api.github.com/repos/area/language-latex","labels_url":"https://api.github.com/repos/area/language-latex/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/area/language-latex/issues/130/comments","events_url":"https://api.github.com/repos/area/language-latex/issues/130/events","html_url":"https://github.com/area/language-latex/issues/130","id":237434011,"number":130,"title":"About using snippets","user":{"login":"sumandoc","id":8075886,"avatar_url":"https://avatars1.githubusercontent.com/u/8075886?v=4","gravatar_id":"","url":"https://api.github.com/users/sumandoc","html_url":"https://github.com/sumandoc","followers_url":"https://api.github.com/users/sumandoc/followers","following_url":"https://api.github.com/users/sumandoc/following{/other_user}","gists_url":"https://api.github.com/users/sumandoc/gists{/gist_id}","starred_url":"https://api.github.com/users/sumandoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumandoc/subscriptions","organizations_url":"https://api.github.com/users/sumandoc/orgs","repos_url":"https://api.github.com/users/sumandoc/repos","events_url":"https://api.github.com/users/sumandoc/events{/privacy}","received_events_url":"https://api.github.com/users/sumandoc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-21T07:02:57Z","updated_at":"2017-07-22T07:08:49Z","closed_at":null,"body":"I am not being able to use snippets in the CSON file.\r\n\r\n\r\nThese are the ones.\r\n\r\n\r\n`'.text.tex.latex .string.other.math':\r\n  'math italic':\r\n    'prefix': 'it'\r\n    'body': '\\\\\\\\mathit{$1}$0'\r\n  'math boldface':\r\n    'prefix': 'bf'\r\n    'body': '\\\\\\\\mathbf{$1}$0'\r\n  'math blackboard':\r\n    'prefix': 'bb'\r\n    'body': '\\\\\\\\mathbb{$1}$0'\r\n  'math roman':\r\n    'prefix': 'rm'\r\n    'body': '\\\\\\\\mathrm{$1}$0'\r\n  'math sans-serif':\r\n    'prefix': 'sf'\r\n    'body': '\\\\\\\\mathsf{$1}$0'\r\n  'math calligraphy':\r\n    'prefix': 'cal'\r\n    'body': '\\\\\\\\mathcal{$1}$0'\r\n  'fraction':\r\n    'prefix': 'frac'\r\n    'body': '\\\\\\\\frac{$1}{$2}$0'\r\n  'aligned':\r\n    'prefix': 'aligned'\r\n    'body': '\\\\\\\\begin{aligned}$1\\n\\t$0\\n\\\\\\\\end{aligned}'\r\n  'gathered':\r\n    'prefix': 'gathered'\r\n    'body': '\\\\\\\\begin{gathered}$1\\n\\t$0\\n\\\\\\\\end{gathered}'\r\n  'matrix':\r\n    'prefix': 'matrix'\r\n    'body': '\\\\\\\\begin{$1matrix$2}$3\\n\\t$0\\n\\\\\\\\end{$1matrix$2}'\r\n\r\n# Beamer\r\n'.text.tex.latex.beamer':\r\n  'Frame':\r\n    'prefix': 'frame'\r\n    'body': '\\\\\\\\begin{frame}[t]{${1:title}}\\n\\t${2:body}\\n\\\\\\\\end{frame}\\n%--- Next Frame ---%'\r\n  'Columns':\r\n    'prefix': 'cols'\r\n    'body': '\\\\\\\\begin{columns}\\n\\\\\\\\begin{column}[T]{$1cm}\\n$3\\n\\\\\\\\end{column}\\n\\\\\\\\hfill\\n\\\\\\\\begin{column}[T]{$2cm}\\n\\n\\\\\\\\end{column}\\n\\\\\\\\end{columns}\\n'\r\n\r\n\r\n# other\r\n'.text.tex.latex .meta.function.environment.list':\r\n  '\\\\\\\\item[description]':\r\n    'prefix': 'itd'\r\n    'body': '\\\\\\\\item[${1:description}] ${0:item}'`\r\n\r\n\r\n\r\nHow will I be able to use those snippets as well.\r\n\r\nRegards,"},"comment":{"url":"https://api.github.com/repos/area/language-latex/issues/comments/317162229","html_url":"https://github.com/area/language-latex/issues/130#issuecomment-317162229","issue_url":"https://api.github.com/repos/area/language-latex/issues/130","id":317162229,"user":{"login":"Aerijo","id":22167388,"avatar_url":"https://avatars2.githubusercontent.com/u/22167388?v=4","gravatar_id":"","url":"https://api.github.com/users/Aerijo","html_url":"https://github.com/Aerijo","followers_url":"https://api.github.com/users/Aerijo/followers","following_url":"https://api.github.com/users/Aerijo/following{/other_user}","gists_url":"https://api.github.com/users/Aerijo/gists{/gist_id}","starred_url":"https://api.github.com/users/Aerijo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aerijo/subscriptions","organizations_url":"https://api.github.com/users/Aerijo/orgs","repos_url":"https://api.github.com/users/Aerijo/repos","events_url":"https://api.github.com/users/Aerijo/events{/privacy}","received_events_url":"https://api.github.com/users/Aerijo/received_events","type":"User","site_admin":false},"created_at":"2017-07-22T07:08:49Z","updated_at":"2017-07-22T07:08:49Z","body":"New information has come to light: snippets don't work in string environments (which is what this packages scopes mathmode to). \r\n\r\nThis means the solution, short of a major overhaul on this package (and all the packages that rely on this one; think spell check, chktex, etc.), would have to be done by the autocomplete-snippets package. I believe a solution is coming soon, but I wouldn't hold my breath: I don't know how active the people managing that package are."}}
{"actor":{"display_login":"Aerijo"}}