From: Ihor Radchenko <yantar92@gmail.com>
To: Henrik Frisk <frisk.h@gmail.com>
Cc: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: org-cature-ref
Date: Mon, 18 Jul 2022 07:57:57 +0800 [thread overview]
Message-ID: <87tu7fi96i.fsf@localhost> (raw)
In-Reply-To: <CAO0LSb6QchNd4vmE370ZnYAHVsbXZRV1egoaEAc81hFrc3RdXA@mail.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"
Best,
Ihor
next prev parent reply other threads:[~2022-07-17 23:57 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 ` Ihor Radchenko [this message]
2022-07-18 8:39 ` org-cature-ref Henrik Frisk
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=87tu7fi96i.fsf@localhost \
--to=yantar92@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=frisk.h@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).