-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow multiple .bib files #87
Comments
This sounds reasonable since bibtex also supports multiple bib files. We can support this through multiple values in :bibtex-files: attributes. Since I am running out of time, the implementation may be late. A PR is highly welcome. |
We often classify references in 'applicable documents' and 'reference documents' with different citation styles (e.g. AD.1, RD.1). The ideal is to put these in separate bibliography files, and IIRC we managed to do something like this in biblatex. Note that |
Question, since I might have time to look at this. How would we allow multiple files being specified and what precedent would we have for duplicated bib-keys? We could add a I would be inclined to first ensure we have multiple bib-files, and turn all the bibliography file reference to arrays. When citing something, the search order would be to start with he first file in the added attribute. A later patch could group them (like supported by asciidoctor-bibliography) |
The convention in AsciiDoc is to make it a comma-separated list. An attribute value cannot accommodate all the formatting of a YAML value, so it's best not to lead users into the belief that it can. And there are other places in the AsciiDoc ecosystem where comma-separate values are used to pass multiple items. |
I got something initial working with a basic unit test, I would appreciate a pre-review (it is not sufficiently tested yet, I just added one unit test for it), before I finish this. I am not super fluent with ruby yet... 😉 master...lorrden:asciidoctor-bibtex:master Can I create a PR and mark it as a draft or something (like with gitlab)? |
Yes, GitHub has that feature. (Please note that I am not the maintainer of this project, I am just adding my input). |
Hello,
thank you very much for the useful extension.
Would it be possible to support multiple source .bib files? I keep my bib data grouped into separate files, and being able to use these directly would allow me to use it as-is rather than trying to merge it, which is not always easy (e.g. because of conflicting bibtex string macros).
I'm guessing that this could be implemented either by allowing :bibtex-file: to take multiple values (in which case the blbliography::[] macro would then output the combined data) and/or by expanding each bibliography::somefile.bib[] into the bib data taken from that specific file.
The text was updated successfully, but these errors were encountered: