

GitHub - org-roam/org-roam-bibtex: Connector between Org-roam, BibTeX-completion...
source link: https://github.com/org-roam/org-roam-bibtex
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

org-roam-bibtex
Description
Org Roam BibTeX (ORB) is an Org Roam extension that integrates Org Roam with Helm and Ivy BibTeX and Org Ref.
It allows users to manage their bibliographical notes using Org Roam and access
the notes in org-roam-directory
via helm-bibtex
, ivy-bibtex
, or by
opening org-ref
’s cite:
links.
Quick Demonstration 
See also a somewhat outdated video demonstration of Org Roam v0.2.1
Articles
Here is a selection of articles that you may find interesting.
Introduction to Org-roam
Workflow
Important news
Org Roam BibTeX has been upgraded to v0.6, which is compatible with Org-roam
v2. Please read carefully this README file and the
manual and adjust your configuration files accordingly.
In particular, pay attention that the variable orb-templates
has been
deprecated in favour of org-roam-capture-templates
, which in Org-roam v2 has
a different list structure. Consult the manual for more
details
Org Roam BibTeX v0.5.2 is the last version of ORB that works with Org-roam v1.
It can be found on the branch orb-v0.5
.
A word of warning 
org-roam-bibtex
is in Alpha.
This means that a lot of things may change in the future (e.g. renaming variables, rewriting functions). As a result, the package will be unstable for a while. This will change when we release v1.0, but for now, you will have to be on the lookout for a few things:
- If you encounter a problem with the package, start by making sure that you have the latest version. (cf. Installation)
- If there is a problem with your configuration, most notably variables which do not exist anymore or functions which are not called with the right number of arguments, you will need to check this page to see what has changed.
- If neither 1. nor 2. resolved your problem, read the following section on how to get help.
Getting help
Please read carefully this section before installing Org Roam BibTeX. We are glad to help you in case something does not work as expected. However, we kindly ask you to follow these simple rules when asking for help:
- Read carefully this README file.
- Read it once again, please. Consult the extended manual
- Check our community resources and describe your problem there.
- Open an issue on the bug tracker.
- Take your time to describe your problem and we'll take ours to help you solve it.
- Describe your problem clearly, in a procedural way: "I run
this command
, then I runthat command
, and finallythis one
. I expectthis
to happen but instead happensthat
. Here is myconfiguration
." - Thank you!
Keep in mind that ORB is under active development and the configuration snippets that you might have found somewhere in the Internet may be outdated and be the actual cause your errors. It is therefore highly recommended to use this README file, the manual and the Emacs built-in docstrings as primary documentation sources.
Installation
Hard dependencies
Org Roam BibTeX depends on Org Roam,
BibTeX Completion, and Org
Ref. Users cloning ORB directly from
GitHub also need to install the above packages and to ensure that
bibtex-completion
is autoloaded. When installing ORB with a package manager
(MELPA) or from within a configuration framework (Doom, Spacemacs), no
additional steps are required.
Org Roam BibTeX deliberately does not load Org Ref and delegates this tasks to the user. However, this package must be loaded before running any Org Roam BibTeX-related commands. See below for examples.
Soft dependencies
Some parts of Org Roam BibTeX will not work without:
-
AnyStyle CLI — ORB PDF Scrapper requires this external tool, see Orb Anystyle for more details.
-
ORB offers basic completion functions based on Emacs native completion interfaces, but user experience can be enhanced with Helm, Ivy and Hydra packages.
-
Users of Projectile and Persp-mode will be pleased to learn that ORB can automatically switch perspective to the Org Roam project when creating a note.
With Emacs built-in package manager (package.el
)
The package is on MELPA.
-
Install
org-roam-bibtex
:a) using
package.el
:M-x package-install RET org-roam-bibtex RET
b) Alternatively, install it with
M-x package-list-packages
. -
Load and configure the package in your init-file:
a) with
use-package
:(use-package org-roam-bibtex :after org-roam :config (require 'org-ref)) ; optional: if Org Ref is not loaded anywhere else, load it here
b) Alternatively, require the package if you don't use
use-package
:(require 'org-ref) ; optional: if Org Ref is not loaded anywhere else, load it here (require 'org-roam-bibtex)
Via cloning
You can also clone the repository somewhere in your load-path
. If you would
like to assist with development, this is the way to go.
To do that:
-
Create a directory where you’d like to clone the repository, e.g.
mkdir ~/projects
. -
cd ~/projects
-
git clone https://github.com/org-roam/org-roam-bibtex.git
-
Load and configure the package:
a) with
use-package
:(use-package org-roam-bibtex :after org-roam :load-path "~/projects/org-roam-bibtex/" ; Modify with your own path where you cloned the repository :config (require 'org-ref)) ; optional: if Org Ref is not loaded anywhere else, load it here
b) Alternatively, if you don't use
use-package
:(require 'org-ref) ; optional: if Org Ref is not loaded anywhere else, load it here (add-to-list 'load-path "~/projects/org-roam-bibtex/") ; Modify with your own path where you cloned the repository (require 'org-roam-bibtex)
Spacemacs
If you have a private org-roam
layer, modify it as follows:
(defconst org-roam-packages '(org-roam org-roam-bibtex)) ;; add this after `org-roam/init-org-roam`: (defun org-roam/init-org-roam-bibtex () (use-package org-roam-bibtex :after org-roam :config (require 'org-ref)) ; optional: if Org Ref is not loaded anywhere else, load it here
If you don't have a private org-roam
layer, configure it first, see examples
here
and
here.
Recent versions of Spacemacs ship with a built-in org-roam
support, so you
won't need a private org-roam
layer. You still need a private layer for
org-roam-bibtex
. Consult Spacemacs documentation on how to create one, or
use the approach described in the above mentioned resources.
Doom Emacs
- Put this in
$DOOMDIR/packages.el
:
(package! org-roam-bibtex :recipe (:host github :repo "org-roam/org-roam-bibtex")) ;; When using org-roam via the `+roam` flag (unpin! org-roam) ;; When using bibtex-completion via the `biblio` module (unpin! bibtex-completion helm-bibtex ivy-bibtex)
- Put this in
$DOOMDIR/config.el
:
(use-package! org-roam-bibtex :after org-roam :config (require 'org-ref)) ; optional: if Org Ref is not loaded anywhere else, load it here
- Run
bin/doom sync
and restart Emacs.
Usage
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
.
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.
Configuration
See the Org Roam BibTeX Manual for configuration options and advanced usage.
Community
For help, support, or if you just want to hang out with us, you can find us here:
- IRC: channel #org-roam on Libera Chat
- Slack: channel #org-roam-bibtex on Org Roam
- Discourse: Org Roam Discourse group
Changelog
Changelog is being maintained here.
License
Copyright © 2020-2021 Mykhailo Shevchuk
Copyright © 2020 Leo Vivier
And contributros.
Distributed under the GNU General Public License , see LICENSE.
Recommend
-
74
bibtex-search Command-line interface for retrieving BibTeX references
-
41
Bibtex-completion, helm-bibtex, ivy-bibtex Helm-bibtex: Ivy-bibtex: Helm-bibtex and ivy-bibtex allow you to search and manage your BibTeX bibliography. They both share the same generic backend, bibtex-completion, but one uses...
-
96
README.md org-roam-bibtex
-
17
使用 org-roam 构建自己的知识网络 2020-06-27 最近 Roam Research 一类的以网状结构来关联笔记、并以 backlink 的形式来展现笔记上下文的工具非常热门。所谓网状结构,是认为知...
-
5
6 months and over 200 commits later, I’m finally releasing Org-roam v2! Org-roam v2 is an overhaul of Org-roam. It is slimmer and more performant, and has first-class support for linking to headlines. It also features a revamped side-...
-
8
Graphing my External Brain with Org-RoamSeptember 15, 2021An External BrainI have a terrible memory…And like most f...
-
10
--- **NOTE** This repo contains Org-roam v1, which is no longer actively maintained. Consider migrating to [latest Org-roam](https://github.com/org-roam/org-roam/). --- Org-roam v1 Org-roam is a plain-text...
-
33
在 2021-07-17 org-roam v2 已经正式合并到master分支,已经不用再像本文一样折腾了。 写在前面# org-...
-
15
Taking org-roam everywhere with logseq May 26, 2021 3 min read Update: 2022-05-13 I love
-
11
My org-roam workflows for taking notes and writing articles Published: Thursday, January 12, 2023 Last modified: Thursday, January 12, 2023 by
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK