# How to add a new node with bibtex information auto-filled?

**URL:** <https://org-roam.discourse.group/t/how-to-add-a-new-node-with-bibtex-information-auto-filled/2709>\
**Category:** How To\
**Created:** [July 27, 2022, 7:36am UTC](https://org-roam.discourse.group/t/how-to-add-a-new-node-with-bibtex-information-auto-filled/2709 "2022-07-27T07:36:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![wzt](https://avatars.discourse-cdn.com/v4/letter/w/76d3ee/32.png) [@wzt](https://org-roam.discourse.group/u/wzt)\
**Post date:** [July 27, 2022, 7:36am UTC](https://org-roam.discourse.group/t/how-to-add-a-new-node-with-bibtex-information-auto-filled/2709/1 "2022-07-27T07:36:47Z")

</div>

Hi all,

I have a .bib file which contains many bibtex entries. Now I want to insert a new node with bibtex information auto filled, possible by `org-roam-capture`, but it seems there is no interface to do this. Following are methods that did not work:

1. use `org-roam-capture`  
it does not work, because there is no completion, as it needs to manually input the tile,author information etc
2. use `ivy-bibtex`  
it can read bibtex information, but there is no interface for org-roam-template

It seems to me `org-roam-bibtex` did not provide and interface to link bibtex information to org-roam-capture, or maybe I miss something here?

It seems `helm-bibtex` have an interface to link bibtex information and `org-roam-capture`, but I perfer to use `ivy`, any way it seems to me, `org-roam-bibtex` should provide an uniform interface instead of require other module to provide it.

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [July 27, 2022, 10:26am UTC](https://org-roam.discourse.group/t/how-to-add-a-new-node-with-bibtex-information-auto-filled/2709/2 "2022-07-27T10:26:59Z")

</div>

You may be missing information from README ([this section](https://github.com/org-roam/org-roam-bibtex#usage)) and [manual](https://github.com/org-roam/org-roam-bibtex/blob/master/doc/orb-manual.org)?

> `org-roam-bibtex-mode`

> Call interactively `org-roam-bibtex-mode` or arrange your init file to perform this automatically.

> You can now access your bibliographical notes in `org-roam-directory` with `helm-bibtex`/`ivy-bibtex` or by opening `org-ref` links. ORB modifies the behaviour of the above packages to make them use `orb-edit-note` instead of their default note-management commands. To get their default behaviour back, disable `org-roam-bibtex-mode`.

---

<div class="post-metadata">

**Author:** ![wzt](https://avatars.discourse-cdn.com/v4/letter/w/76d3ee/32.png) [@wzt](https://org-roam.discourse.group/u/wzt)\
**Post date:** [July 27, 2022, 10:46am UTC](https://org-roam.discourse.group/t/how-to-add-a-new-node-with-bibtex-information-auto-filled/2709/3 "2022-07-27T10:46:35Z")

</div>

than you, but when I call `ivy-bibtex` it just let me select the entry and open pdf, there no action selection pop up. I use spacemacs, here is the configuration related

```auto
(defun wzt/init-org-roam-bibtex ()
  (use-package org-roam-bibtex
  :after org-roam
  :config
  (require 'org-ref)
  (require 'ivy-bibtex)
  (setq orb-insert-interface 'ivy-bibtex)
  (setq orb-note-actions-interface 'ivy)
  (setq orb-preformat-keywords '("citekey" "author" "title" "url" "year"))
  (setq org-roam-capture-templates
        '(("r" "bibliography reference" plain
           "%?"
           :if-new
           (file+head "~/org/literature/${citekey}.org" "#+TITLE: ${title}\n")
           :unnarrowed t)))
    )
  )

```

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [July 27, 2022, 11:59am UTC](https://org-roam.discourse.group/t/how-to-add-a-new-node-with-bibtex-information-auto-filled/2709/4 "2022-07-27T11:59:44Z")

</div>

Where is org-roam-bibtex-mode turned on?

---

<div class="post-metadata">

**Author:** ![wzt](https://avatars.discourse-cdn.com/v4/letter/w/76d3ee/32.png) [@wzt](https://org-roam.discourse.group/u/wzt)\
**Post date:** [July 27, 2022, 12:26pm UTC](https://org-roam.discourse.group/t/how-to-add-a-new-node-with-bibtex-information-auto-filled/2709/5 "2022-07-27T12:26:34Z")

</div>

I turn it on manually, but it does not work, I suspect this ivy-bibtex is not compatible with org-roam-bibtex

I debugged the value of `ivy-bibtex-default-action` its value is `ivy-bibtex-open-any`, so it seems the setting of `org-roam-bibtex` for `ivy-bibtex` did not take effect.

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [July 27, 2022, 3:56pm UTC](https://org-roam.discourse.group/t/how-to-add-a-new-node-with-bibtex-information-auto-filled/2709/6 "2022-07-27T15:56:47Z")

</div>

Sorry I can’t tell you much more but the same README section (Usage) seems to suggest you would be using one of the following commands:

> orb-note-actions  
> Type M-x orb-note-actions to easily access additional commands useful in note’s context. These commands are run with the note’s BibTeX key as an argument. The key is taken from the :ROAM\_REFS: file or heading property.
> 
> orb-insert-link  
> Select a bibliography entry and insert a link to a note associated with it. If the note does not exist yet, create it. Similar to org-roam-node-insert, if a region is selected, it becomes the link description.

---

<div class="post-metadata">

**Author:** ![wzt](https://avatars.discourse-cdn.com/v4/letter/w/76d3ee/32.png) [@wzt](https://org-roam.discourse.group/u/wzt)\
**Post date:** [July 27, 2022, 5:06pm UTC](https://org-roam.discourse.group/t/how-to-add-a-new-node-with-bibtex-information-auto-filled/2709/7 "2022-07-27T17:06:02Z")

</div>

Thank you, you are right, I guess maintainer of `org-roam-bibtex` decide to abandon the interface of `ivy-bibtex` and `helm-bibtex` only use `orb-inert-link` to add node. So there old video is miss leading.

But with this change how to add a node only? What if I only want to add a node without insert a link? So it seems not reasonable to me.

---

<div class="post-metadata">

**Author:** ![wzt](https://avatars.discourse-cdn.com/v4/letter/w/76d3ee/32.png) [@wzt](https://org-roam.discourse.group/u/wzt)\
**Post date:** [July 27, 2022, 6:36pm UTC](https://org-roam.discourse.group/t/how-to-add-a-new-node-with-bibtex-information-auto-filled/2709/8 "2022-07-27T18:36:06Z")

</div>

My mistake, it turns out for ivy I need press `M-o` to select other actions, ivy is so elegant.
