X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;ds=sidebyside;f=dotfiles%2Fvim%2F.vim%2Fsnippets%2Fbib.snippets;fp=dotfiles%2Fvim%2F.vim%2Fsnippets%2Fbib.snippets;h=02598b510fce490d196e808319a4cccf57f2672a;hb=9fef42756f5fd61ea6b19d1c4cd628c8d9fa92ce;hp=0000000000000000000000000000000000000000;hpb=30117934eddd457d8abef2cb0ed11c48e2de71d9;p=shutils.git diff --git a/dotfiles/vim/.vim/snippets/bib.snippets b/dotfiles/vim/.vim/snippets/bib.snippets new file mode 100644 index 0000000..02598b5 --- /dev/null +++ b/dotfiles/vim/.vim/snippets/bib.snippets @@ -0,0 +1,298 @@ +# author: Heinz Hofbauer (https://bitbucket.org/moebiusstrip/vimfiles) + +## PART 1 with optional fields + +# An article from a journal or magazine. +snippet article + @article{${1:key}, + author = {${2}}, + title = {${3}}, + journal = {${4}}, + year = {${5}}, + OPTvolume = {}, + OPTnumber = {}, + OPTpages = {}, + OPTmonth = {}, + OPTnote = {}, + OPTkey = {}, + } +# A book with an explicit publisher. +snippet book + @book{${1:key}, + author = {${2}}, + editor = {${3}}, + title = {${4}}, + publisher = {${5}}, + year = {${6}}, + OPTvolume = {}, + OPTnumber = {}, + OPTseries = {}, + OPTaddress = {}, + OPTedition = {}, + OPTmonth = {}, + OPTnote = {}, + OPTkey = {}, + } +# A work that is printed and bound, but without a named publisher or sponsoring institution. +snippet booklet + @booklet{${1:key}, + title = {${2}}, + OPTauthor = {}, + OPThowpublished = {}, + OPTaddress = {}, + OPTmonth = {}, + OPTyear = {}, + OPTnote = {}, + OPTkey = {}, + } +# A part of a book, usually untitled. May be a chapter (or section or whatever) and/or a range of pages. +snippet inbook + @inbook{${1:key}, + author = {${2}}, + editor = {${3}}, + title = {${4}}, + chapter = {${5}}, + pages = {${6}}, + publisher = {${7}}, + year = {${8}}, + OPTvolume = {}, + OPTnumber = {}, + OPTseries = {}, + OPTtype = {}, + OPTaddress = {}, + OPTedition = {}, + OPTmonth = {}, + OPTnote = {}, + OPTkey = {}, + } +# A part of a book having its own title. +snippet incollection + @incollection{${1:key}, + author = {${2}}, + title = {${3}}, + booktitle = {${4}}, + publisher = {${5}}, + year = {${6}}, + OPTeditor = {}, + OPTvolume = {}, + OPTnumber = {}, + OPTseries = {}, + OPTtype = {}, + OPTchapter = {}, + OPTpages = {}, + OPTaddress = {}, + OPTedition = {}, + OPTmonth = {}, + OPTnote = {}, + OPTkey = {}, + } +# An article in a conference proceedings. +snippet inproceedings + @inproceedings{${1:key}, + author = {${2}}, + title = {${3}}, + booktitle = {${4}}, + year = {${5}}, + OPTeditor = {}, + OPTvolume = {}, + OPTnumber = {}, + OPTseries = {}, + OPTpages = {}, + OPTaddress = {}, + OPTmonth = {}, + OPTorganization = {}, + OPTpublisher = {}, + OPTnote = {}, + OPTkey = {}, + } +# Technical documentation. +snippet manual + @manual{${1:key}, + title = {${2}}, + OPTauthor = {}, + OPTorganization = {}, + OPTaddress = {}, + OPTedition = {}, + OPTmonth = {}, + OPTyear = {}, + OPTnote = {}, + OPTkey = {}, + } +# A Master's thesis. +snippet mastersthesis + @mastersthesis{${1:key}, + author = {${2}}, + title = {${3}}, + school = {${4}}, + year = {${5}}, + OPTtype = {}, + OPTaddress = {}, + OPTmonth = {}, + OPTnote = {}, + OPTkey = {}, + } +# For use when nothing else fits. +snippet misc + @misc{${1:key}, + none = {${2}}, + OPTauthor = {}, + OPTtitle = {}, + OPThowpublished = {}, + OPTmonth = {}, + OPTyear = {}, + OPTnote = {}, + OPTkey = {}, + } +# A Ph.D. thesis. +snippet phdthesis + @phdthesis{${1:key}, + author = {${2}}, + title = {${3}}, + school = {${4}}, + year = {${5}}, + OPTtype = {}, + OPTaddress = {}, + OPTmonth = {}, + OPTnote = {}, + OPTkey = {}, + } +# The proceedings of a conference. +snippet proceedings + @proceedings{${1:key}, + title = {${2}}, + year = {${3}}, + OPTeditor = {}, + OPTvolume = {}, + OPTnumber = {}, + OPTseries = {}, + OPTaddress = {}, + OPTmonth = {}, + OPTpublisher = {}, + OPTorganization = {}, + OPTnote = {}, + OPTkey = {}, + } +# A report published by a school or other institution, usually numbered within a series. +snippet techreport + @techreport{${1:key}, + author = {${2}}, + title = {${3}}, + institution = {${4}}, + year = {${5}}, + OPTtype = {}, + OPTnumber = {}, + OPTaddress = {}, + OPTmonth = {}, + OPTnote = {}, + OPTkey = {}, + } +# A document having an author and title, but not formally published. +snippet unpublished + @unpublished{${1:key}, + author = {${2}}, + title = {${3}}, + note = {${4}}, + OPTmonth = {}, + OPTyear = {}, + OPTkey = {}, + } + +## PART 2 without optional fields (cleansuffix) + +# An article from a journal or magazine. +snippet articleclean + @article{${1:key}, + author = {${2}}, + title = {${3}}, + journal = {${4}}, + year = {${5}}, + } +# A book with an explicit publisher. +snippet bookclean + @book{${1:key}, + author = {${2}}, + editor = {${3}}, + title = {${4}}, + publisher = {${5}}, + year = {${6}}, + } +# A work that is printed and bound, but without a named publisher or sponsoring institution. +snippet bookletclean + @booklet{${1:key}, + title = {${2}}, + } +# A part of a book, usually untitled. May be a chapter (or section or whatever) and/or a range of pages. +snippet inbookclean + @inbook{${1:key}, + author = {${2}}, + editor = {${3}}, + title = {${4}}, + chapter = {${5}}, + pages = {${6}}, + publisher = {${7}}, + year = {${8}}, + } +# A part of a book having its own title. +snippet incollectionclean + @incollection{${1:key}, + author = {${2}}, + title = {${3}}, + booktitle = {${4}}, + publisher = {${5}}, + year = {${6}}, + } +# An article in a conference proceedings. +snippet inproceedingsclean + @inproceedings{${1:key}, + author = {${2}}, + title = {${3}}, + booktitle = {${4}}, + year = {${5}}, + } +# Technical documentation. +snippet manualclean + @manual{${1:key}, + title = {${2}}, + } +# A Master's thesis. +snippet mastersthesisclean + @mastersthesis{${1:key}, + author = {${2}}, + title = {${3}}, + school = {${4}}, + year = {${5}}, + } +# For use when nothing else fits. +snippet miscclean + @misc{${1:key}, + none = {${2}}, + } +# A Ph.D. thesis. +snippet phdthesisclean + @phdthesis{${1:key}, + author = {${2}}, + title = {${3}}, + school = {${4}}, + year = {${5}}, + } +# The proceedings of a conference. +snippet proceedingsclean + @proceedings{${1:key}, + title = {${2}}, + year = {${3}}, + } +# A report published by a school or other institution, usually numbered within a series. +snippet techreportclean + @techreport{${1:key}, + author = {${2}}, + title = {${3}}, + institution = {${4}}, + year = {${5}}, + } +# A document having an author and title, but not formally published. +snippet unpublishedclean + @unpublished{${1:key}, + author = {${2}}, + title = {${3}}, + note = {${4}}, + }