Add bibtex-mode snippets (#251)

* Add bibtex-mode snippets

* Move yas-indent-line option to .yas-setup.el file
This commit is contained in:
Guillermo Robles 2018-03-24 19:24:04 +01:00 committed by Andrea Crotti
parent 2b4c4d7ef7
commit 79fc648da3
15 changed files with 251 additions and 0 deletions

View File

@ -0,0 +1,4 @@
(require 'yasnippet)
(add-hook 'bibtex-mode-hook
'(lambda () (set (make-local-variable 'yas-indent-line) nil)))

View File

@ -0,0 +1,17 @@
# -*- mode: snippet -*-
# name: article
# key: article
# --
@article{ ${title},
author = {${author}},
title = {${title}},
journal = {${journal}},
year = {${year}}${,
volume = {${volume}}}${,
number = {${number}}}${,
pages = {${pages}}}${,
month = {${month}}}${,
note = {${note}}}
}
$0

22
snippets/bibtex-mode/book Normal file
View File

@ -0,0 +1,22 @@
# -*- mode: snippet -*-
# name: book
# key: book
# --
@book{ ${title},
author = {${author}},
editor = {${editor}}
title = {${title}},
publisher = {${publisher}},
year = {${year}}${,
volume = {${volume}}}${,
number = {${number}}}${,
series = {${series}}}${,
type = {${type}}}${,
address = {${address}}}${,
edition = {${edition}}}${,
month = {${month}}}${,
isbn = {${isbn}}}${,
note = {${note}}}
}
$0

View File

@ -0,0 +1,15 @@
# -*- mode: snippet -*-
# name: booklet
# key: booklet
# --
@booklet{ ${title},
author = {${author}}${,
howpublished = {${howpublished}}}${,
address = {${address}}}${,
year = {${year}}}${,
month = {${month}}}${,
volume = {${volume}}}${,
note = {${note}}}
}
$0

View File

@ -0,0 +1,21 @@
# -*- mode: snippet -*-
# name: conference
# key: conference
# --
@conference{ ${title},
author = {${author}},
title = {${title}},
booktitle = {${booktitle}},
year = {${year}},
editor = {${editor}}${,
volume = {${volume}}}${,
series = {${series}}}${,
pages = {${pages}}}${,
address = {${address}}}${,
month = {${month}}}${,
organization = {${organization}}}${,
publisher = {${publisher}}}${,
note = {${note}}}
}
$0

View File

@ -0,0 +1,21 @@
# -*- mode: snippet -*-
# name: inbook
# key: inbook
# --
@inbook{ ${title},
author = {${author}},
title = {${title}},
chapter = {${chapter}}${,
pages = {${pages}}},
publisher = {${publisher}},
year = {${year}},
volume = {${volume}}${,
series = {${series}}}${,
type = {${type}}}${,
address = {${addre}ss}}${,
edition = {${edition}}}${,
month = {${month}}}${,
note = {${note}}}
}
$0

View File

@ -0,0 +1,23 @@
# -*- mode: snippet -*-
# name: incollection
# key: incollection
# --
@incollection{ ${title},
author = {${author}},
title = {${title}},
booktitle = {${booktitle}},
publisher = {${publisher}},
year = {${year}}${,
editor = {${editor}}}${,
volume = {${volume}}}${,
series = {${series}}}${,
type = {${type}}}${,
chapter = {${chapter}}}${,
pages = {${pages}}}${,
address = {${address}}}${,
edition = {${edition}}}${,
month = {${month}}}${,
note = {${note}}}
}
$0

View File

@ -0,0 +1,21 @@
# -*- mode: snippet -*-
# name: inproceedings
# key: inproceedings
# --
@inproceedings{ ${title},
author = {${author}},
title = {${title}},
booktitle = {${booktitle}},
year = {${year}},
editor = {${editor}}${,
volume = {${volume}}}${,
series = {${series}}}${,
pages = {${pages}}}${,
address = {${address}}}${,
month = {${month}}}${,
organization = {${organization}}}${,
publisher = {${publisher}}}${,
note = {${note}}}
}
$0

View File

@ -0,0 +1,14 @@
# -*- mode: snippet -*-
# name: manual
# key: manual
# --
@manual{ ${title},
title = {${title}}${,
author = {${author}}}${,
organization = {${organization}}}${,
address = {${address}}}${,
editor = {${editor}}}${,
month = {${month}}}${,
year = {${year}}}${,
note = {${note}}}
}

View File

@ -0,0 +1,16 @@
# -*- mode: snippet -*-
# name: masterthesis
# key: masterthesis
# --
@masterthesis{ ${title},
author = {${author}},
title = {${title}},
school = {${school}},
year = {${year}}${,
type = {${type}}}${,
address = {${address}}}${,
month = {${month}}}${,
note = {${note}}}
}
$0

14
snippets/bibtex-mode/misc Normal file
View File

@ -0,0 +1,14 @@
# -*- mode: snippet -*-
# name: misc
# key: misc
# --
@misc{ ${title}${,
author = {${author}}}${,
title = {${title}}}${,
howpublished = {${howpublished}}}${,
month = {${month}}}${,
year = {${year}}}${,
note = {${note}}}
}
$0

View File

@ -0,0 +1,16 @@
# -*- mode: snippet -*-
# name: phdthesis
# key: phdthesis
# --
@phdthesis{ ${title},
author = {${author}},
title = {${title}},
school = {${school}},
year = {${year}}${,
type = {${type}}}${,
address = {${address}}}${,
month = {${month}}}${,
note = {${note}}}
}
$0

View File

@ -0,0 +1,18 @@
# -*- mode: snippet -*-
# name: proceedings
# key: proceedings
# --
@proceedings{ ${title},
title = {${title}},
year = {${year}}${,
editor = {${editor}}}${,
volume = {${volume}}}${,
series = {${series}}}${,
address = {${address}}}${,
month = {${month}}}${,
organization = {${organization}}}${,
publisher = {${publisher}}}${,
note = {${note}}}
}
$0

View File

@ -0,0 +1,16 @@
# -*- mode: snippet -*-
# name: techreport
# key: techreport
# --
@techreport{ ${title},
author = {${author}},
title = {${title}},
institution = {${institution}},
year = {${year}},
type = {${type}}${,
address = {${address}}}${,
month = {${month}}}${,
note = {${note}}}
}
$0

View File

@ -0,0 +1,13 @@
# -*- mode: snippet -*-
# name: unpublished
# key: unpublished
# --
@unpublished{ ${title},
author = {${author}},
title = {${title}},
note = {${note}}${,
month = {${month}}}${,
year = {${year}}}
}
$0