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 ms0.migadu.com with LMTPS id qD1ZB7RWKmJ8RQAAgWs5BA (envelope-from ) for ; Thu, 10 Mar 2022 20:51:16 +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 SI+NO7NWKmLK7gAAG6o9tA (envelope-from ) for ; Thu, 10 Mar 2022 20:51:15 +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 A296A30BB2 for ; Thu, 10 Mar 2022 20:51:15 +0100 (CET) Received: from localhost ([::1]:51660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSOoc-0006Ed-LW for larch@yhetil.org; Thu, 10 Mar 2022 14:51:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34310) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSOnr-0006ER-C8 for emacs-orgmode@gnu.org; Thu, 10 Mar 2022 14:50:28 -0500 Received: from [2a00:1450:4864:20::429] (port=38584 helo=mail-wr1-x429.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nSOnp-0001mT-Jc for emacs-orgmode@gnu.org; Thu, 10 Mar 2022 14:50:26 -0500 Received: by mail-wr1-x429.google.com with SMTP id t11so9618686wrm.5 for ; Thu, 10 Mar 2022 11:50:24 -0800 (PST) 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=jjmEqmfFyKlgAvw9mVZVssiXRftSm8Cgia+Oh3tEglc=; b=aXG0ZfYiBlX5L5lYgKDQhOab9RVi1n/jJ3wpi5FzDDGMRE+mQUOKJOHekdMfeo5fdW EsScuKoBBnSmQa5Vqz9olO/TLYkcHVpHuAFebGkfLu5N3UXKGUbZPLs7R2kQicC9zh86 dyB+udtOpfQB3lHMXJkvWPcS4ZxHApKyabDpumzNVZmGdev9wBMDX++FYJym9edtoLRQ 5SsHwZYwtZ6WeBVw71dqA+Y0GaarayX1/+kaeR7T4GP5G7coDllfK1Spj/iFCqNbIxIV V6LKA/93MrBrQZK99rqJ+UTLH/J3tFEMQ/EaPS8dSAYKny0A0p1R0lMWmc2bvbDf4KLb yCdw== 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=jjmEqmfFyKlgAvw9mVZVssiXRftSm8Cgia+Oh3tEglc=; b=mCySaXVoBS19/k/qJ/wQEDVrFa5eqSUxW3xXjgE4Jrrux3j5OHFMx4L18L94WCn0Nq uT2JxR1KQXhg0RmnvEHboZgpW+qNgDZO/unJWZukefPqScD/pFXCKYjKe7ha4NPF5ahJ Te5rvDsxFnsVmMNPEzjKSVJgQNdY1Cf3qkICRRRWxhvYxhkC5PMMAOrQE22RXv4Lf+XH ZcN3oPP3Gw7x+PIPVTmeEusmADcyqkq7cffBHKO7BVbL/keTHl/dhM9H4Z6ybh1mkwnL IRnQzTsIB74L0BmA8Gmb8KYBViB68klVxKbYyi311b01HjZO9zBFejI0SuFSUfRilOnd 6Edw== X-Gm-Message-State: AOAM531lMgx/Wrt/HMUyzNWgUJ75qpFdH8KZVnLZyrSHt56MxoLz4NZ5 EUYPKkBLY6cyd/XT3VbAJEbfq4DosIn6sxvZeBg= X-Google-Smtp-Source: ABdhPJz4IFguAxVCsDm29K5eQecrWF50HpaDHV5XO1wtSu4i7CcFZwO9fcpI/x90Ss3YuSzjO2kgyUc8BJ/0xqiZtU8= X-Received: by 2002:a05:6000:1a89:b0:203:706f:7c67 with SMTP id f9-20020a0560001a8900b00203706f7c67mr4805595wry.471.1646941823390; Thu, 10 Mar 2022 11:50:23 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Anders Johansson Date: Thu, 10 Mar 2022 20:50:11 +0100 Message-ID: Subject: Re: [wip-cite-new] Exporting to pandoc md (and from there to zotero odt) To: Matt Price Content-Type: text/plain; charset="UTF-8" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::429 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=mejlaandersj@gmail.com; helo=mail-wr1-x429.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: org-mode-email , Bruce D'Arcus Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646941875; 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=jjmEqmfFyKlgAvw9mVZVssiXRftSm8Cgia+Oh3tEglc=; b=Ord/NYiC2oUVt3UF+37BO0UNbzO+aFag/tOtJu7Asl3vgjMKRIMk7J7vZRET7JSaxGUWko rddJr94u4eglva3R1NvpqG9Qd4frSChAkeHgM7GPqaXwKHzwp2TnKXt0qh6AXnq1N6H+el M7FaVqHDP2rfVNVOTu2fTixS9PnLSbkGR/LS/jj3rjlFhz93ViTqvZa4Hh67wKMh1loshG xRVKhjRoEiK7Dv9N/UxkHI/GIhuvL9+Y1dd1IFg70z3VwD6h4DKSW62RHoaSoz+RslDNag I/0iBQZTZ+KzCXcSyLO0h1m6JnRWDdSFs30DYoVROzNec2axp6sYgGcV0aNppQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646941875; a=rsa-sha256; cv=none; b=aHBBP9fGplabrnbEFXfWoaWtlHb2OnykulqfECRb/yGMYX8JxTmD8kw4FKXMJq65GRpLYH q1iY77dxHPlBcjpRxzOzTl8B4ixfROrsNvtHTHPVSyj4+hZkrUW9Rw8qTgXdTLDQYvRWi8 mh0vABF6u8JUahN7vHNZzBIdqef4/eWBTvCf+xkh9pgrF/iddnef/Cqx7rCpypQw37DHEx Ct3sxwbOCtTx4C6d20tPWFGjCYN2jkLlGwWQbnQ5EoJusfWlECaMxOtxJPOaxpbjnuCeIi WjiJSk4CnDzz5xYu/c6F3irGhrdGfdek2J0GAyF0JFLDQ/4tu7sveHhiy8cFYQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=aXG0ZfYi; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" X-Migadu-Spam-Score: 6.00 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=aXG0ZfYi; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" X-Migadu-Queue-Id: A296A30BB2 X-Spam-Score: 6.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: Sb7VY63abYGg Hi, >We should also get pandoc to support updated org-cite syntax. > https://github.com/jgm/pandoc/issues/7329 Now that pandoc has org-cite support, I found it simpler to reuse ox-pandoc (https://github.com/emacsorphanage/ox-pandoc) and just do this very simple configuration. ox-pandoc exports to an intermediary org file, so we can just make sure to reinsert citations in org format. (use-package ox-pandoc :custom (org-pandoc-options-for-odt '((lua-filter . "/home/aj/lib/bbt-pandoc-zotero.lua") (metadata . "zotero_author_in_text=true")))) (org-cite-register-processor 'pandoc :export-citation #'oc-pandoc-export-citation :export-bibliography #'oc-pandoc-export-bibliography) (defun oc-pandoc-export-citation (citation _style _ _info) "Export CITATION object in org format." (org-element-citation-interpreter citation (mapconcat (lambda (r) (org-element-citation-reference-interpreter r nil)) (org-cite-get-references citation)))) (defun oc-pandoc-export-bibliography (_k _f _s _p _b _i) "Generate a #+print_bibliography:" "#+print_bibliography:")