Skip to content

Instantly share code, notes, and snippets.

@cc7768
Last active May 30, 2019 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cc7768/d0dcc37241b2ee5c36a7aca187ccc54f to your computer and use it in GitHub Desktop.
Save cc7768/d0dcc37241b2ee5c36a7aca187ccc54f to your computer and use it in GitHub Desktop.
# Command for clearing notifications
atom.commands.add 'atom-workspace', 'custom-commands:dismiss-notifications', ->
atom.notifications.getNotifications().forEach (notification) ->
notification.dismiss()
atom.notifications.clear()
'atom-workspace atom-text-editor:not([mini])':
# Golden ratio
'ctrl-shift-;': 'golden-ratio:toggle'
# My bindings
'ctrl-j': 'editor:move-line-down'
'ctrl-k': 'editor:move-line-up'
'ctrl-backspace': 'custom-commands:dismiss-notifications'
'.platform-win32 atom-text-editor, .platform-linux atom-text-editor':
'ctrl-d': 'find-and-replace:select-next'
'alt-ctrl-p': 'editor:log-cursor-scope'
'atom-text-editor.vim-mode-plus:not(.insert-mode)':
'B': 'vim-mode-plus:move-to-first-character-of-line'
'E': 'vim-mode-plus:move-to-last-character-of-line'
'j': 'vim-mode-plus:move-down-screen'
'k': 'vim-mode-plus:move-up-screen'
'body':
'ctrl-k l': 'pane:split-right-and-copy-active-item'
'ctrl-k h': 'pane:split-left-and-copy-active-item'
'ctrl-k j': 'pane:split-down-and-copy-active-item'
'ctrl-k k': 'pane:split-up-and-copy-active-item'
[
{
"name": "Hydrogen",
"version": "2.7.0"
},
{
"name": "about",
"version": "1.9.1"
},
{
"name": "archive-view",
"version": "0.65.1"
},
{
"name": "atom-clock",
"version": "0.1.16"
},
{
"name": "atom-dark-syntax",
"version": "0.29.1",
"theme": "syntax"
},
{
"name": "atom-dark-ui",
"version": "0.53.3",
"theme": "ui"
},
{
"name": "atom-light-syntax",
"version": "0.29.1",
"theme": "syntax"
},
{
"name": "atom-light-ui",
"version": "0.46.3",
"theme": "ui"
},
{
"name": "autocomplete-atom-api",
"version": "0.10.7"
},
{
"name": "autocomplete-css",
"version": "0.17.5"
},
{
"name": "autocomplete-html",
"version": "0.8.8"
},
{
"name": "autocomplete-plus",
"version": "2.42.0"
},
{
"name": "autocomplete-snippets",
"version": "1.12.0"
},
{
"name": "autoflow",
"version": "0.29.4"
},
{
"name": "autosave",
"version": "0.24.6"
},
{
"name": "background-tips",
"version": "0.28.0"
},
{
"name": "base16-tomorrow-dark-theme",
"version": "1.6.0",
"theme": "syntax"
},
{
"name": "base16-tomorrow-light-theme",
"version": "1.6.0",
"theme": "syntax"
},
{
"name": "bookmarks",
"version": "0.46.0"
},
{
"name": "bracket-matcher",
"version": "0.90.4"
},
{
"name": "city-lights-syntax",
"version": "1.1.8",
"theme": "syntax"
},
{
"name": "color-picker",
"version": "2.3.0"
},
{
"name": "command-palette",
"version": "0.43.5"
},
{
"name": "dalek",
"version": "0.2.2"
},
{
"name": "deprecation-cop",
"version": "0.56.9"
},
{
"name": "dev-live-reload",
"version": "0.48.1"
},
{
"name": "encoding-selector",
"version": "0.23.9"
},
{
"name": "exception-reporting",
"version": "0.43.1"
},
{
"name": "find-and-replace",
"version": "0.218.9"
},
{
"name": "fuzzy-finder",
"version": "1.13.4"
},
{
"name": "git-diff",
"version": "1.3.9"
},
{
"name": "go-to-line",
"version": "0.33.0"
},
{
"name": "golden-ratio",
"version": "0.3.0"
},
{
"name": "grammar-selector",
"version": "0.50.1"
},
{
"name": "hydrogen-launcher",
"version": "1.2.2"
},
{
"name": "image-view",
"version": "0.64.0"
},
{
"name": "incompatible-packages",
"version": "0.27.3"
},
{
"name": "keybinding-resolver",
"version": "0.39.0"
},
{
"name": "language-c",
"version": "0.60.14"
},
{
"name": "language-clojure",
"version": "0.22.8"
},
{
"name": "language-coffee-script",
"version": "0.50.0"
},
{
"name": "language-csharp",
"version": "1.1.0"
},
{
"name": "language-css",
"version": "0.44.0"
},
{
"name": "language-ethereum",
"version": "0.3.9"
},
{
"name": "language-gfm",
"version": "0.90.6"
},
{
"name": "language-git",
"version": "0.19.1"
},
{
"name": "language-go",
"version": "0.46.6"
},
{
"name": "language-html",
"version": "0.52.0"
},
{
"name": "language-hyperlink",
"version": "0.17.0"
},
{
"name": "language-java",
"version": "0.31.1"
},
{
"name": "language-javascript",
"version": "0.129.21"
},
{
"name": "language-json",
"version": "0.19.2"
},
{
"name": "language-julia",
"version": "0.18.0"
},
{
"name": "language-latex",
"version": "1.2.0"
},
{
"name": "language-less",
"version": "0.34.3"
},
{
"name": "language-make",
"version": "0.23.0"
},
{
"name": "language-markdown",
"version": "0.29.0"
},
{
"name": "language-matlab",
"version": "0.2.1"
},
{
"name": "language-mustache",
"version": "0.14.5"
},
{
"name": "language-objective-c",
"version": "0.15.1"
},
{
"name": "language-perl",
"version": "0.38.1"
},
{
"name": "language-php",
"version": "0.44.1"
},
{
"name": "language-property-list",
"version": "0.9.1"
},
{
"name": "language-python",
"version": "0.51.10"
},
{
"name": "language-ruby",
"version": "0.72.16"
},
{
"name": "language-ruby-on-rails",
"version": "0.25.3"
},
{
"name": "language-rust-bundled",
"version": "0.1.0"
},
{
"name": "language-sass",
"version": "0.62.0"
},
{
"name": "language-shellscript",
"version": "0.27.9"
},
{
"name": "language-source",
"version": "0.9.0"
},
{
"name": "language-sphinx",
"version": "0.1.9"
},
{
"name": "language-sql",
"version": "0.25.10"
},
{
"name": "language-text",
"version": "0.7.4"
},
{
"name": "language-todo",
"version": "0.29.4"
},
{
"name": "language-toml",
"version": "0.20.0"
},
{
"name": "language-typescript",
"version": "0.4.11"
},
{
"name": "language-xml",
"version": "0.35.3"
},
{
"name": "language-yaml",
"version": "0.32.0"
},
{
"name": "latex",
"version": "0.50.2"
},
{
"name": "latex-completions",
"version": "0.3.6"
},
{
"name": "latexer",
"version": "0.3.0"
},
{
"name": "line-ending-selector",
"version": "0.7.7"
},
{
"name": "link",
"version": "0.31.6"
},
{
"name": "markdown-pdf",
"version": "2.2.0"
},
{
"name": "markdown-preview",
"version": "0.159.25"
},
{
"name": "markdown-preview-plus",
"version": "3.7.1"
},
{
"name": "markdown-table-editor",
"version": "1.1.1"
},
{
"name": "markdown-table-formatter",
"version": "2.9.2"
},
{
"name": "markdown-themeable-pdf",
"version": "1.2.1"
},
{
"name": "metrics",
"version": "1.7.2"
},
{
"name": "multi-cursor-plus",
"version": "1.2.0"
},
{
"name": "notifications",
"version": "0.70.6"
},
{
"name": "one-dark-syntax",
"version": "1.8.4",
"theme": "syntax"
},
{
"name": "one-dark-ui",
"version": "1.12.5",
"theme": "ui"
},
{
"name": "one-light-syntax",
"version": "1.8.4",
"theme": "syntax"
},
{
"name": "one-light-ui",
"version": "1.12.5",
"theme": "ui"
},
{
"name": "open-on-github",
"version": "1.3.1"
},
{
"name": "package-generator",
"version": "1.3.0"
},
{
"name": "project-manager",
"version": "3.3.6"
},
{
"name": "remote-ftp",
"version": "2.2.2"
},
{
"name": "rst-preview",
"version": "1.3.1"
},
{
"name": "seti-ui",
"version": "1.11.0",
"theme": "ui"
},
{
"name": "settings-view",
"version": "0.261.1"
},
{
"name": "snippets",
"version": "1.4.1"
},
{
"name": "solarized-dark-syntax",
"version": "1.3.0",
"theme": "syntax"
},
{
"name": "solarized-light-syntax",
"version": "1.3.0",
"theme": "syntax"
},
{
"name": "spell-check",
"version": "0.74.4"
},
{
"name": "status-bar",
"version": "1.8.17"
},
{
"name": "styleguide",
"version": "0.49.12"
},
{
"name": "summer-night-syntax",
"version": "2.0.1",
"theme": "syntax"
},
{
"name": "symbols-view",
"version": "0.118.2"
},
{
"name": "sync-settings",
"version": "0.8.6"
},
{
"name": "tabs",
"version": "0.110.0"
},
{
"name": "teletype",
"version": "0.13.3"
},
{
"name": "timecop",
"version": "0.36.2"
},
{
"name": "tree-view",
"version": "0.225.0"
},
{
"name": "update-package-dependencies",
"version": "0.13.1"
},
{
"name": "vim-mode-plus",
"version": "1.36.0"
},
{
"name": "wakatime",
"version": "7.0.7"
},
{
"name": "welcome",
"version": "0.36.9"
},
{
"name": "whitespace",
"version": "0.37.7"
},
{
"name": "wrap-guide",
"version": "0.41.0"
}
]
{
"Hydrogen": {
"gateways": "[\n {\n \"name\": \"thanos\",\n \"options\": {\n \"baseUrl\": \"https://jupyter.valorumdata.com/user/chase\",\n \"token\": \"3b6330b1fc6e4f0c9d57186bbcb65b7c\"\n }\n }\n]"
},
"atom-clock": {
"tooltipDateFormat": "ddd, MMM Do YYYY, HH:mm"
},
"autocomplete-plus": {
"confirmCompletion": "tab"
},
"core": {
"disabledPackages": [
"language-gfm",
"markdown-preview"
],
"ignoredNames": [
".git",
".hg",
".svn",
".DS_Store",
"._*",
"Thumbs.db",
"desktop.ini",
"*.pdf"
],
"telemetryConsent": "limited",
"themes": [
"seti-ui",
"one-light-syntax"
]
},
"editor": {
"fontSize": 18,
"preferredLineLength": 100,
"scrollPastEnd": true,
"tabLength": 4,
"tabType": "soft"
},
"etheratom": {
"compileOnSave": false,
"rpcAddress": "http://127.0.0.1:8545/",
"websocketAddress": "ws://127.0.0.1:8546/"
},
"exception-reporting": {
"userId": "aca414c2-0bc1-416d-8019-a18dbbd13248"
},
"isotope-light-ui": {
"customBackgroundColorPicker": "#e7e7e7",
"fontFamily": "Source Sans Pro",
"minimalMode": true,
"tabSizing": "Minimum"
},
"latex": {
"engine": "xelatex",
"openResultAfterBuild": false,
"openResultInBackground": false,
"opener": "custom",
"viewerPath": "/usr/bin/mupdf"
},
"markdown-preview-plus": {
"mathConfig": {
"enableLatexRenderingByDefault": true
}
},
"seti-icons": {},
"seti-ui": {
"compactView": true
},
"sync-settings": {
"removeObsoletePackages": true
},
"tree-view": {
"hideIgnoredNames": true,
"hideVcsIgnoredFiles": true
},
"wakatime": {
"apikey": "Enter your api key..."
},
"welcome": {
"showOnStartup": false
}
}
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
# '.source.coffee':
# 'Console log':
# 'prefix': 'log'
# 'body': 'console.log $1'
#
'.source.python':
'New Docstring':
'prefix': 'doc'
'body': """\"\"\"\n${1:Description}\n\nParameters\n----------\n${2:param1}\n\nReturns\n-------\n\n\"\"\""""
'Module Docstring':
'prefix': 'mdoc'
'body': """\"\"\"\n${1:Description}\n\n@author : Chase Coleman\n@date : ${2:super+alt+crt+t}\n\n\"\"\""""
'init method':
'prefix': 'init'
'body': 'def __init__(self, $1):'
'.source.julia':
'Module Docstring':
'prefix': 'mdoc'
'body': """\"\"\"\n${1:Description}\n\n@author : Chase Coleman\n@date : ${2:super+alt+crt+t}\n\n\"\"\""""
'.source.gfm':
'New pandoc file':
'prefix': 'newnote'
'body': """
---
title: '${1:title}'
subtitle: "${2:subtitle}"
author:
- name: "Chase Coleman"
affiliation: "New York University"
email: "ccoleman@stern.nyu.edu"
date: "${3:date}"
${4:bibliography: "/Users/sglyon/Research/library.bib"}
---
"""
'.text.tex.latex .source.weave.latex':
'Align':
'prefix': 'al'
'body': '\\\\begin{align}\n\t$1\n\\\\end{align}'
'Align*':
'prefix': 'als'
'body': '\\\\begin{align*}\n\t$1\n\\\\end{align*}'
'Align Label':
'prefix': 'all'
'body': '\\\\begin{align} \\\\label{eq:$1}\n\t$2\n\\\\end{align}'
'Equation':
'prefix': 'eq'
'body': '\\\\begin{equation}\n\t$1\n\\\\end{equation}'
'Equaiton*':
'prefix': 'eqs'
'body': '\\\\begin{equation*}\n\t$1\n\\\\end{equation*}'
'Equation label':
'prefix': 'eql'
'body': '\\\\begin{equation} \\\\label{eq:$1}\n\t$2\n\\\\end{equation}'
'Cases':
'prefix': 'cases'
'body': '\\\\begin{cases}$1 & \\\\text{ if } $2 \\\\end{cases}'
'Theorem':
'prefix': 'th'
'body': '\\\\begin{thm}\n\t$1\n\\\\end{thm}'
'Theorem label':
'prefix': 'thm'
'body': '\\\\begin{thm} \\\\label{thm:$1}\n\t$2\n\\\\end{thm}'
'Definition':
'prefix': 'defn'
'body': '\\\\begin{defn}[name=$1]\n\t$2\n\\\\end{defn}'
'Named Theorem':
'prefix': 'thmnm'
'body': '\\\\begin{thm}[name=$1]\n\t$2\n\\\\end{thm}'
'Named proposition':
'prefix': 'propnm'
'body': '\\\\begin{prop}[name=$1]\n\t$2\n\\\\end{prop}'
'Named claim':
'prefix': 'claimnm'
'body': '\\\\begin{claim}[name=$1]\n\t$2\n\\\\end{claim}'
'Named lemma':
'prefix': 'lemmanm'
'body': '\\\\begin{lemma}[name=$1]\n\t$2\n\\\\end{lemma}'
'Italic':
'prefix': 'it'
'body': '\\\\textit{$1}$2'
'Bold':
'prefix': 'bf'
'body': '\\\\textbf{$1}$2'
'First order condition':
'prefix': 'foc'
'body': 'first order condition'
'Label':
'prefix': 'lab'
'body': '\\\\label{$1}'
'Equaiton label':
'prefix': 'elab'
'body': '\\\\label{eq:$1}'
'Figure label':
'prefix': 'flab'
'body': '\\\\label{fig:$1}'
'Table Label':
'prefix': 'tlab'
'body': '\\\\label{tab:$1}'
'Matrix':
'prefix': 'mat'
'body': '\\\\begin{${1:p/b/v/V/B/small}matrix}\n\t$2\n\\\\end{${1:p/b/v/V/B/small}matrix}'
'frame':
'prefix': 'frame'
'body': """
\\\\begin{frame}{${1:Title}}
$2
\\\\end{frame}
"""
'Two Figures':
'prefix': 'twofigs'
'body': """
\\\\begin{figure}[ht]
\\\\begin{minipage}[b]{0.45\\\\linewidth}
\\\\centering
\\\\includegraphics[width=\\\\textwidth]{$1}
\\\\caption{}
\\\\label{fig:lab2}
\\\\end{minipage}
\\\\hspace{0.5cm}
\\\\begin{minipage}[b]{0.45\\\\linewidth}
\\\\centering
\\\\includegraphics[width=\\\\textwidth]{$2}
\\\\caption{}
\\\\label{fig:lab2}
\\\\end{minipage}
\\\\end{figure}
"""
'Game Tree':
'prefix': 'gametree'
'body': """
\\\\begin{figure}[!h]
\\\\centering
\\\\begin{tikzpicture}[scale=1.5,font=\\\\footnotesize,grow'=right]
% Node styles
\\\\tikzstyle{solid node}=[circle,draw,inner sep=1.2,fill=black];
\\\\tikzstyle{hollow node}=[circle,draw,inner sep=1.2];
% Specify spacing for each level of the tree
\\\\tikzstyle{level 1}=[level distance=15mm,sibling distance=20mm]
\\\\tikzstyle{level 2}=[level distance=15mm,sibling distance=10mm]
\\\\tikzstyle{level 3}=[level distance=7mm,sibling distance=5mm]
% The Tree
\\\\node(0)[solid node,label=above:{1}]{$0} % root
\\\\end{tikzpicture}
\\\\caption{Put Caption here}
\\\\label{fig:CAPTIONhere}
\\\\end{figure}
"""
'new_notes':
'prefix': 'new_notes'
'body': """
\\\\documentclass[10pt,article,oneside]{memoir}
\\\\usepackage[T1]{fontenc}
\\\\usepackage[utf8]{inputenc}
\\\\usepackage{fixltx2e}
\\\\usepackage{wrapfig}
\\\\usepackage{rotating}
\\\\usepackage{memoir-article-styles}
\\\\usepackage[american]{babel}
\\\\usepackage[babel]{csquotes}
\\\\usepackage[svgnames]{xcolor}
\\\\usepackage{soul}
\\\\usepackage{times}
\\\\usepackage[config=mt-ptm]{microtype}
\\\\usepackage[scaled=0.74]{beramono}
\\\\usepackage[colorlinks=true, urlcolor=DarkSlateBlue,citecolor=DarkSlateBlue,
filecolor=DarkSlateBlue, plainpages=false,pdfpagelabels,
bookmarksnumbered]{hyperref}
% \\\\input{vc}
\\\\usepackage{amsmath,amsfonts,amsthm} % Math packages
\\\\usepackage{longtable}
\\\\usepackage{graphicx}
% partial derivative as a fraction
\\\\newcommand{\\\\fracpd}[2]{
\\\\ensuremath{\\\\frac{\\\\partial #1}{\\\\partial #2}}
}
% fraction with parenthesis around it
\\\\newcommand{\\\\pfrac}[2]{
\\\\ensuremath{ \\\\left( \\\\frac{#1}{#2} \\\\right)}
}
\\\\title{Computational Notes}
\\\\newcommand{\\\\subtitle}{\\\\noindent }
\\\\renewcommand{\\\\maketitlehookb}{\\\\textsc{\\\\subtitle}}
%\\\\author{true}
\\\\author{\\\\Large Chase Coleman\\\\vspace{0.05in} \\\\newline\\\\normalsize\\\\emph{New York University} \\\\newline\\\\footnotesize \\\\url{ccoleman@stern.nyu.edu}\\\\vspace*{0.2in}\\\\newline }
\\\\date{}
\\\\begin{document}
\\\\setkeys{Gin}{width=1\\\\textwidth}
\\\\chapterstyle{article-4}
\\\\pagestyle{kjh}
% \\\\published{\\\\today. Incomplete Draft. Please do not cite without permission.}
\\\\published{\\\\today. Personal notes. The probability of typos is high.}
\\\\maketitle
$0
\\\\end{document}
"""
'.string.other.math.tex, .string.other.math.latex, .string.other.math.block.environment.latex, .string.other.math.block.tex':
'T+something':
"prefix": "tp"
"body": "_{t+$1}$2"
'T+1':
"prefix": "tp1"
"body": "_{t+1}$1"
'T-something':
"prefix": "tm"
"body": "_{t-$1}$2"
'T-1':
"prefix": "tm1"
"body": "_{t-1}$1"
'Infinity':
"prefix": "inf"
"body": "\\\\infty"
'Inverse':
"prefix": "inv"
"body": "^{-1}$1"
'Empty Set':
"prefix": "0"
"body": "\\\\emptyset"
'braces':
"prefix": "br"
"body": "\\\\{ $1 \\\\}"
'Summation':
"prefix": "sum"
"body": "\\\\sum_{$1}^{$2} $3"
'Double summation':
"prefix": "sumsum"
"body": "\\\\sum_{t=0}^{\\\\infty} \\\\sum_{s^t}"
'Double summation beta':
"prefix": "sumsumb"
"body": "\\\\sum_{t=0}^{\\\\infty} \\\\sum_{s^t} \\beta^t"
'Cmplete markets sum':
"prefix": "sumsumq"
"body": "\\\\sum_{t=0}^{\\\\infty} \\\\sum_{s^t} q_t^0 \\\\left(s^t \\\\right)"
'parenthesis state':
"prefix": "lps"
"body": "\\\\left(s^t \\\\right)"
'qt prices':
"prefix": "qt0"
"body": "q_t^0\\\\left(s^t \\\\right)"
'split':
"prefix": "spl"
"body": "\\\\begin{split}\n\t$1\n\\\\end{split}"
'left right parens':
"prefix": "lp"
"body": "\\\\left( $1 \\\\right)"
'left right square brackets':
"prefix": "lb"
"body": "\\\\left[ $1 \\\\right]"
'left right curly braces':
"prefix": "lbr"
"body": "\\\\left\\\\{ $1 \\\\right\\\\}"
'fraction':
"prefix": "fr"
"body": "\\\\frac"
'tabbing fraction':
"prefix": "fra"
"body": "\\\\frac{$1}{$2}$3"
'stackrel':
"prefix": "stack"
"body": "\\\\stackrel{$1}{$2}$3"
'left arrow':
"prefix": "la"
"body": "\\\\leftarrow"
'long left arrow':
"prefix": "longleftarrow"
"body": "leftarrow"
'Left arrow':
"prefix": "La"
"body": "\\\\Leftarrow"
'Long left arrow':
"prefix": "Leftarrow"
"body": "Longleftarrow"
'Left Arrow':
"prefix": "Longleftarrow"
"body": "Leftarrow"
'right arrow':
"prefix": "ra"
"body": "\\\\rightarrow"
'long right arrow':
"prefix": "rightarrow"
"body": "longrightarrow"
'Right arrow':
"prefix": "Ra"
"body": "\\\\Rightarrow"
'Long Right arrow':
"prefix": "Rightarrow"
"body": "Longrightarrow"
'left right arrow':
"prefix": "lr"
"body": "\\\\leftrightarrow"
'Left right arrow':
"prefix": "Lr"
"body": "\\\\Leftrightarrow"
'Long left right arrow':
"prefix": "iff"
"body": "\\\\Longleftrightarrow"
'uparrow':
"prefix": "up"
"body": "\\\\uparrow"
'downarrow':
"prefix": "do"
"body": "\v\downarrow"
'bigm vert':
"prefix": "bv"
"body": "\\\\bigm\\\\vert"
'vartheta':
"prefix": "vj"
"body": "\\\\vartheta"
'subset':
"prefix": "sbs"
"body": "\\\\subset"
'subset eq':
"prefix": "subset"
"body": "\\\\subseteq"
'supset':
"prefix": "sps"
"body": "\\\\supset"
'supset eq':
"prefix": "supset"
"body": "\\\\supseteq"
'subject to':
"prefix": "st"
"body": "\\\\text{subject to } & "
'from 0 to infty':
"prefix": "0inf"
"body": "_{t = 0}^{\\\\infty}"
'sum 0 to infinity':
"prefix": "sum0i"
"body": "\\\\sum_{t = 0}^{\\\\infty}"
'math italics':
"prefix": "it"
"body": "\\\\mathit{$1}$2"
'math bold':
"prefix": "bf"
"body": "\\\\mathbf{$1}$2"
'math bb':
"prefix": "bb"
"body": "\\\\mathbb{$1}$2"
'mathbb Reals':
"prefix": "bbr"
"body": "\\\\mathbb{R}$1"
'mathbb R1':
"prefix": "bbrn"
"body": "\\\\mathbb{R}^n$1"
'mathbb Rn':
"prefix": "bbn"
"body": "\\\\mathbb{N}$1"
'mathrm':
"prefix": "rm"
"body": "\\\\mathrm{$1}$2"
'mathsf':
"prefix": "sf"
"body": "\\\\mathsf{$1}$2"
'matthcal':
"prefix": "cal"
"body": "\\\\mathcal{$1}$2"
'Underline':
"prefix": "ul"
"body": "\\\\underline{$1}$2"
'overline':
"prefix": "ol"
"body": "\\\\overline{$1}$2"
'tau':
'prefix': 't'
'body': '\\\\tau'
'alpha':
'prefix': 'a'
'body': '\\\\alpha'
'gamma':
'prefix': 'g'
'body': '\\\\gamma'
'Gamma':
'prefix': 'G'
'body': '\\\\Gamma'
'sigma':
'prefix': 's'
'body': '\\\\sigma'
'Sigma':
'prefix': 'S'
'body': '\\\\Sigma'
'beta':
'prefix': 'b'
'body': '\\\\beta'
'theta':
'prefix': 'j'
'body': '\\\\theta'
'Theta':
'prefix': 'J'
'body': '\\\\Theta'
'omega':
'prefix': 'w'
'body': '\\\\omega'
'Omega':
'prefix': 'W'
'body': '\\\\Omega'
'rho':
'prefix': 'r'
'body': '\\\\rho'
'mu':
'prefix': 'm'
'body': '\\\\mu'
'delta':
'prefix': 'd'
'body': '\\\\delta'
'Delta':
'prefix': 'D'
'body': '\\\\Delta'
'pi':
'prefix': 'p'
'body': '\\\\pi'
'Pi':
'prefix': 'P'
'body': '\\\\Pi'
'rightarrow':
'prefix': 'ra'
'body': '\\\\rightarrow'
'Rightarrow':
'prefix': 'Ra'
'body': '\\\\Rightarrow'
'varepsilon':
'prefix': 've'
'body': '\\\\varepsilon'
'iota':
'prefix': 'i'
'body': '\\\\iota'
'boldsymbol':
'prefix': 'bs'
'body': '\\\\boldsymbol{$1}$2'
'lambda':
'prefix': 'l'
'body': '\\\\lambda'
'Lambda':
'prefix': 'L'
'body': '\\\\Lambda'
'xi':
'prefix': 'x'
'body': '\\\\xi'
'phi':
'prefix': 'f'
'body': '\\\\phi'
'Phi':
'prefix': 'F'
'body': '\\\\Phi'
'kappa':
'prefix': 'k'
'body': '\\\\kappa'
'eta':
'prefix': 'e'
'body': '\\\\eta'
'.source.weave.latex':
# preamble and package/class file
"RequirePackage":
"prefix": "Pkg"
"body": "\\\\RequirePackage$2{${1:package name}}$0"
"usepackage":
"prefix": "pkg"
"body": "\\\\usepackage$2{${1:package name}}$0"
# document level
'part':
'prefix': 'part'
'body': '\\\\part{${1:part name}}\n$0'
'chapter':
'prefix': 'chapter'
'body': '\\\\chapter{${1:chapter name}}\n$0'
'section':
'prefix': 'section'
'body': '\\\\section{${1:section name}}\n$0'
'subsection':
'prefix': 'subsection'
'body': '\\\\subsection{${1:subsection name}}\n$0'
'subsubsection':
'prefix': 'subsubsection'
'body': '\\\\subsubsection{${1:subsubsection name}}\n$0'
'paragraph':
'prefix': 'paragraph'
'body': '\\\\paragraph{${1:paragraph name}}\n$0'
'subparagraph':
'prefix': 'subparagraph'
'body': '\\\\subparagraph{${1:subparagraph name}}\n$0'
# environement
'\\begin{}...\\end{}':
'prefix': 'begin'
'body': '\\\\begin{${1:env}}$2\n\t$0\n\\\\end{${1:env}}'
'align(*)':
'prefix': 'align'
'body': '\\\\begin{align$1}\n\t$0\n\\\\end{align$1}'
'description':
'prefix': 'description'
'body': '\\\\begin{description}\n\t\\\\item[$1]$0\n\\\\end{description}'
'enumerate':
'prefix': 'enumerate'
'body': '\\\\begin{enumerate}\n\t\\\\item $0\n\\\\end{enumerate}'
'equation(*)':
'prefix': 'equation'
'body': '\\\\begin{equation$1}\n\t$0\n\\\\end{equation$1}'
'figure':
'prefix': 'figure'
'body': '\\\\begin{figure}\n\t\\\\includegraphics$2{${1:/path/to/figure}}\n\t\\\\caption{$3}\n\t\\\\label{$4}\n\\\\end{figure}'
'gather(*)':
'prefix': 'gather'
'body': '\\\\begin{gather$1}\n\t$0\n\\\\end{gather$1}'
'itemize':
'prefix': 'itemize'
'body': '\\\\begin{itemize}\n\t\\\\item $0\n\\\\end{itemize}'
'table':
'prefix': 'table'
'body': '\\\\begin{table}\n\t\\\\caption{$1}\n\t\\\\label{$3}\n\t$2\n\\\\end{table}'
'tabular':
'prefix': 'tabular'
'body': '\\\\begin{tabular}{${1:column alignment}}\n\t$0\n\\\\end{tabular}'
# element
'inline math - $$':
'prefix': 'inline'
'body': '$$1$$0'
# math, taken from https://github.com/SublimeText/LaTeXTools/blob/master/LaTeX%20math.sublime-completions
'.source.weave.latex .string.other.math':
'math italic':
'prefix': 'it'
'body': '\\\\mathit{$1}$0'
'math boldface':
'prefix': 'bf'
'body': '\\\\mathbf{$1}$0'
'math blackboard':
'prefix': 'bb'
'body': '\\\\mathbb{$1}$0'
'math roman':
'prefix': 'rm'
'body': '\\\\mathrm{$1}$0'
'math sans-serif':
'prefix': 'sf'
'body': '\\\\mathsf{$1}$0'
'math calligraphy':
'prefix': 'cal'
'body': '\\\\mathcal{$1}$0'
'fraction':
'prefix': 'frac'
'body': '\\\\frac{$1}{$2}$0'
'aligned':
'prefix': 'aligned'
'body': '\\\\begin{aligned}$1\n\t$0\n\\\\end{aligned}'
'gathered':
'prefix': 'gathered'
'body': '\\\\begin{gathered}$1\n\t$0\n\\\\end{gathered}'
'matrix':
'prefix': 'matrix'
'body': '\\\\begin{$1matrix$2}$3\n\t$0\n\\\\end{$1matrix$2}'
# Beamer
'.text.tex.latex.beamer':
'Frame':
'prefix': 'frame'
'body': '\\\\begin{frame}[t]{${1:title}}\n\t${2:body}\n\\\\end{frame}\n%--- Next Frame ---%'
'Columns':
'prefix': 'cols'
'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'
# other
'.source.weave.latex .meta.function.environment.list':
'\\\\item[description]':
'prefix': 'itd'
'body': '\\\\item[${1:description}] ${0:item}'
// styles file (not found)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment