Skip to content

Commit 79fc648

Browse files
wynroAndreaCrotti
authored andcommitted
Add bibtex-mode snippets (#251)
* Add bibtex-mode snippets * Move yas-indent-line option to .yas-setup.el file
1 parent 2b4c4d7 commit 79fc648

File tree

15 files changed

+251
-0
lines changed

15 files changed

+251
-0
lines changed

snippets/bibtex-mode/.yas-setup.el

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
(require 'yasnippet)
2+
3+
(add-hook 'bibtex-mode-hook
4+
'(lambda () (set (make-local-variable 'yas-indent-line) nil)))

snippets/bibtex-mode/article

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# -*- mode: snippet -*-
2+
# name: article
3+
# key: article
4+
# --
5+
@article{ ${title},
6+
author = {${author}},
7+
title = {${title}},
8+
journal = {${journal}},
9+
year = {${year}}${,
10+
volume = {${volume}}}${,
11+
number = {${number}}}${,
12+
pages = {${pages}}}${,
13+
month = {${month}}}${,
14+
note = {${note}}}
15+
}
16+
17+
$0

snippets/bibtex-mode/book

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# -*- mode: snippet -*-
2+
# name: book
3+
# key: book
4+
# --
5+
@book{ ${title},
6+
author = {${author}},
7+
editor = {${editor}}
8+
title = {${title}},
9+
publisher = {${publisher}},
10+
year = {${year}}${,
11+
volume = {${volume}}}${,
12+
number = {${number}}}${,
13+
series = {${series}}}${,
14+
type = {${type}}}${,
15+
address = {${address}}}${,
16+
edition = {${edition}}}${,
17+
month = {${month}}}${,
18+
isbn = {${isbn}}}${,
19+
note = {${note}}}
20+
}
21+
22+
$0

snippets/bibtex-mode/booklet

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# -*- mode: snippet -*-
2+
# name: booklet
3+
# key: booklet
4+
# --
5+
@booklet{ ${title},
6+
author = {${author}}${,
7+
howpublished = {${howpublished}}}${,
8+
address = {${address}}}${,
9+
year = {${year}}}${,
10+
month = {${month}}}${,
11+
volume = {${volume}}}${,
12+
note = {${note}}}
13+
}
14+
15+
$0

snippets/bibtex-mode/conference

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# -*- mode: snippet -*-
2+
# name: conference
3+
# key: conference
4+
# --
5+
@conference{ ${title},
6+
author = {${author}},
7+
title = {${title}},
8+
booktitle = {${booktitle}},
9+
year = {${year}},
10+
editor = {${editor}}${,
11+
volume = {${volume}}}${,
12+
series = {${series}}}${,
13+
pages = {${pages}}}${,
14+
address = {${address}}}${,
15+
month = {${month}}}${,
16+
organization = {${organization}}}${,
17+
publisher = {${publisher}}}${,
18+
note = {${note}}}
19+
}
20+
21+
$0

snippets/bibtex-mode/inbook

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# -*- mode: snippet -*-
2+
# name: inbook
3+
# key: inbook
4+
# --
5+
@inbook{ ${title},
6+
author = {${author}},
7+
title = {${title}},
8+
chapter = {${chapter}}${,
9+
pages = {${pages}}},
10+
publisher = {${publisher}},
11+
year = {${year}},
12+
volume = {${volume}}${,
13+
series = {${series}}}${,
14+
type = {${type}}}${,
15+
address = {${addre}ss}}${,
16+
edition = {${edition}}}${,
17+
month = {${month}}}${,
18+
note = {${note}}}
19+
}
20+
21+
$0

snippets/bibtex-mode/incollection

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# -*- mode: snippet -*-
2+
# name: incollection
3+
# key: incollection
4+
# --
5+
@incollection{ ${title},
6+
author = {${author}},
7+
title = {${title}},
8+
booktitle = {${booktitle}},
9+
publisher = {${publisher}},
10+
year = {${year}}${,
11+
editor = {${editor}}}${,
12+
volume = {${volume}}}${,
13+
series = {${series}}}${,
14+
type = {${type}}}${,
15+
chapter = {${chapter}}}${,
16+
pages = {${pages}}}${,
17+
address = {${address}}}${,
18+
edition = {${edition}}}${,
19+
month = {${month}}}${,
20+
note = {${note}}}
21+
}
22+
23+
$0

snippets/bibtex-mode/inproceedings

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# -*- mode: snippet -*-
2+
# name: inproceedings
3+
# key: inproceedings
4+
# --
5+
@inproceedings{ ${title},
6+
author = {${author}},
7+
title = {${title}},
8+
booktitle = {${booktitle}},
9+
year = {${year}},
10+
editor = {${editor}}${,
11+
volume = {${volume}}}${,
12+
series = {${series}}}${,
13+
pages = {${pages}}}${,
14+
address = {${address}}}${,
15+
month = {${month}}}${,
16+
organization = {${organization}}}${,
17+
publisher = {${publisher}}}${,
18+
note = {${note}}}
19+
}
20+
21+
$0

snippets/bibtex-mode/manual

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# -*- mode: snippet -*-
2+
# name: manual
3+
# key: manual
4+
# --
5+
@manual{ ${title},
6+
title = {${title}}${,
7+
author = {${author}}}${,
8+
organization = {${organization}}}${,
9+
address = {${address}}}${,
10+
editor = {${editor}}}${,
11+
month = {${month}}}${,
12+
year = {${year}}}${,
13+
note = {${note}}}
14+
}

snippets/bibtex-mode/masterthesis

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# -*- mode: snippet -*-
2+
# name: masterthesis
3+
# key: masterthesis
4+
# --
5+
@masterthesis{ ${title},
6+
author = {${author}},
7+
title = {${title}},
8+
school = {${school}},
9+
year = {${year}}${,
10+
type = {${type}}}${,
11+
address = {${address}}}${,
12+
month = {${month}}}${,
13+
note = {${note}}}
14+
}
15+
16+
$0

0 commit comments

Comments
 (0)