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 gEyuL6SG+2ON6QAAbAwnHQ (envelope-from ) for ; Sun, 26 Feb 2023 17:19:48 +0100 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 QLCzLqSG+2OWKgAAG6o9tA (envelope-from ) for ; Sun, 26 Feb 2023 17:19:48 +0100 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 F1BF23E9D3 for ; Sun, 26 Feb 2023 17:19:44 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWJjr-0002L1-Hm; Sun, 26 Feb 2023 11:19:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWJjp-0002Kt-C9 for emacs-orgmode@gnu.org; Sun, 26 Feb 2023 11:19:01 -0500 Received: from mailgw101.it.ntnu.no ([129.241.56.177]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWJjm-00085P-MX for emacs-orgmode@gnu.org; Sun, 26 Feb 2023 11:19:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntnu.no; i=@ntnu.no; q=dns/txt; s=s1-1909-ntnu; t=1677428325; h=date : from : to : subject : message-id : content-type : mime-version : from; bh=rmo0e0NM+8s3pqZwsvGD0thfGlXK6HOIvsDgT5JNyfI=; b=DqyAM5r7v1K0ANleVwyzHIAy+bdXV/Aha0fbG4wI8LTUVwpIPkoVxTql2HI2vvAhpqUIR SqxVyiTI5V479fDT4bgnH5BhdFUOxEwH30zur0OHAJlRSdWu0H1/1YLMhKmpZ327egVU5gp xQFSR3TfIoQ2K1yplaJNLBjKgl6sVHnTMk4jZAAyFnt1keglpBT1/0PICorckwS7lqT6nlp Ujr9LZ17dRsg0OAy3ECCb7xA4MmLifHKKLu49ic7mRi8OvHZbDlUI4yyPeJhQsNd0TjwMtC oTVioOxZ7VVf1P7UnDrkTmljNV3nbvM0SeVuj95gXPK/XG9s+s3SQ3RTtwyA== Received: from localhost (localhost [127.0.0.1]) by mailgw101.it.ntnu.no (Postfix) with ESMTP id 4989B1DE27B0 for ; Sun, 26 Feb 2023 17:18:45 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mailgw101.it.ntnu.no Received: from mailgw101.it.ntnu.no ([127.0.0.1]) by localhost (mailgw101.it.ntnu.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UWva9AaGDrTs for ; Sun, 26 Feb 2023 17:18:44 +0100 (CET) Received: from NOR01-SV0-obe.outbound.protection.outlook.com (mail-sv0nor01lp20202.outbound.protection.outlook.com [IPv6:2a01:111:f403:7002::202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailgw101.it.ntnu.no (Postfix) with ESMTPS id D6DD51DE274E for ; Sun, 26 Feb 2023 17:18:44 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J24wVbD+Ay8B/QpV6fiNADphrW7n90XEV1345AIxQN6jkV+lyu440bbjViEGEAdAf/6RjwM1hW5XB7QrXcL1NkiDEhe9FnApdulrRtLSkz7frPtX0gXB4tvL9b4Ntks54ML7bvljfQk5MCPXbZXIt1W0NTXPdWC7lDxtravAKHYAxk+jc5MxIoAPSov3dXE7hI4BgglVIbSSTRNb9fNWRBt1LTfiHizfF0ULDsvXnizfzu0CEHtgtzEBDjsGZcnuS0A8FBclKx2oByZp9FUhCZHWB4K4cKOWdHwcMnvWliFq/X0cFtGLMMy03gf7ONQ/vj+xKAzmqqRZqVYNeCJRFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/4fDByjAWm69lCTqbxZz86Sn89TS3oR8WC2DyIWbOxs=; b=OKiRbsXml4ryLqCkol2XH+gZ/7oQqpjHHvYXqnnBnDnoH15DU/u3fyO9nCwjx5cgZpxnwT9Q7odcvZj2rAt9JNbM+jpge5Sq1751nLmexS6TwzDqIsR+rmYEiJUyvt72lexw8AGAWbBrWX2sbyv6yG2nyA62Eq3o7mjw4z5kwAgoCqYn5uQW7ycRVgJN6Q0bPf7gSnEmYykg8HEyyQwTLPiX83mQpkbt8S+lhSU1yhOKn7Zwz73NBTeMJr/HTX+13VZo23bGtP2bP4rfCnOLWgyZZab3dXbBkluffW95FKoF1FPsFuNnNWF3N7K0P34oC6gM5DZacnT7m/yCzai0+Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ntnu.no; dmarc=pass action=none header.from=ntnu.no; dkim=pass header.d=ntnu.no; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=studntnu.onmicrosoft.com; s=selector1-studntnu-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/4fDByjAWm69lCTqbxZz86Sn89TS3oR8WC2DyIWbOxs=; b=aXbONWzqKbZ6CyvZN4ZSNcGrt/w9547oKfgm1e4qNtdoBAaboUoMQj+vUutmbJ1jGpHkiMqPGpM5xcw1tKPRQF9Ck3eXrvYLMc1keTmTQ8HH3frKkeeXhS3TqCndE2c1GJ8KTGGr4bK/R2CPyKwbifaUkRm8a/GjZPAyUkZ6FT11E2kQDFZDKCWLiMbLcmx3yTL0gctS2RJhpmS+PcZaBCsmj3Yj8yeXaQr6OHDT2otW6oFf4yVDF1OzX5HFVQhcdvruvniH29RbwnHhGSYF/JHk/nLU/Jgloi3/VJTokCAMUHAaZh+gK/4U57VF0NhRhqfcXYjA68mu7GRkpP+lRw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ntnu.no; Received: from OSWP279MB0491.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:19::8) by OL1P279MB0067.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.14; Sun, 26 Feb 2023 16:18:44 +0000 Received: from OSWP279MB0491.NORP279.PROD.OUTLOOK.COM ([fe80::9c28:51a0:c7c8:8413]) by OSWP279MB0491.NORP279.PROD.OUTLOOK.COM ([fe80::9c28:51a0:c7c8:8413%5]) with mapi id 15.20.6156.014; Sun, 26 Feb 2023 16:18:43 +0000 Date: Sun, 26 Feb 2023 17:18:41 +0100 From: Sven Bretfeld To: Emacs Orgmode Subject: How to produce an org-ref citation from ivy-bibtex Message-ID: Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-ClientProxiedBy: OS6P279CA0097.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:3d::19) To OSWP279MB0491.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:19::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OSWP279MB0491:EE_|OL1P279MB0067:EE_ X-MS-Office365-Filtering-Correlation-Id: 411c4791-f5e3-4924-8965-08db18152157 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2AK6CUoCsOM+csM7pUWfOGduulfmU3C59wu/ErKq+ecwBMjr1nhSFtl9r9a17CbxnRtYZjnx9JLuWlaWQH89P6MpoG3I8jel89SccN0CZIQ5iEV0MPnf3a/bZLxlvuKhis447tc6vGNmweYLwJOo959hCUKsJheWDCXkDNdBaBl2PnBlbIIinGa+qeEoJPzd1VBYNUJ/IynUDf+ka1VU38yeSyZvh5gEr4bSISh620TKBo829uYOJ/Z13hCTwq9nYfSzYii5BjaJXRUPq4bZn8h4STm7w9SbBhEhsk7lsUmMLOQZCgvghGxxKT55mZn+ypBLpItTNY9LHWGpbIy2XkdcJI0X1pWjmfK5Zb1v6bVFjrc/XPXzYQmojpxIkQ71+rBhKdvtWrhvVAQdOdrPYmXTDe/iaNxjSxcSwAYCCOaeWieRlvk9gYvxQYNZ1uTCm2sHdI1ET9I+Wa36A83N4lM5FeWVGEvrIbuf9cGANNQHkUAe1VTvyuEHBd4bX7domsSBZSVRT399hGij5dSvUvG872SJ7cRiN9fPH3RNu1ekXAWAkFDV/8wEjIMpe3g/9JMa4TjvgXakSDUrXRcM+LUYCJ/fqiT09W9678DFLFY0aunAJkBvgC0mSrahbR+t2rkRR135PrQwqYYcplAyeQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:OSWP279MB0491.NORP279.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230025)(4636009)(7916004)(366004)(136003)(396003)(39850400004)(346002)(376002)(451199018)(9686003)(186003)(38100700002)(83380400001)(316002)(8936002)(6916009)(66556008)(66476007)(8676002)(41300700001)(66946007)(44832011)(2906002)(5660300002)(478600001)(6512007)(6506007)(26005)(6486002)(786003)(41320700001)(86362001)(33716001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?S7ewn7lA5f0kALa7ml/r338pob/iDroj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LK0eN2xjQUPULwVviCAXjMfeTqhMJwFLoLeZ+QAXRM/HLnwRe?= =?us-ascii?Q?rxmAjcFd23wnXTUaglzmlMCu+rmziLFPIiJGM1sZ4IGUNpDok0sZk8Bd2u4H?= =?us-ascii?Q?lTGyyXMgp2htr7mYsuJIxbYFzYZHruxQZ7qPKPwwLeLwItOyQuCoLKJ1bVH9?= =?us-ascii?Q?ZEA45fhQ26rMRBhceNODmxTbOFEIsjKPZZV5yLw7ESqN7iyMBlCCwi3U5Ccm?= =?us-ascii?Q?5aWqKwibwAioxUHsKGdGdV6YNAH67KTY9BeIjMAsb9vFUbta00eWpDz2NcFP?= =?us-ascii?Q?v6MCIFOX4hMFTU0b8jZBU1cuRik4kKBLzs4oWlvSW2D0qCgsESxtqyhtCSQt?= =?us-ascii?Q?Duc9tzQ6u1/CrLbygaDYVEm2vwYBliodgnzXF7o3ewcqIy41C0cVaU30wo1u?= =?us-ascii?Q?jxCR8Qf1tOtkfIxThEqCn+vgB96yahskMkTqOtjZW4FD330pUql8SmzfDNv6?= =?us-ascii?Q?U6OQmDj7QFstMVuv8ahjPpQY4PoKa/IQVaERC7erYveQK6IOQDZLwCWuZ1vH?= =?us-ascii?Q?iR7PPuyE1+3m0qx7hDPaUiq7kcuEsInFT+Tgqi0IwLxAn+g7KeSwsar7tKsW?= =?us-ascii?Q?j0q6/QfTRgtM9eeuh67//4I+TF8fNUbT8XXrA8LEFxFmuTIkTv6PNpq4gkVQ?= =?us-ascii?Q?1cZ1ViQ5oQv0/JT5KOnDmbaI+CcSBejQujTLKSXT?= X-OriginatorOrg: ntnu.no X-MS-Exchange-CrossTenant-Network-Message-Id: 411c4791-f5e3-4924-8965-08db18152157 X-MS-Exchange-CrossTenant-AuthSource: OSWP279MB0491.NORP279.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2023 16:18:43.6759 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 09a10672-822f-4467-a5ba-5bb375967c05 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: aiEL6totV3w7adL9NQdD/Il+UIHe6ZnYzBNBOad5Qa2AK+2Cn5oQonFxaUP5SLAS X-MS-Exchange-Transport-CrossTenantHeadersStamped: OL1P279MB0067 Received-SPF: pass client-ip=129.241.56.177; envelope-from=sven.bretfeld@ntnu.no; helo=mailgw101.it.ntnu.no X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=ntnu.no header.s=s1-1909-ntnu header.b=DqyAM5r7; dkim=pass header.d=studntnu.onmicrosoft.com header.s=selector1-studntnu-onmicrosoft-com header.b=aXbONWzq; dmarc=none; 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"; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1677428385; a=rsa-sha256; cv=pass; b=Z5fbc0MnlzgFnoen0E0Tu/eI/nSWWAywEJdz+0ye8W8ZjVukBE9gzPGVIhmE9sYV2XPqIk jmZBTrEbAAxWsh9AceANH+8TD9mZ6pXSAMTF6RrzVdE2IE5wZbUlsYnQ8oRTgcf7GjW92v gs3GOw0DpJaO+I2vN5tQ/EINHJQsFwPTsU1Ne3Pq0g/S+0hhii1VXExFSgtp//Cs9ZNnjK DCcwY1S4Fw3l78FsuYU3qQ7p8/SOTGatapM2ej52y28w3ZRTaLR6ZeyCqXVIlQIG7KabK+ SWuS19lwIIqawCqkPHyor7pvtJXcnQYYrHp+C7BMK3nApQp8Y/cw31bqOHSBgQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677428385; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=/4fDByjAWm69lCTqbxZz86Sn89TS3oR8WC2DyIWbOxs=; b=YlJBQqnXhNSjTxPWi2rIn0PA5d5CD8aqsqiNQbXT/dDQeYJQ+aRbZzkBmL6eUaNf/yBbHj 1rOJdjUxDGPTUPKGbbtFCE6VpF6TksQyE3UgCTJCiPn29TB5W4Q2adJH6ZFqtmRwSViEvh VTjrNdcpigArS23PG1jNcDy+BrlB4GJ0adRmSdwM85b9LPVQgvWANChTaem6FgNsF82ez/ RgGZbziaRn6b3UPDbj5JPsba412AA/ilDsPjcj8m/vUbxVwMuHpmymIJmhqzk1/kVQVnGn rNUDj6Okwjn6CWR4Apcnm5ic7IFhqZ8OFK13OWX+DGrjz/oxukohQPTRcgbJWw== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ntnu.no header.s=s1-1909-ntnu header.b=DqyAM5r7; dkim=pass header.d=studntnu.onmicrosoft.com header.s=selector1-studntnu-onmicrosoft-com header.b=aXbONWzq; dmarc=none; 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"; arc=pass ("microsoft.com:s=arcselector9901:i=1") X-Spam-Score: -8.15 X-Migadu-Spam-Score: -8.15 X-Migadu-Scanner: scn1.migadu.com X-Migadu-Queue-Id: F1BF23E9D3 X-TUID: G1BAebynQ5dz Hi everybody Is it at all possible to produce a correct org-ref citation format from ivy-bibtex (or helm-bibtex, I tried both)? What I mean by "correct" is the format: [[cite:&citekey]]. The problem seems to come down to the question what has to be inserted in the 2nd line here: (setq bibtex-completion-format-citation-functions '((org-mode . ??????) (latex-mode . bibtex-completion-format-citation-cite) (markdown-mode . bibtex-completion-format-citation-pandoc-citeproc) (default . bibtex-completion-format-citation-default))) (A) Not setting the variable at all, defaults to producing an ebib link which is of no use to me at all. (B) Putting org-ref-helm-bibtex-insert-citation here (as found on reddit) does not work, since the function does not seem to exist anymore. (C) Putting org-ref-insert-cite-link here is obviously wrong. Choosing that from the list of ivy-bibtex-actions, just calls the function interactively, you have to search for the bib-entry again and the resulting link looks like: [[cite:&citekey]]^&. The terminating '^&' obviously makes subsequent LaTeX-exports fall. (D) Putting "bibtex-completion-format-citation-org-cite" here, produces standard org-links: [cite:@citekey]. These are not correctly exported to a tex file when the org-ref package is loaded. The only working solution I have found is to use org-ref's own cite function org-ref-insert-cite-link. I know that ivy-bibtex can be set as backend (require 'org-ref-ivy). But in this way ivy-bibtex's other actions (like opening an associated PDF or note file) are lost. It would be nice to be able to use a SINGLE key-binding to select a bib-entry and then decide what to do with it (insert org reference, insert tex reference, open pdf, etc.). This was possible earlier (I did that for years with older versions of org-ref-helm) but is apparently no longer possible now. Many thanks for help and suggestions, Sven