jkitchin / org-ref

org-mode modules for citations, cross-references, bibliographies in org-mode and useful bibtex tools to go with it.
GNU General Public License v3.0
1.37k stars 244 forks source link

Include in bibliography but not in text #686

Closed smythp closed 5 years ago

smythp commented 5 years ago

Is there a way to include works in the bibliography that weren't' cited in the text?

jkitchin commented 5 years ago

I believe you are looking for the nocite link type, e.g. nocite:somekey

smythp commented 5 years ago

Perfect! Thank you for the help.

jkitchin commented 3 years ago

It depends on what you mean.

[[nocite:]] will export to \nocite{}

It will be a red link, since it can't match anything (I am pushing a fix for this). you might look at org-ref-build-full-bibliography too.

John


Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu

On Wed, Dec 30, 2020 at 1:49 AM Peter Prevos notifications@github.com wrote:

Hi, does org-ref support the \nocite{*} syntax?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jkitchin/org-ref/issues/686#issuecomment-752349572, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMJCVU7IQNNXEMAD6GYCYTSXLEQPANCNFSM4JCMWUGA .

pprevos commented 3 years ago

Hi John, thanks for the fast answer. I was a bit confused by the red link.

However, org-ref is not required. I simply add \nocite{*} after the bibliography call and that does the trick.

averter commented 3 years ago

It depends on what you mean. [[nocite:]] will export to \nocite{} It will be a red link, since it can't match anything (I am pushing a fix for this). you might look at org-ref-build-full-bibliography too. John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Wed, Dec 30, 2020 at 1:49 AM Peter Prevos @.**> wrote: Hi, does org-ref support the \nocite{} syntax? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#686 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMJCVU7IQNNXEMAD6GYCYTSXLEQPANCNFSM4JCMWUGA .

This works like a charm for LaTeX but for some reason not when exporting into html. Is it normal or should I open a new issue? Thanks in advance.

jkitchin commented 3 years ago

HTML export is pretty limited. That sounds normal. It is very hard to get good html export in general for citations. You might be able to create some code based on https://kitchingroup.cheme.cmu.edu/blog/2015/12/11/Introduction-to-a-citation-processor-in-org-ref/ for what you are trying to do.