From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp10.migadu.com ([2001:41d0:2:bcc0::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms5.migadu.com with LMTPS
	id 8JA0Dltw1GKMVgAAbAwnHQ
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 17 Jul 2022 22:26:03 +0200
Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp10.migadu.com with LMTPS
	id 4IT3DFtw1GLW9QAAG6o9tA
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 17 Jul 2022 22:26:03 +0200
Received: from lists.gnu.org (lists.gnu.org [209.51.188.17])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by aspmx1.migadu.com (Postfix) with ESMTPS id B2A6A938F
	for <larch@yhetil.org>; Sun, 17 Jul 2022 22:26:02 +0200 (CEST)
Received: from localhost ([::1]:48690 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	id 1oDAq0-0007BF-U5
	for larch@yhetil.org; Sun, 17 Jul 2022 16:26:00 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:39626)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <frisk.h@gmail.com>) id 1oDApN-0007B5-0C
 for emacs-orgmode@gnu.org; Sun, 17 Jul 2022 16:25:21 -0400
Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:41478)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <frisk.h@gmail.com>) id 1oDApL-0001Eo-92
 for emacs-orgmode@gnu.org; Sun, 17 Jul 2022 16:25:20 -0400
Received: by mail-lf1-x133.google.com with SMTP id t1so16317812lft.8
 for <emacs-orgmode@gnu.org>; Sun, 17 Jul 2022 13:25:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=6xhPKFgSdNmPUmPn+Xr8tVtKN4F4Ls2elDcAXgF6CqQ=;
 b=Ebk8S6Zq7R2xUS9qUd2vZbf60wLtF/s1FGpAg45BZCXlGftYROoPL4gYZweTnkkzcx
 HHzMkFsCF20y6/F+1KtB0c227PwPeqH4UQO+6Lo9qzYN9YpNtODonx25i4T8ndW4URUZ
 ZsYnU6q/2z3XnaYuGnkOSAhaBzX7TTOOM4U2SpuYplw2L+Nd49xiOn+kqW5RSCDjiMzO
 Jb5vBizxP4lwQb4RhVvToa//+8b0By47lhGdHtoHzn9jO+FFAgTzQNdTMnCNsSIm3jg1
 svyJoMZFmHvxrFSn+YdYUB7Ad8W/Hwh7QkHBjSbHXAS1gDAIgt/l61UHKyEJWkdRqnJO
 qdnw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=6xhPKFgSdNmPUmPn+Xr8tVtKN4F4Ls2elDcAXgF6CqQ=;
 b=CPYCXQoEF5zEl66XjDbLD91P/X4vkBoI+95gAobAXwT6BZVorisyxMGWy8b1pqh8M4
 oM0YAxxscRPZpHvg0t/FFzAc2yx06eapntzOGcJ14E7XkEBBGK3VUo9DLJUyCvDAEG9J
 Fd7ZSThrNGMmaYPam2ixHnfjfgjESgYQnBF8hV7Y61uJxewlrn4uj/sS4++vfJpH1M+M
 8cTRYM/ZNUSf1mfWHIKTBZYbLTQjsLciRdO7OzqRCwCK+gXCYTNf6OH9V9b70269gwKB
 qvO7GsZzMOhk8Y7iKdb9tRrx6PQjOdgMLczVcpiXrbm+yYR8NLivleNskn9lhw4bDtYr
 mkHw==
X-Gm-Message-State: AJIora8VJ3YKPTTInTdaqseK4tBh7/u4UQW0OlAURQHxstNm0a4LKRvZ
 mir2r7xsQdOhKFa9AdObgm0LYg1Zf/kpRIm0YJw=
X-Google-Smtp-Source: AGRyM1sFln4hXEFjO8muIFCHkdMjAv8t/wd6Z2wviKftOw8xAk801ebsGZeIaWwGy8Po5FIMjyo7L0Y7M/HGXAk0rSU=
X-Received: by 2002:a05:6512:3c8c:b0:489:e80f:ea33 with SMTP id
 h12-20020a0565123c8c00b00489e80fea33mr12524464lfv.347.1658089515229; Sun, 17
 Jul 2022 13:25:15 -0700 (PDT)
MIME-Version: 1.0
References: <CAO0LSb70eg=Vi0X9y7FhRuhvx9JFpmmgPsEtFykkFKJDf0vH6Q@mail.gmail.com>
 <87pmihurhi.fsf@localhost>
 <CAO0LSb5or=sec3ZMU2jVvVv57qe_Z_4cW9=--92iA8aqkJAN_g@mail.gmail.com>
 <CAO0LSb5x9cj0kNTzmu12Guw_WWGZQPFHQf7E2A-joLdEeJTOcg@mail.gmail.com>
 <874jzhe7rf.fsf@localhost>
In-Reply-To: <874jzhe7rf.fsf@localhost>
From: Henrik Frisk <frisk.h@gmail.com>
Date: Sun, 17 Jul 2022 22:25:04 +0200
Message-ID: <CAO0LSb6QchNd4vmE370ZnYAHVsbXZRV1egoaEAc81hFrc3RdXA@mail.gmail.com>
Subject: Re: org-cature-ref
To: Ihor Radchenko <yantar92@gmail.com>
Cc: org-mode-email <emacs-orgmode@gnu.org>
Content-Type: multipart/alternative; boundary="0000000000008fa8fd05e4060c57"
Received-SPF: pass client-ip=2a00:1450:4864:20::133;
 envelope-from=frisk.h@gmail.com; helo=mail-lf1-x133.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: emacs-orgmode@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
Sender: "Emacs-orgmode" <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
X-Migadu-Flow: FLOW_IN
X-Migadu-To: larch@yhetil.org
X-Migadu-Country: US
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1658089563;
	h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:cc:mime-version:mime-version:
	 content-type:content-type:in-reply-to:in-reply-to:
	 references:references:list-id:list-help:list-unsubscribe:
	 list-subscribe:list-post:dkim-signature;
	bh=6xhPKFgSdNmPUmPn+Xr8tVtKN4F4Ls2elDcAXgF6CqQ=;
	b=i2OM+CjFWAUhJ0ZkMzSHPB7vTzn07k0TTHER5+Q5LaLgvF8nr8mhI7Evo1pqh0Cfd1JwU9
	Z0F7SO58M05hEuGTLRSgqIjm95V1n7CfbXWOVWRq56Yquiuuunrc4hnon+PzOKX139JqPU
	11Pk4WUwEqehg7bXNmqiGrYy1Wmy1XDG3JxYArvTKin64MFT3LeeeXR+/iJWafOBVtJ2UG
	fsE6WugJS/ZGF/G3Tow10tTiqcvpoh2C5ECpXkH0HW2uKODSrbxNGu72i22IO8HM3vQHZS
	8lKpDfFDxsbjFi540PRkMb6+SxH9C9q6STbEA77PSHQzoscCVDO2Gdye2J7lew==
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658089563; a=rsa-sha256; cv=none;
	b=DqtxrySfgnmOr72PzmsI2aDI6GUMGYxTeNv1KFodnQZM49eYokIO82/nQackNzwjGvgALp
	FcEaICqvfJI7hoB+RMp2rgSemRY6sJ7oQA1uAUpz/MPjyltFmpKiEfqfP0wwSRq/5zgWhB
	kYL/DruUiVl1sca9VJQePfLhwM9DcNIcI+b4UMPtU31IHEPY27HVsvdgqGWhvOaIPLeA3m
	zN4Q+0vtjcC8LabQl3IMa0qvZJ/DsMov5/5kXPySE5UigyUhcKBLMvXbsamf/mVly0rdF6
	5vrEvGykrCo2dHyouy6rMXmgK5qYviN8CjVguOemnwnUx3y3sVF3HsgvaKIDpg==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20210112 header.b=Ebk8S6Zq;
	dmarc=pass (policy=none) header.from=gmail.com;
	spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"
X-Migadu-Spam-Score: -2.43
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20210112 header.b=Ebk8S6Zq;
	dmarc=pass (policy=none) header.from=gmail.com;
	spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"
X-Migadu-Queue-Id: B2A6A938F
X-Spam-Score: -2.43
X-Migadu-Scanner: scn1.migadu.com
X-TUID: zufzgJPuhP7I

--0000000000008fa8fd05e4060c57
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Den l=C3=B6r 16 juli 2022 kl 11:16 skrev Ihor Radchenko <yantar92@gmail.com=
>:

> Henrik Frisk <frisk.h@gmail.com> writes:
>
> >>> Is so, you probably need
> >>>
> >>> org-protocol://capture?template...
> >>> instead of
> >>> org-protocol://capture-html?template...
> >>>
> >>> Thanks, that was the issue and it works fine now. However, I can't se=
em
> >> to get the org-capture-ref-get-bibtex-field to work by simply replacin=
g
> org-capture-ref-headline-format
> >> with it. Not sure where the ":bibtex-string" should go in the template
> >> which is probably why it doesn't work.
>
> 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:

/Henrik

--0000000000008fa8fd05e4060c57
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">Den l=C3=B6r 16 juli 2022 kl 11:16 sk=
rev Ihor Radchenko &lt;<a href=3D"mailto:yantar92@gmail.com">yantar92@gmail=
.com</a>&gt;:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0p=
x 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">He=
nrik Frisk &lt;<a href=3D"mailto:frisk.h@gmail.com" target=3D"_blank">frisk=
.h@gmail.com</a>&gt; writes:<br>
<br>
&gt;&gt;&gt; Is so, you probably need<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; org-protocol://capture?template...<br>
&gt;&gt;&gt; instead of<br>
&gt;&gt;&gt; org-protocol://capture-html?template...<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks, that was the issue and it works fine now. However, I c=
an&#39;t seem<br>
&gt;&gt; to get the org-capture-ref-get-bibtex-field to work by simply repl=
acing org-capture-ref-headline-format<br>
&gt;&gt; with it. Not sure where the &quot;:bibtex-string&quot; should go i=
n the template<br>
&gt;&gt; which is probably why it doesn&#39;t work.<br>
<br>
Could you please provide a bit more details on what you did, what you<br>
expected to get, and what you got?<br>
<br></blockquote><div>Yes, of course!<br></div><div><br></div><div>I saw in=
 another thread recently that you had the bibtex captured as a code block (=
begin_src bibtex) which I wasn&#39;t able to get. In the documentation at <=
a href=3D"https://github.com/yantar92/org-capture-ref#org819faa2">https://g=
ithub.com/yantar92/org-capture-ref#org819faa2</a> it says:</div><div><br></=
div><div>&quot;Alternatively it is possible to use <code>org-capture-ref-ge=
t-bibtex-field</code> to get metadata directly (<code>:bibtex-string</code>=
 field will contain formatted BiBTeX entry).</div><div><br></div><div>This,=
 I thought, was the way to achieve this. What I get is:</div><div><br></div=
><div>:BOOKMARK:misc:<br>:PROPERTIES:<br>:TITLE: =C2=A0=C2=A0 Something<br>=
:BTYPE: =C2=A0 =C2=A0misc<br>:ID: =C2=A0 =C2=A0 =C2=A0 Something_org_captur=
_ref_extrac_9c0<br>:AUTHOR: =C2=A0 someone<br>:CREATED: =C2=A0[2022-07-12 t=
is 17:26]<br>:HOWPUBLISHED: Github<br>:NOTE: =C2=A0 =C2=A0 Online; accessed=
 12 juli 2022<br>:RSS: =C2=A0 =C2=A0 =C2=A0<a href=3D"https://something.org=
">https://something.org</a><br>:URL: =C2=A0 =C2=A0=C2=A0=C2=A0 <a href=3D"h=
ttps://something.org">https://something.org</a><br>:END:</div><div><br></di=
v><div>/Henrik<br></div></div></div>

--0000000000008fa8fd05e4060c57--