File with STRINGS
Opened this issue · 2 comments
Hi,
I really like this project. One feature I'm missing is the possibility to use a bib file containing abbreviations (@STRING
). We use a file called "abbrevs.bib" containing definitions like @STRING{PRL = {Phys.~Rev.~Lett.}}
. In a usual Latex file this is included first in \bibliography{...}
. If I include the directory containing all bib files (including abbrevs.bib) in my mkdocs.yml this leads to the error
pybtex.database.input.bibtex.UndefinedMacro: undefined string in line 9: IntJBifurcatChaos
This problem still occurs if I rename abbrevs.bib to aaa.bib to make sure it is loaded first (there are files beginning with a number). What is the problem here?
Thanks,
Jan
Hi @JaRoSchm
I'm going to bet this is due to the way the bibtex files are parsed. It's pulling each bibtex entry separately and processing them as such. I could pre-process everything as a batch. This will take some work as I have to figure out how to parse the "numbering" scheme consistently.
Just to confirm, you're using the more advanced pandoc processing and not the super basic simple citation processing? If not, I'd recommend you try the pandoc first. I will likely deprecate the simple processing or at least throw up warnings as I don't want to be developing a citation processor here, but rather offload that to pandoc.
Hi,
thanks for your answer. If using pandoc processing means that I've installed pandoc and pypandoc finds the pandoc installation, i.e. print(pypandoc.get_pandoc_version())
prints pandoc's version, then yes, I'm using that.