andras-simonyi / oc-csl-ns

The Org CSL citation processor, with some potential Next Steps
GNU General Public License v3.0
1 stars 0 forks source link

Bibentry-like support? #5

Open bdarcus opened 2 years ago

bdarcus commented 2 years ago

This isn't specific to this processor, but is relevant to it, and possibly related functionality here and in citeproc-el.

Someone on reddit is asking for \bibentry support in the natbib output.

I had previously noted that in CSL, you can get this output at the style level (by choosing a style that substitutes the bib config for the citation), but in thinking about that, it's not really ideal.

WDYT about adding a new "entry" or some such style that works across the three main processors?

The only wrinkle I see is the \nobibliography bit the OP notes. Is that easy enough to address? If I read it right, it sounds like they addressed this by adding a :noprint parameter to #+printbibliography, which seems the right solution, if a little awkward (print vs noprint).

PS - I put in the FSF assignment email, so I can more easily do patches.

andras-simonyi commented 2 years ago

Thanks for the suggestion, this is obviously a valid use case and shouldn't be difficult to implement. Disregarding the \nobibliography problem for the bib(la)tex processors and concentrating only on CSL, some details have to be worked out:

bdarcus commented 2 years ago

Tentative:

andras-simonyi commented 2 years ago

another thing I've forgotten to add: as usual, how much sense using this functionality might make will depend on the CSL style: e.g., with a numeric style by default the entry will contain a leading number (which one?) which doesn't make much sense in this context. (They could be removed, of course, but I'm not sure whether it's worth the effort.)

bdarcus commented 2 years ago

For numeric styles, just ignore the number?

bdarcus commented 2 years ago

I just saw this on reddit; very cool.

#+title: CV
#+cite_export: biblatex 
#+bibliography: /path/to/my.bib

Some text here. [cite/n:@*]

#+print_bibliography: