[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org-cature-ref

From: Henrik Frisk
Subject: Re: org-cature-ref
Date: Mon, 18 Jul 2022 10:39:03 +0200

Den mån 18 juli 2022 kl 01:56 skrev Ihor Radchenko <yantar92@gmail.com>:
Henrik Frisk <frisk.h@gmail.com> writes:

>> Could you please provide a bit more details on what you did, what you
>> expected to get, and what you got?
>> Yes, of course!
> I saw in another thread recently that you had the bibtex captured as a code
> block (begin_src bibtex) which I wasn't able to get. In the documentation
> at https://github.com/yantar92/org-capture-ref#org819faa2 it says:
> "Alternatively it is possible to use org-capture-ref-get-bibtex-field to
> get metadata directly (:bibtex-string field will contain formatted BiBTeX
> entry).
> This, I thought, was the way to achieve this. What I get is:
> :BOOKMARK:misc:
> :TITLE:    Something
> :BTYPE:    misc
> :ID:       Something_org_captur_ref_extrac_9c0
> :AUTHOR:   someone
> :CREATED:  [2022-07-12 tis 17:26]
> :NOTE:     Online; accessed 12 juli 2022
> :RSS:      https://something.org
> :URL:       https://something.org
> :END:

Did you try to customize org-capture-ref-capture-template?

Its default template is

"%{fetch-bibtex}* TODO %?%{space}%{org-entry}"

%{org-entry} part is responsible for generating property drawer via

If you prefer adding bibtex directly, you may want something like

"%{fetch-bibtex}* TODO %?%(org-capture-ref-get-bibtex-field :title)"
"#+begin_src bibtex"
"%(org-capture-ref-get-bibtex-field :bibtex)"
"#+end_src bibtex"

That's what I was trying to do, but now it works! This is really brilliant, thank you!
Note: it should be:

"%(org-capture-ref-get-bibtex-field :bibtex-string)"

in the above example.

A couple of questions more:

1. In the examples at the beginning of the project's  github you have examples that have a combination of prperties and bibtex source, with preperties such as ID and CREATED. These could be helpful but I can't figure out how to add them with my limited knowledge.
2. When you write that there is support for Google Scholar "BiBTeX page", what do you mean? In a Google scholar search, if I click "Cite" and then choose BiBTeX, I don't get the expected result, but maybe you are referring to something else?

Again, thank you. This will make my life easier!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]