tex.json 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  1. {
  2. "\"gentbl(\\d+)x(\\d+)\"": {
  3. "body": "endsnippet\n\npre_expand \"add_row(snip)\"\nsnippet \"tr(\\d+)\" \"Add table row of dimension ...\" r",
  4. "description": "Generate table of *width* by *height*",
  5. "prefix": "\"gentbl(\\d+)x(\\d+)\""
  6. },
  7. "()": {
  8. "body": "\\left( 1 \\right) $0",
  9. "description": "left( right)",
  10. "prefix": "()"
  11. },
  12. "->": {
  13. "body": "\\rightarrow",
  14. "description": "right arrow",
  15. "prefix": "->"
  16. },
  17. "/": {
  18. "body": "\\\\frac{${VISUAL}}{$1}$0",
  19. "description": "Fraction",
  20. "prefix": "/"
  21. },
  22. "//": {
  23. "body": "\\\\frac{$1}{$2}$0",
  24. "description": "Fraction",
  25. "prefix": "//"
  26. },
  27. "<=": {
  28. "body": "\\le ",
  29. "description": "leq",
  30. "prefix": "<="
  31. },
  32. ">=": {
  33. "body": "\\ge ",
  34. "description": "geq",
  35. "prefix": ">="
  36. },
  37. "Beamer": {
  38. "body": "% !TeX program = lualatex\n\\documentclass[aspectratio=169, 11pt]{beamer}\n\\usetheme[numbering=fraction, progressbar=frametitle, titleformat=allcaps, block=fill]{metropolis} % Use metropolis theme\n% \\usecolortheme{owl}\n\\newcommand{\\sub}{\\small\\alert}\n\\usepackage{appendixnumberbeamer}\n\\usepackage{graphicx}\n\\usepackage{booktabs}\n\\usepackage[scale=2]{ccicons}\n\\usepackage{pgfplots}\n\\usepackage{xspace}\n\\usepackage[utf8]{inputenc}\n\\usepackage{hyperref}\n\\usepackage{siunitx}\n\\usepackage[font=small,labelformat=empty, skip=0.5em]{caption}\n\\usepackage{chemformula}\n\\usepackage{paralist}\n\\usepackage{fontspec}\n\\usepackage[export]{adjustbox}\n\\usepackage{layout}\n\\newfontfamily\\DejaSans{DejaVu Sans}\n\\addtobeamertemplate{frametitle}{}{\\vspace{-0.8em}} % decrease\n\\setsansfont{Arial}\n\\setmonofont{Arial}\n\\definecolor{ASUmaroon}{RGB}{140,29,64}\n\\definecolor{ASUgold}{RGB}{255,198,39}\n\\setbeamercolor{background canvas}{bg=white}\n\\setbeamercolor{normal text}{fg=black}\n\\setbeamercolor{alerted text}{fg=ASUmaroon}\n\\setbeamercolor{frametitle}{bg=black, fg=ASUgold}\n\\setbeamercolor{progress bar}{fg=ASUgold}\n\\makeatletter\n\\setlength{\\metropolis@titleseparator@linewidth}{3pt}\n\\setlength{\\metropolis@progressonsectionpage@linewidth}{3pt}\n\\setlength{\\metropolis@progressinheadfoot@linewidth}{3pt}\n\\makeatother\n\n% Titlepage {{{2 %\n\\title{${1: title}}\n\\subtitle{${2: title}}\n\\date{\\today}\n\\author[shortname]{Julian Tao}\n\\institute[shortinst]{Associate Professor, Arizona State University}\n\\titlegraphic{\\vspace{4cm}\\flushright\\includegraphics[height=3cm]{{/home/julian/Dropbox\n(ASU)/LaTex/Beamer/Metro Theme/logo.pdf}}}\n% 2}}} %\n\n\\begin{document}\n\\maketitle\n\n\\begin{frame}{Table of contents}\n \\setbeamertemplate{section in toc}[sections numbered]\n \\tableofcontents[hideallsubsections]\n\\end{frame}\n\n\\section{${3:sectiontitle}}\n\n\\begin{frame}[fragile]{${4:frametitle}}\n$0\n\\end{frame}\n\n\\begin{frame}{Animation}\n \\begin{itemize}[<+- | alert@+>]\n \\item \\alert<4>{This is\\only<4>{ really} important}\n \\item Now this\n \\item And now this\n \\end{itemize}\n\\end{frame}\n\n\\begin{frame}[standout, label=thanks]\n Thank you!\n\\includegraphics[width=0.8\\textwidth]{{/home/julian/Dropbox (ASU)/LaTex/Beamer/Metro Theme/Acknowledge-logo.pdf}}\n\\end{frame}\n\n\\appendix\n\n\\begin{frame}[allowframebreaks]{References}\n\n \\bibliography{demo}\n \\bibliographystyle{abbrv}\n\n\\end{frame}\n\n\\begin{frame}[fragile]{Backup slides}\nBackup\n\\end{frame}\n\n\n\\end{document}",
  39. "description": "Research Presentation",
  40. "prefix": "Beamer"
  41. },
  42. "JTnote": {
  43. "body": "%!TEX root = <master file name> % for multi-files\n\\documentclass[12pt,letterpaper]{article}\n\n\\newcommand{\\ReportingDate}{\\textsc${1:date}} % update note date\n\\newcommand{\\userName}{Julian Tao} \t\t\t\t\t%update your name\n\\newcommand{\\institution}{BiG Group @ ASU}\n\\usepackage{JTnotes}\n\n\\begin{document}\n\\univlogo\n\n\\title{${2:title}} % update this short title for your weekly report\n\\chead{\\textsc{\\thetitle}}\n{\\Huge \\ReportingDate}\n\\vspace{5ex}\n\\newline\n\\emph{${3:brief summary}} % replace this using your brief summary\n\n$0\n\n%\\newpage\n% \\bibliographystyle{plainnat}\n% \\bibliography{%%}\n\\end{document}",
  44. "description": "JT Notes",
  45. "prefix": "JTnote"
  46. },
  47. "NSF": {
  48. "body": "\n\n\\documentclass[letterpaper, 11pt]{article}\n\\usepackage[margin=1in]{geometry}\n\\usepackage{xcolor}\n\\usepackage{microtype}\n\\usepackage[utf8]{inputenc}\n\\usepackage{graphicx}\n\\usepackage{wrapfig}\n\\usepackage{amsmath}\n\\usepackage{index}\n\\usepackage{fancyhdr}\n\\usepackage{chemformula}\n\\usepackage{paralist}\n\\setlength{\\pltopsep}{0.2em}\n\\setlength{\\floatsep}{0ex}\n\\setlength{\\textfloatsep}{2em}\n\\setlength{\\intextsep}{0.2em}\n\n\\usepackage[font=small,labelfont=bf, labelsep=period, skip=0.5em]{caption}\n\\usepackage[compact]{titlesec}\n%\\titlespacing{\\section}{0pt}{1ex}{1ex}\n%\\titlespacing{\\subsection}{0pt}{1ex}{0ex}\n%\\titlespacing{\\subsubsection}{0pt}{0.5ex}{0ex}\n\n\\begin{document}\n%\t\\renewcommand{\\headrulewidth}{2pt}\n%\t\\title{\\Large{\\textbf{\\LaTeX Tutorial}}}\n%\t\\author{ By Julian Tao}\n%\t\\maketitle\n%\n%\t\\tableofcontents\n%\n\n\\section{Project Overview}\n\\enlargethispage{\\baselineskip}\n$0\n\n\\begin{compactenum}[(1)]\n\t\\item \\textbf{}\n\\end{compactenum}\n\n\n\n\\section{Motivation, Rationale and Significance}\n\\subsection{title}\n\n\n\n\n\\end{document}\n",
  49. "description": "NSF proposal template",
  50. "prefix": "NSF"
  51. },
  52. "SI": {
  53. "body": "\\SI{1}{${2}}",
  54. "description": "SI-Unit",
  55. "prefix": "SI"
  56. },
  57. "__": {
  58. "body": "_{$1}$0",
  59. "description": "subscript",
  60. "prefix": "__"
  61. },
  62. "abs": {
  63. "body": "\\begin{abstract}\n\t$0\n\\end{abstract}",
  64. "description": "abstract environment",
  65. "prefix": "abs"
  66. },
  67. "ac": {
  68. "body": "\\ac{${1:acronym}}\n$0",
  69. "description": "Acroynm normal",
  70. "prefix": "ac"
  71. },
  72. "acl": {
  73. "body": "\\acl{${1:acronym}}\n$0",
  74. "description": "Acroynm expanded",
  75. "prefix": "acl"
  76. },
  77. "al": {
  78. "body": "\\begin{align}\n\t$0\n\\end{align}",
  79. "description": "Align",
  80. "prefix": "al"
  81. },
  82. "alnn": {
  83. "body": "\\begin{align*}\n\t$0\n\\end{align*}",
  84. "description": "Align without a number",
  85. "prefix": "alnn"
  86. },
  87. "beg": {
  88. "body": "\\begin{${1:something}}\n\t$0\n\\end{$1}",
  89. "description": "begin{} / end{}",
  90. "prefix": "beg"
  91. },
  92. "bf": {
  93. "body": "\\textbf{$1} $0",
  94. "description": "Bold",
  95. "prefix": "bf"
  96. },
  97. "cb": {
  98. "body": "^3",
  99. "description": "^3",
  100. "prefix": "cb"
  101. },
  102. "cha": {
  103. "body": "\\chapter{${1:chapter name}}%\n\\label{cha:${2:${1/\\\\\\w+\\{(.*?)\\}|\\\\(.)|(\\w+)|([^\\w\\\\]+)/(?4:_:\\L$1$2$3\\E)/ga}}}\n\n$0",
  104. "description": "Chapter",
  105. "prefix": "cha"
  106. },
  107. "comp": {
  108. "body": "\\begin{compactenum}[(1)]\n\t\\item $0\n\\end{compactenum}",
  109. "description": "compactenum lists",
  110. "prefix": "comp"
  111. },
  112. "dd": {
  113. "body": "\\[\n\t${0}\n\\]",
  114. "description": "Display math",
  115. "prefix": "dd"
  116. },
  117. "ddb": {
  118. "body": "\\DTLdisplaydb{$1}",
  119. "description": "display database",
  120. "prefix": "ddb"
  121. },
  122. "deg": {
  123. "body": "^\\circ",
  124. "prefix": "deg"
  125. },
  126. "desc": {
  127. "body": "\\begin{description}\n\t\\item[$1] $0\n\\end{description}",
  128. "description": "Description",
  129. "prefix": "desc"
  130. },
  131. "dm": {
  132. "body": "\\[\n1\n.\\] $0",
  133. "description": "Math",
  134. "prefix": "dm"
  135. },
  136. "dv": {
  137. "body": "\\dv[1]{${2}}{${3}}",
  138. "description": "Derivative",
  139. "prefix": "dv"
  140. },
  141. "enum": {
  142. "body": "\\begin{enumerate}\n\t\\item $0\n\\end{enumerate}",
  143. "description": "Enumerate",
  144. "prefix": "enum"
  145. },
  146. "eqa": {
  147. "body": "\\begin{eqnarray}\n\t1 & ${2:${VISUAL}} & ${0:${VISUAL}}\n\\end{eqnarray}",
  148. "description": "Equation array",
  149. "prefix": "eqa"
  150. },
  151. "eqann": {
  152. "body": "\\begin{eqnarray*}\n\t1 & ${2:${VISUAL}} & ${0:${VISUAL}}\n\\end{eqnarray*}",
  153. "description": "Equation array without a number",
  154. "prefix": "eqann"
  155. },
  156. "eqnn": {
  157. "body": "\\begin{equation*}\n\t$0\n\\end{equation*}",
  158. "description": "Equation without a number",
  159. "prefix": "eqnn"
  160. },
  161. "equation": {
  162. "body": "\\begin{equation}\n\t${0}\n\\end{equation}",
  163. "description": "Environment: Equation",
  164. "prefix": "equation"
  165. },
  166. "exam": {
  167. "body": "\n\\documentclass[11pt,addpoints]{exam}\n\\usepackage{amsfonts,amssymb,amsmath, amsthm}\n\\usepackage{graphicx}\n\\usepackage{systeme}\n\\usepackage{pgf,tikz,pgfplots}\n\\usepackage{enumerate}\n\\usepackage{lastpage}\n\\usepackage[utf8]{inputenc}\n\\pgfplotsset{compat=1.15}\n\\usepgfplotslibrary{fillbetween}\n\\usepackage{mathrsfs}\n\\usetikzlibrary{arrows}\n\\usetikzlibrary{calc}\n\n\n\\pagestyle{headandfoot}\n\n\\firstpageheader{\\textbf {{$1: Examname} (\\numpoints\\ points)\\\\ }}{}{Name: \\underline{\\hspace{2in}}}\n%\\firstpageheadrule\n\n\\runningheader{{$1: Examname}}{}{Page \\thepage\\ of \\numpages}\n\\runningheadrule\n\n\\firstpagefooter{}{}{}\n\\runningfooter{}{}{}\n\n\n\\begin{document}\n\\begin{center}\n\\combinedgradetable[v][questions]\n\\end{center}\n\n \\textbf{Instructions:}\n$2\n \\fbox{\\parbox{\\textwidth}{\n In recognition of and in the spirit of the Arizona State University Honor Code, I certify that I will neither give nor receive unpermitted aid on this examination.\n\n \\vspace{1cm}\n\n \\hspace*{\\fill}\n Signature: \\quad \\rule{10cm}{0.5pt}\n \\hspace*{\\fill}\n\n \\bigskip\n }}\n\n\n\\clearpage\n\n\\begin{questions} %------------------------------------------\n\\question\n$0\n\\begin{parts}\n\n\\part[5]\n\n\\end{parts}\n\\droptotalpoints\n\n\n\\newpage %---------------------------------------------------\n\n\n\\end{questions}\n\n\\end{document}",
  168. "description": "exam template",
  169. "prefix": "exam"
  170. },
  171. "f2c": {
  172. "body": "\\begin{frame}[t]{${1:title}}\n\t\\begin{columns}\n\t\t\\begin{column}{${2:0.5}\\textwidth}\n\t\t\t\\begin{figure}[htpb]\n\t\t\t\t\\centering\n\t\t\t\t\\includegraphics[width=\\textwidth,height=0.8\\textheight,keepaspectratio]{${4:name.ext}}%\n\t\t\t\t\\caption{${4/(\\w+)\\.\\w+/\\u$1/}}%\n\t\t\t\t\\label{fig:${4/(\\w+)\\.\\w+/$1/}}\n\t\t\t\\end{figure}\n\t\t\\end{column}\n\t\t\\begin{column}{${3:0.5}\\textwidth}\n\t\t$0\n\t\t\\end{column}\n\t\\end{columns}\n\\end{frame}",
  173. "description": "frame with two columns of a figure and text",
  174. "prefix": "f2c"
  175. },
  176. "f2f": {
  177. "body": "\\begin{frame}[t]{${1:title}}\n\t\\begin{columns}\n\t\t\\begin{column}{${2:0.5}\\textwidth}\n\t\t\t\\begin{figure}[htpb]\n\t\t\t\t\\centering\n\t\t\t\t\\includegraphics[width=\\textwidth,height=0.8\\textheight,keepaspectratio]{${4:name.ext}}%\n\t\t\t\t\\caption{${4/(\\w+)\\.\\w+/\\u$1/}}%\n\t\t\t\t\\label{fig:${4/(\\w+)\\.\\w+/$1/}}\n\t\t\t\\end{figure}\n\t\t\\end{column}\n\t\t\\begin{column}{${3:0.5}\\textwidth}\n\t\t\t\\begin{figure}[htpb]\n\t\t\t\t\\centering\n\t\t\t\t\\includegraphics[width=\\textwidth,height=0.8\\textheight,keepaspectratio]{${5:name.ext}}%\n\t\t\t\t\\caption{${5/(\\w+)\\.\\w+/\\u$1/}}%\n\t\t\t\t\\label{fig:${5/(\\w+)\\.\\w+/$1/}}\n\t\t\t\\end{figure}\n\t\t\\end{column}\n\t\\end{columns}\n\t$0\n\\end{frame}",
  178. "description": "frame with two figures",
  179. "prefix": "f2f"
  180. },
  181. "fig": {
  182. "body": "\\begin{figure}[${2:htpb}]\n\t\\centering\n\t\\includegraphics[width=${3:0.8}\\linewidth]{${4:name.ext}}\n\t\\caption{${4/(\\w+)\\.\\w+/\\u$1/}$0}%\n\t\\label{fig:${4/(\\w+)\\.\\w+/$1/}}\n\\end{figure}",
  183. "description": "Figure environment",
  184. "prefix": "fig"
  185. },
  186. "fr": {
  187. "body": "\\begin{frame}[t]{${1:title}}\n$0\n\\end{frame}",
  188. "description": "Frame",
  189. "prefix": "fr"
  190. },
  191. "gln": {
  192. "body": "\\newglossaryentry{${1:identifier}}\n{\n name={${2:name}},\n first={${3:first occurrence}},\n sort={${4:sort value}},\n description={${0:description}},\n}",
  193. "description": "New glossary item",
  194. "prefix": "gln"
  195. },
  196. "glnl": {
  197. "body": "\\longnewglossaryentry{${1:identifier}}\n{\n name={${2:name}},\n first={${3:first occurrence}},\n sort={${4:sort value}},\n}\n{\n ${0:description}\n}",
  198. "description": "New long glossary item",
  199. "prefix": "glnl"
  200. },
  201. "hw": {
  202. "body": "\n\\documentclass{homeworg}\n\\title{HW \\# $1}\n\\author{}\n\n\\begin{document}\n\n\\maketitle\n\n\\problem\n$0\n\\problem*\n\\problem[10]\n\n\n\\end{document}",
  203. "description": "homework template",
  204. "prefix": "hw"
  205. },
  206. "inkscape": {
  207. "body": "\\usepackage{import}\n\\usepackage{pdfpages}\n\\usepackage{transparent}\n\\usepackage{xcolor}\n\n\\newcommand{\\incfig}[2][1]{%\n \\def\\svgwidth{#1\\columnwidth}\n \\import{./figures/}{#2.pdf_tex}\n}\n\n\\pdfsuppresswarningpagegroup=1",
  208. "description": "Include premeables to enable inkscape integration",
  209. "prefix": "inkscape"
  210. },
  211. "it": {
  212. "body": "\\item $0",
  213. "description": "Individual item",
  214. "prefix": "it"
  215. },
  216. "ita": {
  217. "body": "\\textit{$1} $0",
  218. "description": "Italics",
  219. "prefix": "ita"
  220. },
  221. "item": {
  222. "body": "\\begin{itemize}\n\t\\item $0\n\\end{itemize}",
  223. "description": "Itemize",
  224. "prefix": "item"
  225. },
  226. "ldb": {
  227. "body": "\\DTLloadrawdb{$1}{$2}",
  228. "description": "load database",
  229. "prefix": "ldb"
  230. },
  231. "lim": {
  232. "body": "\\lim_{${1:n} \\to ${2:\\infty}} ",
  233. "description": "limit",
  234. "prefix": "lim"
  235. },
  236. "limsup": {
  237. "body": "\\limsup_{${1:n} \\to ${2:\\infty}} ",
  238. "description": "limsup",
  239. "prefix": "limsup"
  240. },
  241. "lp": {
  242. "body": "\\left(${1:${VISUAL:contents}}\\right)$0",
  243. "description": "Long parenthesis",
  244. "prefix": "lp"
  245. },
  246. "lr": {
  247. "body": "\\left( 1 \\right) $0",
  248. "description": "left( right)",
  249. "prefix": "lr"
  250. },
  251. "lr(": {
  252. "body": "\\left( 1 \\right) $0",
  253. "description": "left( right)",
  254. "prefix": "lr("
  255. },
  256. "lr[": {
  257. "body": "\\left[ 1 \\right] $0",
  258. "description": "left[ right]",
  259. "prefix": "lr["
  260. },
  261. "lra": {
  262. "body": "\\left<1 \\right>$0",
  263. "description": "leftangle rightangle",
  264. "prefix": "lra"
  265. },
  266. "lrb": {
  267. "body": "\\left\\\\{ 1 \\right\\\\} $0",
  268. "description": "left\\{ right\\}",
  269. "prefix": "lrb"
  270. },
  271. "lr{": {
  272. "body": "\\left\\\\{ 1 \\right\\\\} $0",
  273. "description": "left\\{ right\\}",
  274. "prefix": "lr{"
  275. },
  276. "lr|": {
  277. "body": "\\left| 1 \\right| $0",
  278. "description": "left| right|",
  279. "prefix": "lr|"
  280. },
  281. "mk": {
  282. "body": "$${1}$`!p\nif t[2] and t[2][0] not in [',', '.', '?', '-', ' ']:\n\tsnip.rv = ' '\nelse:\n\tsnip.rv = ''\n`$2",
  283. "description": "Math",
  284. "prefix": "mk"
  285. },
  286. "ni": {
  287. "body": "\\noindent\n$0",
  288. "description": "Non-indented paragraph",
  289. "prefix": "ni"
  290. },
  291. "ooo": {
  292. "body": "\\infty",
  293. "description": "\\infty",
  294. "prefix": "ooo"
  295. },
  296. "pac": {
  297. "body": "\\usepackage`!p snip.rv='[' if t[1] else \"\"`${1:options}`!p snip.rv = ']' if t[1] else \"\"`{${2:package}}$0",
  298. "description": "Package",
  299. "prefix": "pac"
  300. },
  301. "par": {
  302. "body": "\\paragraph{${1:${VISUAL:paragraph name}}}%\n\\label{par:${2:${1/\\\\\\w+\\{(.*?)\\}|\\\\(.)|(\\w+)|([^\\w\\\\]+)/(?4:_:\\L$1$2$3\\E)/ga}}}\n\n$0",
  303. "description": "Paragraph",
  304. "prefix": "par"
  305. },
  306. "part": {
  307. "body": "\\frac{\\partial ${1:V}}{\\partial ${2:x}} $0",
  308. "description": "d/dx",
  309. "prefix": "part"
  310. },
  311. "pdv": {
  312. "body": "\\pdv[1]{${2}}{${3}}",
  313. "description": "Partial Derivatie",
  314. "prefix": "pdv"
  315. },
  316. "rd": {
  317. "body": "^{($1)}$0",
  318. "description": "to the ... power",
  319. "prefix": "rd"
  320. },
  321. "rec": {
  322. "body": "%%\n% Julian Tao Color Letterhead\n% LaTeX Template\n% June 2020\n\n\n\\documentclass[11pt,letterpaper]{letter} %this controls the paper style and font size\n\\usepackage{graphicx} % necessary for logos\n\\usepackage{parskip} % for spacing\n\\usepackage{geometry} % so that page 2> have 1\" margins\n\\usepackage{fancyhdr} % for fancy headers\n\\usepackage{lastpage}\n\\usepackage{wrapfig}\n\\pagestyle{fancy}\n\\renewcommand{\\headrulewidth}{0pt}\n\\fancyhead{} % footer for pages 2 on\n\\lfoot{\\footnotesize {\\textit{Letter from \\Who{} regarding \\forWho}}} % Left footer\n\\cfoot{} % Change for center footer\n\\rfoot{\\footnotesize Page \\thepage\\ of \\pageref{LastPage}} % Right footer page #s\n\\renewcommand{\\footrulewidth}{0pt}\n\n%Sender Information -- Edit this to fill in the header\n\\def\\Who{Julian Tao} % Fill in your name here\n\\def\\forWho{${1:Candidate}} % Fill in candidates name\n\\def\\Title{Associate Professor} % Your title\n\\def\\Where{SSEBE} % Your department/institution\n\\def\\Address{GWC 126 $|$ 650 E Tyler Mall} % Your address\n\\def\\CityZip{Tempe, AZ, 85281} % Your city, zip code, country, etc\n\\def\\Email{E-mail: julian.tao@asu.edu} % Your email address\n\\def\\TEL{Phone: (480)-965-1108 } % Your phone number\n\\def\\URL{https://sites.google.com/asu.edu/big} % Your URL\n\\longindentation=0pt\n\\address{\\Who\\\\\\ \\Title\\\\\\ \\Address\\\\\\ \\CityZip\\\\\\ \\Email\\\\\\ \\TEL\\\\\\ \\URL}\n%first page margins are different to accommodate the letterhead\n\n\\topmargin=-1.2in % Moves the top margin; here it is a negative value to move the text up\n\\textheight=9.5in % Total text height for this page\n\\oddsidemargin=-10pt % Left margin; widened here with a negative value\n\\textwidth=7in % Text width\n%\\let\\raggedleft\\raggedright % Makes the date appear on the left\n\n\\begin{document}\n\n\\begin{letter}{${2:Recipient name} \\\\\\ ${3:Street} \\\\\\ ${4:City}\\\\\\ ${5:Country} \\\\\\ [\\parskip]\nRe:${6:topic}} %put the recipient information here and maybe a reference line\n\n\\begin{center}\n\n\\begin{picture}(1000,1)\n \\put(0,-60){\\includegraphics[width=\\textwidth]{{/home/julian/Dropbox\n (ASU)/LaTex/RecLetter/Letterhead3.png}}}\n% \\put(160,33){\\textbf{\\footnotesize \\Who }}\n% \\put(160,22){\\footnotesize \\Title }\n% \\put(160,11){\\footnotesize \\Where }\n% \\put(260,33){\\footnotesize \\Address }\n% \\put(260,22){\\footnotesize \\CityZip }\n% \\put(260,11){\\footnotesize \\TEL }\n% \\put(260,0){\\footnotesize \\Email }\n% \\put(260,-11){\\footnotesize \\URL }\n \\put(0,-60){\\rule{\\textwidth}{0.4pt}}\n\\end{picture}\n\\end{center}\n\\vspace{25mm}\n\n\\opening{Dear $2,}\n\n$0\n\n\\closing{Sincerely,}\n\\vspace{-5em}\n\\fromsig{\\includegraphics{{/home/julian/Dropbox\n(ASU)/LaTex/RecLetter/signature.png}}} %You can put an image of your signature here.\n\n\\end{letter}\n\n\\end{document}",
  323. "description": "recletters",
  324. "prefix": "rec"
  325. },
  326. "sec": {
  327. "body": "\\section{${1:${VISUAL:section name}}}%\n\\label{sec:${2:${1/\\\\\\w+\\{(.*?)\\}|\\\\(.)|(\\w+)|([^\\w\\\\]+)/(?4:_:\\L$1$2$3\\E)/ga}}}\n\n$0",
  328. "description": "Section",
  329. "prefix": "sec"
  330. },
  331. "sec*": {
  332. "body": "\\section*{${1:${VISUAL:section name}}}%\n\\label{sec:${2:${1/\\\\\\w+\\{(.*?)\\}|\\\\(.)|(\\w+)|([^\\w\\\\]+)/(?4:_:\\L$1$2$3\\E)/ga}}}\n\n${0}",
  333. "description": "Section",
  334. "prefix": "sec*"
  335. },
  336. "sq": {
  337. "body": "\\sqrt{1} $0",
  338. "description": "\\sqrt{}",
  339. "prefix": "sq"
  340. },
  341. "sr": {
  342. "body": "^2",
  343. "description": "^2",
  344. "prefix": "sr"
  345. },
  346. "ssub": {
  347. "body": "\\subsubsection{${1:${VISUAL:subsubsection name}}}%\n\\label{ssub:${2:${1/\\\\\\w+\\{(.*?)\\}|\\\\(.)|(\\w+)|([^\\w\\\\]+)/(?4:_:\\L$1$2$3\\E)/ga}}}\n\n$0",
  348. "description": "Subsubsection",
  349. "prefix": "ssub"
  350. },
  351. "ssub*": {
  352. "body": "\\subsubsection*{${1:${VISUAL:subsubsection name}}}%\n\\label{ssub:${2:${1/\\\\\\w+\\{(.*?)\\}|\\\\(.)|(\\w+)|([^\\w\\\\]+)/(?4:_:\\L$1$2$3\\E)/ga}}}\n\n${0}",
  353. "description": "Subsubsection",
  354. "prefix": "ssub*"
  355. },
  356. "sub": {
  357. "body": "\\subsection{${1:${VISUAL:subsection name}}}%\n\\label{sub:${2:${1/\\\\\\w+\\{(.*?)\\}|\\\\(.)|(\\w+)|([^\\w\\\\]+)/(?4:_:\\L$1$2$3\\E)/ga}}}\n\n$0",
  358. "description": "Subsection",
  359. "prefix": "sub"
  360. },
  361. "sub*": {
  362. "body": "\\subsection*{${1:${VISUAL:subsection name}}}%\n\\label{sub:${2:${1/\\\\\\w+\\{(.*?)\\}|\\\\(.)|(\\w+)|([^\\w\\\\]+)/(?4:_:\\L$1$2$3\\E)/ga}}}\n\n${0}",
  363. "description": "Subsection",
  364. "prefix": "sub*"
  365. },
  366. "subp": {
  367. "body": "\\subparagraph{${1:${VISUAL:subparagraph name}}}%\n\\label{par:${2:${1/\\\\\\w+\\{(.*?)\\}|\\\\(.)|(\\w+)|([^\\w\\\\]+)/(?4:_:\\L$1$2$3\\E)/ga}}}\n\n$0",
  368. "description": "Subparagraph",
  369. "prefix": "subp"
  370. },
  371. "sum": {
  372. "body": "\\sum_{n=${1:1}}^{${2:\\infty}} ${3:a_n z^n}",
  373. "description": "sum",
  374. "prefix": "sum"
  375. },
  376. "taba": {
  377. "body": "\\begin{${1:t}${1/(t)$|(a)$|(.*)/(?1:abular)(?2:rray)/}}{${2:c}}\n$0${2/(?<=.)(c|l|r)|./(?1: & )/g}\n\\end{$1${1/(t)$|(a)$|(.*)/(?1:abular)(?2:rray)/}}",
  378. "description": "tabular / array environment",
  379. "prefix": "taba"
  380. },
  381. "table": {
  382. "body": "\\begin{table}[${1:htpb}]\n\t\\centering\n\t\\caption{${2:caption}}\n\t\\label{tab:${3:label}}\n\t\\begin{${4:t}${4/(t)$|(a)$|(.*)/(?1:abular)(?2:rray)/}}{${5:c}}\n\t$0${5/(?<=.)(c|l|r)|./(?1: & )/g}\n\t\\end{$4${4/(t)$|(a)$|(.*)/(?1:abular)(?2:rray)/}}\n\\end{table}",
  383. "description": "Table environment",
  384. "prefix": "table"
  385. },
  386. "td": {
  387. "body": "^{$1}$0",
  388. "description": "to the ... power",
  389. "prefix": "td"
  390. },
  391. "templ-article": {
  392. "body": "\\documentclass[12pt, letterpaper]{article}\n\\usepackage[utf8]{inputenc}\n\\usepackage{graphicx}\n${1}\n\n\\begin{document}\n\n${0}\n\n\\end{document}",
  393. "description": "Template: standard article",
  394. "prefix": "templ-article"
  395. },
  396. "templ-minimal": {
  397. "body": "\\documentclass{minimal}\n\\begin{document}\n\nHello World!${0}\n\n\\end{document}",
  398. "description": "Template: Minimal",
  399. "prefix": "templ-minimal"
  400. },
  401. "templ-pdfinclude": {
  402. "body": "\\documentclass[letterpaper]{article}\n\\usepackage{pdfpages}\n\\usepackage{tikz}\n\\pagestyle{empty}\n\\begin{document}\n\n\\includepdf\n\tfitpaper,\n\tpages={1},\n\tpagecommand={\n\t\t\\tikz[overlay, remember picture] {...}\n\t}\n]{$0}\n\n\\end{document}",
  403. "description": "Template: Include PDF",
  404. "prefix": "templ-pdfinclude"
  405. },
  406. "templ-sintefmemo": {
  407. "body": "% TeX program = lualatex\n\\documentclass[english]{sintefmemo}\n\\usepackage{siunitx}\n\\usepackage{parskip}\n\\usepackage{graphicx}\n\\usepackage{csquotes}\n\\usepackage[\n\tbackref=true,\n\tbibstyle=numeric,\n\tcitestyle=numeric-comp,\n\tgiveninits=true,\n\tmaxbibnames=99,\n\tsorting=none,\n\tisbn=false,\n\turl=false,\n\t]{biblatex}\n\\usepackage{microtype}\n\\usepackage{hyperref}\n\\usepackage{cleveref}\n\\usepackage[\n\tmargin=10pt,\n\tfont=small,\n\tlabelfont=bf,\n\t]{caption}\n\n% SINTEF Memo title page\n\\title{$1}\n\\author{$2}\n\\date{\\today}\n\\recipient[${3:comments, agreed, attention, information}]{$4}\n\\project{$5}\n\n% Set up siunitx\n\\sisetup{range-phrase = --}\n\\sisetup{range-units = single}\n\n% Set up hyperref\n\\hypersetup{\n\tcolorlinks=true,\n\tlinkcolor=black,\n\turlcolor=cyan,\n\tcitecolor=black,\n}\n\n% Set up cleveref\n\\crefname{equation}{Eq.}{Eqs.}\n\\crefname{section}{Sec.}{Secs.}\n\\crefname{table}{Tab.}{Tabs.}\n\\crefname{listing}{Listing}{Listings}\n\\crefname{figure}{Fig.}{Figs.}\n\\crefname{subfigure}{Fig.}{Figs.}\n\\newcommand{\\crefrangeconjunction}{--}\n\n% Set up graphics-related things\n\\graphicspath{{./figures/}}\n\n% Options for biblatex\n\\addbibresource{references.bib}\n\n\\begin{document}\n\n\\frontmatter\n\n\\section{Introduction}\n$0\n\n\\section{Conclusion}\n\n% Fakesection: Bibliography\n\\printbibliography\n\n\\end{document}",
  408. "description": "Template: SINTEF Memo",
  409. "prefix": "templ-sintefmemo"
  410. },
  411. "templ-tikz": {
  412. "body": "\\documentclass{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{arrows}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{calc}\n\\begin{document}\n\n\\begin{tikzpicture}\n\t[\n\t\tthick\n\t]\n\t${0}\n\\end{tikzpicture}\n\n\\end{document}",
  413. "description": "Template: standalone Tikz figure",
  414. "prefix": "templ-tikz"
  415. },
  416. "und": {
  417. "body": "\\underline{$1} $0",
  418. "description": "Underline",
  419. "prefix": "und"
  420. },
  421. "begin": {
  422. "body": "\\begin{${1:something}}\n\t$0\n\\end{$1}",
  423. "description": "begin{} / end{}",
  424. "prefix": "begin"
  425. },
  426. "eqalign": {
  427. "body": "\\begin{align}\n\t$0\n\\end{align}",
  428. "description": "Align",
  429. "prefix": "eqalign"
  430. },
  431. "notation": {
  432. "body": "$1 &= \\text{$2} \\\\\\",
  433. "description": "notation of variables in an equation",
  434. "prefix": "notation"
  435. },
  436. "blindtext": {
  437. "body": "\\blindtext",
  438. "description": "add blindtext in LaTex",
  439. "prefix": "blind"
  440. },
  441. "wrap figure": {
  442. "body": [
  443. "\\begin{wrapfigure}{r}{${1:width}\\textwidth}",
  444. " \\includegraphics[width=${1:width}\\textwidth]{./img/${2:path}}",
  445. " \\caption{${3:cap}}",
  446. " \\label{fig-${4:label}}",
  447. "\\end{wrapfigure}"
  448. ],
  449. "description": "Add wrap figure with a caption and a label",
  450. "prefix": "wrap"
  451. }
  452. }