From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aF28FHT7Z2EQjAAAgWs5BA (envelope-from ) for ; Thu, 14 Oct 2021 11:42:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KAF2EHT7Z2GyJQAAB5/wlQ (envelope-from ) for ; Thu, 14 Oct 2021 09:42:12 +0000 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 B0540E5A3 for ; Thu, 14 Oct 2021 11:42:11 +0200 (CEST) Received: from localhost ([::1]:37946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maxFZ-00012A-J9 for larch@yhetil.org; Thu, 14 Oct 2021 05:42:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maxEe-000119-1m for Emacs-orgmode@gnu.org; Thu, 14 Oct 2021 05:41:13 -0400 Received: from mail.pressure.to ([173.249.56.251]:41256) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maxEa-0002U9-Nw for Emacs-orgmode@gnu.org; Thu, 14 Oct 2021 05:41:11 -0400 Received: from [127.0.0.1] (tmo-118-67.customers.d1-online.com [80.187.118.67]) by mail.pressure.to (Postfix) with ESMTPSA id 0649978001E for ; Thu, 14 Oct 2021 11:41:02 +0200 (CEST) Date: Thu, 14 Oct 2021 11:41:01 +0200 From: Alex Fenton To: Emacs-orgmode@gnu.org Subject: Ox-pandoc and Org-cite User-Agent: K-9 Mail for Android Message-ID: <9217E511-2D99-420D-AA9A-1441955DA8E4@pressure.to> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=----VT0YOG04Z7L9PO3H5IHKCIA1O0DQU8 Content-Transfer-Encoding: 7bit Received-SPF: none client-ip=173.249.56.251; envelope-from=alex@pressure.to; helo=mail.pressure.to 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, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634204532; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=ggSEjJGmmwy+2kJxshIV4+B7GVqKj9R89hbHyZx9xNY=; b=HY11kEXYHs8MQL8jgvfSaYyQVj14WMnpHtPHJELfqYNm/nqgIlHktZEeqA9xXGF611re67 XeS6ynC5jXt+d1p2599UlMvmX7Uc7EruYUQ+V/2LzZ/vjBcdpkugPcNN8uPs4Dgr6Sxr/S sChMmhawDGmnOW9PwtXZHNGMma+asr2OpwYfcK7xhvqWdShU65Yq0Ea9trM4yMDfOV4hPh Ycp/Zno8bIHTr9lhSg30j/KnrDC5CWHKelTdRNtmqdZzZeEw6cg2epdTDinA8ic+3CTb4X aFEG94f2bhDUreCcWHzs50w3DnmJElgZGtEte65CozOBocRlq9Olu1uUWWBrkg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634204532; a=rsa-sha256; cv=none; b=dtH+B8UfHl056Nl37vZPzMOiZStb0KxAGAnvUJNYRSvSFXSuO9yh68nOd+IDfz2cS1N8Ek /FDh6v/lBxPGYyjr95+cO5fxEDQ67Vpk75j37q9Fmnxr+3YMz2Me4mPhni96j1blXIzeQG bnjjzbrkjkt5VYHWTkDbQfwq7jF24+91gJJLQWJwWHhrBFC/ceT3B5v2jqhNdZkDpWK3Cl 75Lu9xYYNc7YiwUm+L/Wi6v/YcBDRp6dCG3PSsAGNspnSkkC1R9ZxVMt9MRZ2Mbvpc9fDD pQ5ZBCnaAyr4cOBVGZM/E8ExFUWdRBU9itGxS85osH1ZuzzqMqxP4jHnkDFLyw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -0.41 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: B0540E5A3 X-Spam-Score: -0.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: BSzb9YmMxmny ------VT0YOG04Z7L9PO3H5IHKCIA1O0DQU8 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, I have recently forked [1] and tidied up ox-pandoc with some fixes for inc= ompatibilities that had arisen with newer versions of pandoc=2E I'm talking= to MELPA people about getting this distributed=2E Briefly, ox-pandoc exports an =2Eorg file to a temporary =2Eorg (so that e= =2Eg=2E Babel code is resolved) and then calls pandoc to export to any of i= ts many supported formats=2E=20 The arrival of citation support in Org is fantastic, but it is a bit trick= y for ox-pandoc, b/c pandoc itself has csl-based cite processing ability=2E= I'd appreciate any pointers on a couple of points: 1) how best to handle an file level option (BIBLIOGRAPHY) that is defined = in a mode and in some (>9=2E4) versions of org itself? At the moment it's c= hoking on incompatible types with 9=2E5, because ox-pandoc expects a string= but gets a list=2E=20 2) how best to allow users to pick between org citation export, pandoc cit= eproc or letting biblatex do something? At the moment, there seems no way t= o prevent citation export (passthrough) or a filter mechanism=2E=20 Should I plan to write a org cite export handler that converts to a format= that pandoc understands (the new Org citation format is not yet fully supp= orted, though an issue [2] is filed)?=20 Cheers alex [1] https://github=2Ecom/a-fent/ox-pandoc [2] https://github=2Ecom/jgm/pandoc/issues/7329 ------VT0YOG04Z7L9PO3H5IHKCIA1O0DQU8 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello,

I have recently forked [1] and tid= ied up ox-pandoc with some fixes for incompatibilities that had arisen with= newer versions of pandoc=2E I'm talking to MELPA people about getting this= distributed=2E

Briefly, ox-pandoc exports an =2Eorg file to a tempo= rary =2Eorg (so that e=2Eg=2E Babel code is resolved) and then calls pandoc= to export to any of its many supported formats=2E

The arrival of c= itation support in Org is fantastic, but it is a bit tricky for ox-pandoc, = b/c pandoc itself has csl-based cite processing ability=2E I'd appreciate a= ny pointers on a couple of points:

1) how best to handle an file lev= el option (BIBLIOGRAPHY) that is defined in a mode and in some (>9=2E4) = versions of org itself? At the moment it's choking on incompatible types wi= th 9=2E5, because ox-pandoc expects a string but gets a list=2E

2) = how best to allow users to pick between org citation export, pandoc citepro= c or letting biblatex do something? At the moment, there seems no way to pr= event citation export (passthrough) or a filter mechanism=2E

Should= I plan to write a org cite export handler that converts to a format that p= andoc understands (the new Org citation format is not yet fully supported, = though an issue [2] is filed)?

Cheers
alex

[1] https://github=2Ecom/a-fent/ox-p= andoc
[2] ht= tps://github=2Ecom/jgm/pandoc/issues/7329 ------VT0YOG04Z7L9PO3H5IHKCIA1O0DQU8--