[Vim-latex-devel] Re: search for bibtex entry by regexp
Brought to you by:
srinathava,
tmaas
From: Fabian B. <f.b...@gm...> - 2006-03-24 06:07:48
|
Hi Srinath, * On 23 Mar 2006 * Srinath Avadhanula wrote: > Hi Fabian, > > On 3/23/06, Fabian Braennstroem <f.b...@gm...> wrote: > > > 4. What happens if you go to the ~/.vim/ftplugin/latex-suite directory > > > and type: > > > $python bibtools.py /path/to/bibtex/file > > > You should get a semi-formatted list of all the bibtex entries in > > > the given file. I'd like to know any errors this might generate. > > > > I get: > > > > `--> python bibtools.py /home/fab/HOME/Dissertation/CFD/Projects/Building_airflow/Paper/Ve rgleich_RANS-LES/biballsed.bib > > Traceback (most recent call last): > > File "bibtools.py", line 218, in ? > > bf = BibFile(sys.argv[1]) > > File "bibtools.py", line 165, in __init__ > > self.addfile(f) > > File "bibtools.py", line 180, in addfile > > b = Bibliography('@' + f, self.macros) > > File "bibtools.py", line 83, in __init__ > > raise "Only completely numeral fields can be left unquoted" > > Only completely numeral fields can be left unquoted > > > > Yup... This is most definitely where the problem stems from... It looks > like I was a little too strict in parsing the bibtex file. I relaxed the > parsing a little just now. Could you try replacing bibtools.py with the > following (see attached) version? If this makes things work (i.e you get > a formatted list), could you try if the \cite completion works? I don't > want to do an svn commit because there might still be outstanding > issues. Now, I get: `--> python bibtools.py /home/fab/HOME/Dissertation/CFD/Projects/Building_airflow/Paper/Vergleich_RANS-LES/biballsed.bib Traceback (most recent call last): File "bibtools.py", line 227, in ? bf = BibFile(sys.argv[1]) File "bibtools.py", line 174, in __init__ self.addfile(f) File "bibtools.py", line 189, in addfile b = Bibliography('@' + f, self.macros) File "bibtools.py", line 86, in __init__ value = m.group(2) + mn.group(0) AttributeError: 'NoneType' object has no attribute 'group' I just took a deeper look in my bib file and removed two entries, which had some problems with emacs/auctex' function 'validate bibtex entries'; but it does not change the output. Greetings! Fabian |