From: Henrik Frisk <frisk.h@gmail.com>
To: Ihor Radchenko <yantar92@gmail.com>
Cc: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: org-cature-ref
Date: Mon, 18 Jul 2022 10:39:03 +0200 [thread overview]
Message-ID: <CAO0LSb776QLcPAOz-GOk=16LipuSkCFZVSN4B5n3geBx_dVnvw@mail.gmail.com> (raw)
In-Reply-To: <87tu7fi96i.fsf@localhost>
[-- Attachment #1: Type: text/plain, Size: 2451 bytes --]
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:
> > :PROPERTIES:
> > :TITLE: Something
> > :BTYPE: misc
> > :ID: Something_org_captur_ref_extrac_9c0
> > :AUTHOR: someone
> > :CREATED: [2022-07-12 tis 17:26]
> > :HOWPUBLISHED: Github
> > :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}"
> "%{extra}"
>
> %{org-entry} part is responsible for generating property drawer via
> org-capture-ref-headline-format-function.
>
> 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!
/henrik
[-- Attachment #2: Type: text/html, Size: 3609 bytes --]
next prev parent reply other threads:[~2022-07-18 8:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-06 9:21 org-cature-ref Henrik Frisk
2022-07-07 10:50 ` org-cature-ref Ihor Radchenko
[not found] ` <CAO0LSb5or=sec3ZMU2jVvVv57qe_Z_4cW9=--92iA8aqkJAN_g@mail.gmail.com>
2022-07-12 16:53 ` org-cature-ref Henrik Frisk
2022-07-16 9:17 ` org-cature-ref Ihor Radchenko
2022-07-17 20:25 ` org-cature-ref Henrik Frisk
2022-07-17 23:57 ` org-cature-ref Ihor Radchenko
2022-07-18 8:39 ` Henrik Frisk [this message]
2022-07-19 13:40 ` org-cature-ref Ihor Radchenko
2022-07-26 10:34 ` org-cature-ref Henrik Frisk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAO0LSb776QLcPAOz-GOk=16LipuSkCFZVSN4B5n3geBx_dVnvw@mail.gmail.com' \
--to=frisk.h@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=yantar92@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).