Hot answers tagged

8 votes
Accepted

Org-Ref: Managing multiple projects, each with own notes.org files and bibtex-pdfs folders

I think you need to put the local variables in two places, which is the org file and the bib file. The issue is that the notes functions are called while the bibtex buffer is active, so the local ...
user avatar
  • 10.9k
4 votes

Can't choose citation types using org-ref

You may want to change the default citation type in your init.el file to the one you use a lot, e.g.: (setq org-ref-default-citation-link "citep") C-u is for a universal-argument in regular emacs. I ...
user avatar
  • 10.9k
4 votes
Accepted

Changing the order of the entries of the bibtex-autokey generator-*

The order of the components of the key are hard-coded, so you can't change them with a user option. However, you can re-write the function to set the order you want. You need to load your modified ...
user avatar
  • 20.1k
4 votes

Org-ref: how to get the BibTex entries in Helm sorted alphabetically?

Helm Bibtex entries are presented in the reverse of the order in which they appear in your .bib file: https://github.com/tmalsburg/helm-bibtex/issues/21 You can reverse this order with the following ...
user avatar
  • 20.1k
4 votes

ORG-REF: Indicate just path where to search for bib files?

You can do this to add all the .bib files in that directory: (require 'f) (setq org-ref-default-bibliography (f-files "~/Dropbox/Bib" (lambda (f) (f-ext? f "bib"))))
user avatar
  • 10.9k
3 votes

How to configure org-roam-bibtex properly?

I could succesfully config org-roam-bibtex after a lot of tries. This is my config if someone finds useful. I copied all the config from https://rgoswami.me/posts/org-note-workflow/ The part that gave ...
user avatar
3 votes
Accepted

Org-ref: how to get the BibTex entries in Helm sorted alphabetically?

It is possible to use a different backend than helm-bibtex which offers different sorting options. The org-ref-helm-cite backend allows you to sort by key, year and first author lastname (both ...
user avatar
  • 10.9k
3 votes
Accepted

Small database-like org files that can be accessed in other org files?

Suppose instead of putting all your reagents in one file, and then looking them up you use a syntax like: #+attr_org: :type reagents | Tween 20 | Sigma-Aldrich | batch-1 | | acetone | Fisher |...
user avatar
  • 10.9k
3 votes
Accepted

Generate .bib local bbliography with all the bibtex entries cited in an org document

If you are using org-ref see org-ref-extract-bibtex-entries or org-ref-extract-bibtex-to-file.
user avatar
  • 10.9k
2 votes
Accepted

How to insert and populate field in multiple bibtex entries automatically

To check if a field exists, one approach is: (defun bibtex-field-exists-p (field) (save-excursion (bibtex-beginning-of-entry) (let ((entry (bibtex-parse-entry))) (assoc field entry))))...
user avatar
  • 10.9k
2 votes
Accepted

Copy formatted citation from helm-bibtex menu

You can add something like this to your init file to do that. (helm-add-action-to-source "Copy formatted citation(s)" (lambda (_) (kill-new (mapconcat 'identity ...
user avatar
  • 10.9k
2 votes
Accepted

Using org-ref in beamer mode

You have to allow frame breaking by adding the corresponding Beamer option as an Org property to the slide heading: * References :PROPERTIES: :BEAMER_opt: allowframebreaks,label= :END: ...
user avatar
  • 136
2 votes

Highlighting missing references

In a similar approach to @giordano, I would suggest you have a look at the excellent Org-Ref, which is a collection of org-mode modules for citations, cross-references, bibliographies in org-mode and ...
user avatar
  • 539
2 votes

Extract title from bibtex

Here's a basic function to look up the entry and title based on the citation at point (bibtex-completion is a dependency of org-ref): (defun my/print-reference-title () "Print the title to the ...
user avatar
  • 6,794
2 votes
Accepted

Org-ref with biblatex - is it feasible or should bibtex be preferred?

Org-ref supports standard bibtex and biblatex as far as I know. So far neither of those has been a limitation.
user avatar
  • 10.9k
2 votes
Accepted

Org-ref associate entry with local file

Take a look at the documentation of org-ref-get-pdf-filename-function. You can set it to either org-ref-get-mendeley-filename or org-ref-get-pdf-filename-helm-bibtex. Both the variants support ...
user avatar
  • 146
2 votes

helm-bibtex and Zotero with better-bibtex -- Cannot find PDF

I had the same problem. In my case, it was fixed by setting org-ref-get-filename-function: (setq org-ref-get-pdf-filename-function (lambda (key) (car (bibtex-completion-find-pdf key))))
user avatar
2 votes
Accepted

Org-ref, Exporting org file to HTML with its style exactly same as a specific scientific journal

org-ref does not play well (natively) with docx, odt or html export. Its creator (J. Kitchin) explains why in several blog posts. I don't know if this is the canonical (or even a good) way to proceed, ...
user avatar
2 votes
Accepted

How to properly name or label pictures in org mode?

It is convenient to use a prefix like fig: in a name when you use something like org-ref that uses completion to insert references using all the "labels" in the document to the thing you ...
user avatar
  • 10.9k
1 vote

Org-ref: how to get absolute path of bibliography in exported LaTeX file

A feature to set absolute path for bib file has been merged in org-ref. Update org-ref and add (setq org-ref-latex-bib-resolve-func #'expand-file-name). See org-ref github issues here and here.
user avatar
1 vote
Accepted

Using org-ref to download pdfs using sci-hub as a fallback

Disclaimer Use it at your own risk. You have to add one new function and update another. Both can be declared in your init.el file as follows 1- The sci-hub-pdf-url function is ;; Sci-hub (defun sci-...
user avatar
  • 546
1 vote

Trying to install org-ref package, but getting error 'emacs-25.1' unavailable

You need to upgrade your emacs to at least Emacs 25.1. I'm not sure if each Ubuntu LTS provides updated stable packages beyond the point they released the distro, emacs26 now, but if not you can ...
user avatar
  • 2,366
1 vote

Multiple citations with just one pair of braces

Try some well-studied fact [[cite:foo2002,bar1997,baz2019]] That is, mulitple cite labels within a single org link. Note the double [[...]] although if you simply type cite:xxx it should make it an ...
user avatar
  • 241
1 vote

helm-bibtex and Zotero with better-bibtex -- Cannot find PDF

You seem to be on a MAC, but the PDF key in the bibtex contains a Windows path. Maybe Zotero should export differently? Not sure if this helps but I setup the variable (setq bibtex-completion-...
user avatar
1 vote
Accepted

How do you create an org-ref harvard style in-text citation - with a page number - using shortcuts?

If you know the bibtex key you want to cite then you can use org-insert-link to do this. Usually that is bound to C-c C-l, you will be prompted for what kind of link, you can choose cite (the ...
user avatar
  • 10.9k
1 vote
Accepted

How to capture fields from bibtex by using org-ref

As stated in the comments, the statement (setq-default case-fold-search nil) conflicts somehow with the org-ref-open-bibtex-notes. The emacs wiki mentions that case-fold-search set to nil means that ...
user avatar
  • 131
1 vote

Using minibuffer while the cursor is on a org-ref citation link

from the org-ref manual: Controlling link messages and tooltips Org-ref is setup to provide messages in the minibuffer when your cursor is on a link, and tooltips when your mouse hovers over a link. ...
user avatar
  • 20.1k
1 vote

Partial export: expanding #+INCLUDE keywords

I am beginning to suspect that, in Emacs, the best way to find out answers is to look though the source code... Looking through the code of org-export-as reveals the answer: org-export-expand-include-...
user avatar
1 vote

Partial export: expanding #+INCLUDE keywords

You could use the amusingly named function (org-org-export-as-org), which will export to a buffer named *Org ORG Export* with all the #+INCLUDE lines expanded. Then you could do your further ...
user avatar
  • 2,735
1 vote
Accepted

Using `with-silent-modifications` when modifying the buffer and undoing those modifications without using `undo`

Yes, it should be safe (assuming you're careful enough to make sure that the buffer is really unchanged in the end). But be careful: if the code that is run while the buffer is modified is complex ...
user avatar
  • 25.2k

Only top scored, non community-wiki answers of a minimum length are eligible