{ "Template": { "prefix": ["template", "\\template"], "body": [ "%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Define Article %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%", "\\documentclass{article}", "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%", "", "%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Using Packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%", "\\usepackage{geometry}", "\\usepackage{graphicx}", "\\usepackage{amssymb}", "\\usepackage{amsmath}", "\\usepackage{amsthm}", "\\usepackage{empheq}", "\\usepackage{mdframed}", "\\usepackage{booktabs}", "\\usepackage{lipsum}", "\\usepackage{graphicx}", "\\usepackage{color}", "\\usepackage{psfrag}", "\\usepackage{pgfplots}", "\\usepackage{bm}", "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%", "", "${3:% Other Settings}", "", "%%%%%%%%%%%%%%%%%%%%%%%%%% Page Setting %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%", "\\geometry{a4paper}", "", "%%%%%%%%%%%%%%%%%%%%%%%%%% Define some useful colors %%%%%%%%%%%%%%%%%%%%%%%%%%", "\\definecolor{ocre}{RGB}{243,102,25}", "\\definecolor{mygray}{RGB}{243,243,244}", "\\definecolor{deepGreen}{RGB}{26,111,0}", "\\definecolor{shallowGreen}{RGB}{235,255,255}", "\\definecolor{deepBlue}{RGB}{61,124,222}", "\\definecolor{shallowBlue}{RGB}{235,249,255}", "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%", "", "%%%%%%%%%%%%%%%%%%%%%%%%%% Define an orangebox command %%%%%%%%%%%%%%%%%%%%%%%%", "\\newcommand\\orangebox[1]{\\fcolorbox{ocre}{mygray}{\\hspace{1em}#1\\hspace{1em}}}", "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%", "", "%%%%%%%%%%%%%%%%%%%%%%%%%%%% English Environments %%%%%%%%%%%%%%%%%%%%%%%%%%%%%", "\\newtheoremstyle{mytheoremstyle}{3pt}{3pt}{\\normalfont}{0cm}{\\rmfamily\\bfseries}{}{1em}{{\\color{black}\\thmname{#1}~\\thmnumber{#2}}\\thmnote{\\,--\\,#3}}", "\\newtheoremstyle{myproblemstyle}{3pt}{3pt}{\\normalfont}{0cm}{\\rmfamily\\bfseries}{}{1em}{{\\color{black}\\thmname{#1}~\\thmnumber{#2}}\\thmnote{\\,--\\,#3}}", "\\theoremstyle{mytheoremstyle}", "\\newmdtheoremenv[linewidth=1pt,backgroundcolor=shallowGreen,linecolor=deepGreen,leftmargin=0pt,innerleftmargin=20pt,innerrightmargin=20pt,]{theorem}{Theorem}[section]", "\\theoremstyle{mytheoremstyle}", "\\newmdtheoremenv[linewidth=1pt,backgroundcolor=shallowBlue,linecolor=deepBlue,leftmargin=0pt,innerleftmargin=20pt,innerrightmargin=20pt,]{definition}{Definition}[section]", "\\theoremstyle{myproblemstyle}", "\\newmdtheoremenv[linecolor=black,leftmargin=0pt,innerleftmargin=10pt,innerrightmargin=10pt,]{problem}{Problem}[section]", "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%", "", "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Plotting Settings %%%%%%%%%%%%%%%%%%%%%%%%%%%%%", "\\usepgfplotslibrary{colorbrewer}", "\\pgfplotsset{width=8cm,compat=1.9}", "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%", "", "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Title & Author %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%", "\\title{${1:Title}}", "\\author{${2:Haoyun Qin}}", "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%", "", "\\begin{document}", " \\maketitle", " $0", "\\end{document}" ], "description": "Use the default template which includes a variety of packages and declared-commands. The template will also automatically generate the title and author, as well as date, and will formate the document." }, "Large Summation": { "prefix": ["sumlarge", "\\sumlarge"], "body": [ "\\displaystyle\\sum_{$1}^{$2}$3" ], "description": "Insert a large summation notation." }, "Inline Summation": { "prefix": ["suminline", "\\suminline"], "body": [ "\\sum_{$1}^{$2}$3" ], "description": "Insert an inline summation notation, (only in the cases when the environment is inline math environment)." }, "Inline Math": { "prefix": ["mathinline", "\\mathinline"], "body": [ "$ $1 $$0" ], "description": "Insert inline Math Environment." }, "Centered Math": { "prefix": ["mathcentered", "\\mathcentered"], "body": [ "$$ $0 $$" ], "description": "Insert centered Math Environment." }, "Section": { "prefix": ["section", "\\section"], "body": [ "\\section{$1}$0" ], "description": "Insert a new section." }, "Subsection": { "prefix": ["subsection", "\\subsection"], "body": [ "\\subsection{$1}$0" ], "description": "Insert a new subsection." }, "Header": { "prefix": ["header", "\\header", "##"], "body": "\\section*{$1}$0", "description": "Insert a section without index." }, "Header Small": { "prefix": ["headersmall", "\\headersmall", "###"], "body": "\\subsection*{$1}$0", "description": "Insert a subsection without index." }, "Italic Text": { "prefix": ["italic", "\\italic", "*"], "body": "\\textit{$1}$0", "description": "Insert italic text." }, "Bold Text": { "prefix": ["bold", "\\bold", "**"], "body": "\\textbf{$1}$0", "description": "Insert bold text." }, "Bold Italic Text": { "prefix": ["bolditalic", "\\bolditalic", "***"], "body": "\\textbf{\\textit{$1}}$0", "description": "Insert bold italic text." }, "Itemize": { "prefix": ["- ", "\\itemize", "itemize"], "body": [ "\\begin{itemize}", "\t\\item $1", "\\end{itemize}$0" ] }, "Up": { "prefix": ["to", "\\to"], "body": [ "^ {$1}$0" ], "description": "Superscript notation, as well as the power notation." }, "Theorem": { "prefix": ["theorem", "\\theorem"], "body": [ "\\begin{theorem}[${1:name of the theorem}]", "\t$0", "\\end{theorem}" ], "description": "Insert a theorem, whose style is already defined in the template. The serial number is automatically generated according to the section." }, "Problem": { "prefix": ["problem", "\\problem"], "body": [ "\\begin{problem}[${1:name of the problem}]", "\t$0", "\\end{problem}" ], "description": "Insert a problem, whose style is already defined in the template. The serial number is automatically generated according to the section." }, "Indent": { "prefix": ["tab", "\\tab"], "body": ["\\indent "], "description": "The equivalent of \"\\t\", also known as \"Tab\"" }, "Definition": { "prefix": ["definition", "\\definition"], "body": [ "\\begin{definition}[${1:name of the definition}]", "\t$0", "\\end{definition}" ], "description": "Insert a definition, whose style is already defined in the template. The serial number is automatically generated according to the section." }, "Proof": { "prefix": ["proof", "\\proof"], "body": [ "\\begin{proof}[Proof ${1:Other Information}]", "\t$0", "\\end{proof}" ], "description": "Insert a proof, whose style is already defined in the template. The serial number is automatically generated according to the section." }, "Large Integral": { "prefix": ["integrallarge", "\\integrallarge"], "body": [ "\\displaystyle\\int_{$1}^{$2}$3" ], "description": "Insert large integral notation." }, "Inline Integral": { "prefix": ["integralinline", "\\integralinline"], "body": [ "\\int_{$1}^{$2}$3" ], "description": "Insert inline integral notation, (only in the cases when the environment is inline math environment)." }, "Inline Fraction": { "prefix": ["fractioninline", "\\fractioninline"], "body": ["\\frac{$1}{$2}$0"], "description": ["Insert inline fraction notation, (only in the cases when the environment is inline math environment)."] }, "Large Fraction": { "prefix": ["fractionlarge", "\\fractionlarge"], "body": ["\\displaystyle\\frac{$1}{$2}$0"], "description": ["Insert large fraction notation"] }, "Create 2D Plot environment": { "prefix": ["plotenvironment2d", "\\plotenvironment2d"], "body": [ "\\begin{tikzpicture}", "\\begin{axis}[", "legend pos=outer north east,", "title=${1:Example},", "axis lines =${2| box, left, middle, center, right, none|},", "xlabel = \\$x\\$,", "ylabel = \\$y\\$,", "variable = t,", "trig format plots = rad,", "]", "$3", "\\end{axis}", "\\end{tikzpicture}$0" ], "description": "Create a 2DPlot Environment of pgfplots. The style declarations are already included in the snippet." }, "Plot 2D Graph": { "prefix": ["plotgraph2d", "\\plotgraph2d"], "body": [ "\\addplot [", "\tdomain=${1:-10}:${2:10}," , "\tsamples=70,", "\tcolor=${3:blue},", "\t]", "\t{${4:x^2 + 2*x + 1}};", "\\addlegendentry{$${5:x^2 + 2x + 1}$}", "$0" ], "description": "Plot a 2D Graph in the 2D graph environment, noted that this can also be used in the 3D environment." }, "Plot Circle 2D": { "prefix": ["plotcircle2d", "\\plotcircle2d"], "body": [ "\\addplot [", "\tdomain=0:2*3.14159265," , "\tsamples=70,", "\tcolor=${4:blue},", "\t]", "\t({${1:r}*cos(t)+${2:a}},{${1:r}*sin(t)+${3:b}});", "\\addlegendentry{$(x-${2:a})^2+(y-${3:b})^2=${1:r}^2$}$0" ], "description": "Plot a 2D Circle in the 2D graph environment, noted that this can also be used in the 3D environment." }, "Plot Line 2D": { "prefix": ["plotline2d", "\\plotline2d"], "body": [ "\\addplot [", "\tdomain=${4:x1}:${5:x2}," , "\tsamples=70,", "\tcolor=${3:blue},", "\t]", "\t{${1:a}*x+${2:b}};", "\\addlegendentry{$ y=${1:a}x+${2:b}$}$0" ], "description": "Plot a 2D Line in the 2D graph environment, noted that this can also be used in the 3D environment." }, "Plot Ellipse 2D": { "prefix": ["plotellipse2d", "\\plotellipse2d"], "body": [ "\\addplot [", "\tdomain=0:2*3.14159265," , "\tsamples=70,", "\tcolor=${5:blue},", "\t]", "\t({${1:a}*cos(t)+${3:x}},{${2:b}*sin(t)+${4:y}});", "\\addlegendentry{$\\frac{(x-${3:x})^2}{${1:a}^2}+\\frac{(y-${4:y})^2}{${2:b}^2}=1$}$0" ], "description": "Plot a 2D Ellipse in the 2D graph environment, noted that this can also be used in the 3D environment." }, "Plot Quadratic Function 2D by Point": { "prefix": ["plotquadraticfunction2dbypoint", "\\plotquadraticfunction2dbypoint"], "body": [ "\\addplot [", "\tdomain=${4:x1}:${5:x2}," , "\tsamples=70,", "\tcolor=${6:blue},", "\t]", "\t{${1:a}*(x-${2:m})*(x-${2:m})+${3:b}};", "\\addlegendentry{$ y=${1:a}(x-${2:m})^2+${3:b}$}$0" ], "description": "Plot a 2D graph of a quadratic function in the 2D graph environment by the given extrema, noted that this can also be used in the 3D environment." }, "Plot Smooth Curve By Point Set": { "prefix": ["plotsmoothcurvebypointset", "\\plotsmoothcurvebypointset"], "body": [ "\\addplot+[smooth]", "coordinates", "{", "${1:seperate the coordinates with spaces}", "};$0" ], "description": "Plot a Smooth Curve by point set (2D)." }, "Create 3D Plot Environment": { "prefix": ["plotenvironment3d", "\\plotenvironment3d"], "body": [ "\\begin{tikzpicture}", "\\begin{axis}[", "legend pos=outer north east,", "title=${1:Example},", "axis lines =${2| box, left, middle, center, right, none|},", "colormap/${3|hot,hot2,jet,blackwhite,bluered,cool,greenyellow,redyellow,violet|},", "xlabel = \\$x\\$,", "ylabel = \\$y\\$,", "zlabel = \\$z\\$,", "variable = t,", "trig format plots = rad,", "]", "$4", "\\end{axis}", "\\end{tikzpicture}$0" ], "description": "Create a 3DPlot Environment of pgfplots. The style declarations are already included in the snippet." }, "Plot 3D Graph": { "prefix": ["plotgraph3d", "\\plotgraph3d"], "body": [ "\\addplot3[", "\t${1|surf,mesh|},", "\tsamples=50,", "]", "{${2:x^2+y^2}};", "\\addlegendentry{\\$${3:x}\\$}$0" ], "description": "Plot a 3D Graph in the 3D graph environment created." }, "Create Align* Environment in Text": { "prefix": ["aligntext", "\\aligntext"], "body": [ "\\begin{align*}", "\t$1", "\\end{align*}$0" ], "description": "Create an align environment when the context is in the text environment." }, "Insert Problem Solving Index": { "prefix": ["problemindex", "\\problemindex"], "body": ["\\noindent\\textbf{$1} $0"], "description": "Insert problem solving index format." }, "Insert Solution Notation": { "prefix": ["solution", "\\solution"], "body": ["\\textit{ Sol. }"], "description": "Insert italic 'Sol.'" } }