summaryrefslogtreecommitdiff
path: root/luasnip_snippets/bib.json
blob: 6f237c71dc5f4c748937eb5959dc0ca83ffd500a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
  "online": {
    "prefix": "online",
    "description": "Online resource",
    "body": [
      "@online{${1:name},",
      "\tauthor={${2:author}\\},",
      "\ttitle={${3:title}\\},",
      "\tdate={${4:date}\\},",
      "\turl={${5:url}\\}",
      "\\}",
      "$0"
    ],
    "luasnip": {
      "priority": -50
    }
  },
  "article": {
    "prefix": "article",
    "description": "Article reference",
    "body": [
      "@article{${1:name},",
      "\tauthor={${2:author}\\},",
      "\ttitle={${3:title}\\},",
      "\tjournaltitle={${4:journal}\\},",
      "\tvolume={${5:NN}\\},",
      "\tnumber={${6:NN}\\},",
      "\tyear={${7:YYYY}\\},",
      "\tpages={${8:NN}--${9:NN}\\}",
      "\\}",
      "$0"
    ]
  },
  "book": {
    "prefix": "book",
    "description": "Book reference",
    "body": [
      "@book{${1:name},",
      "\tauthor={${2:author}\\},",
      "\ttitle={${3:title}\\},",
      "\tsubtitle={${4:subtitle}\\},",
      "\tyear={${5:YYYY}\\},",
      "\tlocation={${6:somewhere}\\},",
      "\tpublisher={${7:publisher}\\},",
      "\tpages={${8:NN}--${9:NN}\\}",
      "\\}",
      "$0"
    ]
  },
  "inb": {
    "prefix": "inb",
    "description": "In Book reference",
    "body": [
      "@inbook{${1:name},",
      "\tauthor={${2:author}\\},",
      "\ttitle={${3:title}\\},",
      "\tsubtitle={${4:subtitle}\\},",
      "\tbooktitle={${5:book}\\},",
      "\teditor={${6:editor}\\},",
      "\tyear={${7:YYYY}\\},",
      "\tlocation={${8:somewhere}\\},",
      "\tpublisher={${9:publisher}\\},",
      "\tpages={${10:NN}--${11:NN}\\}",
      "\\}",
      "$0"
    ]
  }
}