Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save peter-herman/cc066559d8502eaa074a2699f5e12a71 to your computer and use it in GitHub Desktop.
Save peter-herman/cc066559d8502eaa074a2699f5e12a71 to your computer and use it in GitHub Desktop.
Latex Snippets
{
// Place your snippets for latex here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"Article Citation": {
"prefix":"@article",
"body": [
"@article{$1,",
"\tauthor = {$2},",
"\ttitle = {$3},",
"\tjournal = {$4},",
"\tvolume = {$5},",
"\tnumber = {$6},",
"\tyear = {$7},",
"\tpages = {$8}",
"}"
],
"description":"Add template for article citation"
},
"Techreport Citation": {
"prefix":"@techreport",
"body": [
"@techreport{$1,",
"\tauthor = {$2},",
"\ttitle = {$3},",
"\tinstitution = {$4},",
"\tmonth = {$5},",
"\tyear = {$6},",
"\tnumber = {$7},",
"\ttype = {\\notype}",
"}"
],
"description":"Add template for techreport citation"
},
"Book Citation": {
"prefix":"@book",
"body": [
"@book{$1,",
"\tauthor = {$2},",
"\ttitle = {$3},",
"\tpublisher = {$4},",
"\taddress = {$5},",
"\tyear = {$6}",
"}"
],
"description":"Add template for book citation"
},
"Incollection Citation": {
"prefix":"@incollection",
"body": [
"@incollection{$1,",
"\tauthor = {$2},",
"\ttitle = {$3},",
"\tpages = {$6},",
"\tyear = {$7},",
"\tbooktitle = {$8},",
"\teditor = {$9},",
"\tpublisher = {$10},",
"\taddress = {$11}",
"}"
],
"description":"Add template for book citation"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment