From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 2BHVHQGi1GIARQEAbAwnHQ (envelope-from ) for ; Mon, 18 Jul 2022 01:57:53 +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 2ESUHAGi1GIGFAAAG6o9tA (envelope-from ) for ; Mon, 18 Jul 2022 01:57:53 +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 114F7C674 for ; Mon, 18 Jul 2022 01:57:53 +0200 (CEST) Received: from localhost ([::1]:56194 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDE91-0001AU-MY for larch@yhetil.org; Sun, 17 Jul 2022 19:57:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44264) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDE8C-000192-1L for emacs-orgmode@gnu.org; Sun, 17 Jul 2022 19:57:00 -0400 Received: from mail-oa1-x2f.google.com ([2001:4860:4864:20::2f]:37799) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oDE89-0000wH-Vk for emacs-orgmode@gnu.org; Sun, 17 Jul 2022 19:56:59 -0400 Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-10c0430e27dso20112609fac.4 for ; Sun, 17 Jul 2022 16:56:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=mE1G9qPM4MqWglNS7EA3EBrN9AAqf8anZXdBTDqee7E=; b=ips1CASX2+IlUw66If6x9boD0VrRq1RfHaDIBSMkObzMvSngMkZ32+hbE2HkPrQRk4 fSORL3qzpFl1bfZP5yEsLxfyx0dfWd+6bzJPNs7LjPT4NagyEKS5LSJRXhqrmkWIQwIl m6VPeDkjOiWOOBrG2OkzP/e+Fxj0/9IpjAMHM0qLbYlu3VOW2SkS8kp82PmSPnr0/rmZ l+xJFYlRX3kcgEy0e3EgySotP8AfFzMnqG36cL3azKMrN5MaSWfHXvB/5pVFuFypBveY Q84PO00L7DAlJmQgmccbP2/JnkOSiJIFEPZNhLUNg6rLFrDtjp25suDNQL0F6ZkumSLt LBDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=mE1G9qPM4MqWglNS7EA3EBrN9AAqf8anZXdBTDqee7E=; b=aEO7EJOLch/sM40sHLvB4dSQ5NbBOPK6FOGzIoINu0W9RFqvCd6/ccABMl7U303DP6 SL/SRlWeFy/eWNH46M6L0U7YiI/VeXaCgVGj0Dxk5US/AGAQxpcjXeVgVqQkwlioMb0+ BRszqSLHbb8Qzlt92mTotsl8n9Xov/cpbGf7FU102j59Uw3V3z/hKEQsiwwUhQaPrm37 iKaYl1jRg/j2KqxA1f74QpgUmOOjglPc+bt2jktEdJca3y3d1FtxN1JCsw0cCTDVj/rR YqbF0iUdGmjipKBEpae9/Oesh+SUo3GE12bRwlTef+wai1u3YMul0oJHgiaj85/TRA2L gnqA== X-Gm-Message-State: AJIora99I5YMpl6a4dM0oaMzZgWzjTOEtIm66uJzvvkZA/ztpWsQXDDL HIJjqZ0p8/6VHG0fTZPyi2k= X-Google-Smtp-Source: AGRyM1vRm/Y0NpSIvSY0bIGaiwJKAS3hTMev6R1XRij339OujDYi4LEZqzE6iOiSgLq143jWRfDdKg== X-Received: by 2002:a05:6808:1b21:b0:339:b6d5:163b with SMTP id bx33-20020a0568081b2100b00339b6d5163bmr11926872oib.84.1658102216520; Sun, 17 Jul 2022 16:56:56 -0700 (PDT) Received: from localhost ([2409:8a70:2bd:4d0:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id e22-20020a9d0196000000b0061c96081ec0sm1823961ote.0.2022.07.17.16.56.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jul 2022 16:56:55 -0700 (PDT) From: Ihor Radchenko To: Henrik Frisk Cc: org-mode-email Subject: Re: org-cature-ref In-Reply-To: References: <87pmihurhi.fsf@localhost> <874jzhe7rf.fsf@localhost> Date: Mon, 18 Jul 2022 07:57:57 +0800 Message-ID: <87tu7fi96i.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2001:4860:4864:20::2f; envelope-from=yantar92@gmail.com; helo=mail-oa1-x2f.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=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." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" 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=1658102273; 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=mE1G9qPM4MqWglNS7EA3EBrN9AAqf8anZXdBTDqee7E=; b=TbJ+vUmQi0ESNQD4EdGydNehrzTZzTMxn/b8bpls9pMRzcR8xvUIW4tX7nyyX/YeWrKNr+ BcOTtlSJN7GuWPlDBIsJlo1/+bf/Sm6t6EKavL7o4g6daYLpLWp7LoiDLDJjZH1g+9TULW pv5gt/OZLXsnrDgApDZ9SxatImk4CcSksck2+4p5O512HFIshzTaOvt2wHmOTfvuLIr1yv +rN+p33U1o1wf7BxUMeh2WBd5QmAbPwL5lTUW/J26/3DUJkZY3ZmdcN7luEdT8t7fDrRSv 6yASurCMcoOwVX+hLhFjtSjhMjZxrJ4vJ1+hCZrUk5B3c+pi7Gmo3NYdBSVvmA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658102273; a=rsa-sha256; cv=none; b=EVrJLnww5u0qYflNQ8lcyNawSvxnxQ3cRC8PVw3D1HcpEZFQvzTs5ywSXiwB+rBXvsLxvj I8KYZUsom7s0Or6DE52d75RqhUJ4b7Zm4FgGivtDFaScwiwJbH/eu5eBcPHa9CnWKNX08e kObZjF0HiW3SWgcM5MmZwLOfV3jzQ1yjYv4T/St4apxHFy/TcqU8l+bJa0i+5+OWbd9xZz tR4+GhBYTRmDOIt94S1tLVNAN4hmDDpclfJponGHrwKMQG4wpDbqFyQALXJ+mYMUX7qu/6 VwkgNx5oiKwcXjlHSMP8LuXMygxPzWNZtcCKcAPsFUfIoD+eYMnzRDJEsaNn4Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ips1CASX; 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: -1.93 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ips1CASX; 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: 114F7C674 X-Spam-Score: -1.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: BpADYPd3Q/kd Henrik Frisk 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