pcooksey / bibtex-js

BibTeX-js can parse a BibTeX-file and render it as part of an HTML file. This way, you can easily add a list of publications to your private homepage or display a list of recommended publications for a seminar. The way the entries are display can be customized using a simple template system and CSS.
MIT License
267 stars 67 forks source link

Local path to .bib doesn't display? #73

Open daydin opened 6 months ago

daydin commented 6 months ago

Hi!

I'm testing out this package for our academic purposes, and I came across this issue.

In the documents, it says that I should be able to enter the desired bibliography file as follows:

<bibtex src="test.bib"></bibtex>
<bibtex src="text1.bib"></bibtex>

or

<textarea id="bibtex_input" style="display:none;">
@book{book1,
  author = "Donald Knuth",
  title = "Concrete Mathematics"
}
</textarea>

However, the first option doesn't seem to work for me for a local file placed at the current working directory. For example, "test.bib" does not render, neither does anything else I place in the project dir tree.

That being said, if I add the contents of test.bib in the textarea tags, that works. Also, I am able to visualize the default demo libraries that are hosted on GitHub. It just doesn't seem to work for .bibs that I place inside the project. Any insight?

kopeckyf commented 6 months ago

Hi, this might be a duplicate of #41. It seems that bibtex-js needs to pull .bib files from web server (possibly localhost)