Skip to content

Instantly share code, notes, and snippets.

@bluenex
Last active December 10, 2015 02:47
Show Gist options
  • Save bluenex/8c1523d32b5156ac566f to your computer and use it in GitHub Desktop.
Save bluenex/8c1523d32b5156ac566f to your computer and use it in GitHub Desktop.
Collection of snippets in Atom

All snippets are placed in snippets.cson, you can find it from Atom > Open Your Snippets.

LaTeX

'.text.tex.latex':
  'bold text':
    'prefix': 'b'
    'body': '\\\\textbf{$1}'
  'italic text':
    'prefix': 'i'
    'body': '\\\\textit{$1}'
  'underline text':
    'prefix': 'u'
    'body': '\\\\underline{$1}'
  'emphasize text':
    'prefix': 'em'
    'body': '\\\\emph{$1}'
  'long emphasize text':
    'prefix': 'lem'
    'body': '{\\\\em $1}'
  'small caps text':
    'prefix': 'sc'
    'body': '\\\\textsc{$1}'
  'new paragraph':
    'prefix': 'pa'
    'body': '\\\\par $1'
  'itemize':
    'prefix': 'itemi'
    'body': """
    \\\\begin{itemize}
      \\\\item $1
    \\\\end{itemize}
    """
  'item':
    'prefix': 'item'
    'body': '\\\\item $1'
  'use package':
    'prefix': 'usep'
    'body': '\\\\usepackage{$1}'
  'use image package':
    'prefix': 'usegrap'
    'body': '\\\\usepackage{graphicx}'
  'add image columnwidth':
    'prefix': 'imgc'
    'body': '\\\\includegraphics[width=$1\\\\columnwidth]{$2}'
  'add image textwidth':
    'prefix': 'imgt'
    'body': '\\\\includegraphics[width=$1\\\\textwidth]{$2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment