[Vim-latex-cvs] vimfiles/ftplugin/latex-suite bibtex.vim,1.5,1.6
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2004-08-05 01:48:23
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25743 Modified Files: bibtex.vim Log Message: New: Allow even more user customization of the fields for each bibliography type. This is because presently the user is limited to the options defined by the s:_{letter}_standsfor variables (Thomas Link). Index: bibtex.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/bibtex.vim,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** bibtex.vim 15 Jun 2003 08:23:14 -0000 1.5 --- bibtex.vim 5 Aug 2004 01:48:15 -0000 1.6 *************** *** 217,220 **** --- 217,221 ---- while i < strlen(fields) let field = strpart(fields, i, 1) + if exists('s:'.field.'_standsfor') let field_name = s:{field}_standsfor *************** *** 224,227 **** --- 225,248 ---- let i = i + 1 endwhile + + " If the user wants even more fine-tuning... + if Tex_GetVarValue('Bib_'.choosetype.'_extrafields') != '' + + let extrafields = Tex_GetVarValue('Bib_'.choosetype.'_extrafields') + + let i = 1 + while 1 + let field_name = Tex_Strntok(extrafields, "\n", i) + if field_name == '' + break + endif + + let retval = retval.field_name." = {<++>},\n" + + let i = i + 1 + endwhile + + endif + let retval = retval.'otherinfo = {<++>}'."\n" let retval = retval."}<++>"."\n" |