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 6JY9EWdpumE6UgAAgWs5BA (envelope-from ) for ; Wed, 15 Dec 2021 23:17:11 +0100 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 kP3sDGdpumEkHAAAB5/wlQ (envelope-from ) for ; Wed, 15 Dec 2021 22:17:11 +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 BE2DA2E035 for ; Wed, 15 Dec 2021 23:17:09 +0100 (CET) Received: from localhost ([::1]:49256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxcaC-0007is-Un for larch@yhetil.org; Wed, 15 Dec 2021 17:17:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxcZd-0007ig-Lk for emacs-orgmode@gnu.org; Wed, 15 Dec 2021 17:16:33 -0500 Received: from [2a00:1450:4864:20::32b] (port=54244 helo=mail-wm1-x32b.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxcZb-0003lE-Jk for emacs-orgmode@gnu.org; Wed, 15 Dec 2021 17:16:33 -0500 Received: by mail-wm1-x32b.google.com with SMTP id y196so17645433wmc.3 for ; Wed, 15 Dec 2021 14:16:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew.cmu.edu; s=google-2021; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SUG5xyTTtM2/pE4U3mKF35EC7yxOlT6fq5AbSVNJAuA=; b=MyvWxNPhYuIWKVeZdiVP7BvsDbojE63jBxMWyhJMb+UW8AHEkILBjATCYXx8Kna/wI CcTCZ8UHfyfZAlnRgL/1l7MTzHEq0ffSckGtuORTmSPugULvx7oRa3W/dRXBLnsDcZZf YIbiBeqcB8aZd+6wpE3bmGJbZRxOSqTbxssO9Y0jmScL5AqLKicOXXr3aHR45Ybyooxl HdHgROsZFj7c8iZKBZCMlO8f2DVieSCCY7j4bD/fKsO8xNXCUVc2sYdqBsP/KKFzi/fK V9EqVt4rnBVWimWmVGYyE8J37vCQ36rEvxCQYp0MEkyYiRyzloQFIkVCLZnM6UetU8a6 j7oQ== 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=SUG5xyTTtM2/pE4U3mKF35EC7yxOlT6fq5AbSVNJAuA=; b=pfR8/w+y+AFnLdQp+/1U76jOvAhFTedbfKKjLkQuUqDvs68uPbNmcxFa0711XWAkT6 Bnm6O8+ZmQSoa5RCRksa4V9GZaofF3P4ggsbrvAFfwFqMO8yVbo8ULLz4BV6OFRQ+e8U g37aUZRyNe8Vex/+MlFrhhMGo7p6UsSXdpGo2FCce+tXvnhdhpDKDxZaFkyJpVZqNIri hn+zm0Job0/0uuDo4a8KagamTNVIMdzvuhyc/++QenIcqhiIDI7pePC2ba7tCVEMQv5P 9EdMRz/74dPVruLID9hBSozYlHGUq1qHYNDFOnI1uKsij7rv3Sd0C2HwEeEfCFHkc7yz qp4A== X-Gm-Message-State: AOAM530vcmmygn6zHWMvwPHrGumoflcr0BxkXU/Fv7rLKCeX1uzFlRxe iElZY4/5ML5X8B3orbY2CO23XuuIrXSAh0labvA= X-Google-Smtp-Source: ABdhPJzXiqpQxz5Wsc8c0fQ+nAT9FkqDLUQyD7PMH81WD+tgjhcmHXk+8+s+Bg92wZ2D2Efuu4pHr7XBgSbCCxrxYTk= X-Received: by 2002:a05:600c:6d2:: with SMTP id b18mr2190871wmn.98.1639606589225; Wed, 15 Dec 2021 14:16:29 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: John Kitchin Date: Wed, 15 Dec 2021 17:16:18 -0500 Message-ID: Subject: Re: org-cite and export to ODT To: =?UTF-8?B?WGlhbndlbiBDaGVuICjpmYjotKTmlocp?= Content-Type: multipart/alternative; boundary="000000000000527dc405d336a803" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::32b (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=johnrkitchin@gmail.com; helo=mail-wm1-x32b.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, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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 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=1639606631; 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=SUG5xyTTtM2/pE4U3mKF35EC7yxOlT6fq5AbSVNJAuA=; b=mqQzGfAuevUf1LnC0NCRR/oGvecgy2bpgfR/m9BSKwxvbSZTqE+edU9xvxfAQ5P1wuzNij qZCXilO0vqCA1U1aDCLtVYVGaFd/eWGolEdvjxV5MJEX3fRxsioDwpVxOpmRebqNswr623 VfBOmlD3/PMnsZ3rxzcs3tziVBvejG7oidxxmhS9To91Wy3qhHYRrIlUBEY07XNMa2Vxap xdZRdLyaz9k2ZdC1xaUuGL0TY4YSYffTwUhEq0OVTk/7eRqh47DzBF5r7S6/Zgft/YSLc0 m1blCjhLEo2DVSb8tDBbVYRq1R9fhLl1jg5HDLFHUpQtVhAuNWjJH+SLaZY7og== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639606631; a=rsa-sha256; cv=none; b=lmkxO32c/KlDXKLefgdZvzD3ipsI1uwUi6yLGACe8zaWCoFm8GdtfG7PL27V1TxZywRkw/ zki3NkpZQPAkjxllBrKhiTofVvXFfagv1lnDOn6DuYw8Apa60reaC/SjF6KYgQjhyD87uL +rDsRo4MDflwvHJ4ISEm8CEgURROhjF17iEr5qoN+m08AdMbNQEVxQbzPDzut8eOaGI4o8 OB+4+Uu0ZXgLWTlrttOkEVS3uzX/i0WcUsXsTzCW5qnCtHhWZUkocrJPVvsWdpQMFZWmPt XViDivsnZWDYuJiUjqfcsSlvP/WebMNe9SyZd1NcUCejWB5DUJ8fmlSXJHPcJQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=andrew.cmu.edu header.s=google-2021 header.b=MyvWxNPh; dmarc=pass (policy=none) header.from=andrew.cmu.edu; 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: -5.18 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=andrew.cmu.edu header.s=google-2021 header.b=MyvWxNPh; dmarc=pass (policy=none) header.from=andrew.cmu.edu; 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: BE2DA2E035 X-Spam-Score: -5.18 X-Migadu-Scanner: scn0.migadu.com X-TUID: JFxQLjVUi/AA --000000000000527dc405d336a803 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable That code does not belong in your .emacs file. It should be in an emacs-lisp block in your org-file like it is in the example. You should run it from the org file. John ----------------------------------- Professor John Kitchin (he/him/his) Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Wed, Dec 15, 2021 at 5:12 PM Xianwen Chen (=E9=99=88=E8=B4=A4=E6=96=87) = wrote: > Thank you all for the responses. I have to upgrade from orgmode 9.4.4 to > 9.5 first, to try out org-cite. > > I tried > https://github.com/jkitchin/org-ref/blob/master/examples/basic-csl.org#op= endocument. > I added the following codes to my .emacs: > > (let ((org-export-before-parsing-hook '(org-ref-cite-natmove ;; do this > first > org-ref-csl-preprocess-buffer > org-ref-refproc))) > (org-open-file (org-odt-export-to-odt) 'system)) > > I tried to eval-region, after selecting these codes. I got the complain > that org-ref-cite-natmove's function definition is void. > > Do I need to install or require something other than cite-ref? > > Xianwen > > On Thu, Dec 9, 2021 at 2:57 PM John Kitchin > wrote: > >> If you are trying to use org-ref for this see >> https://www.youtube.com/watch?v=3DrRR-5NSpKyE and this example: >> https://github.com/jkitchin/org-ref/blob/master/examples/basic-csl.org#o= pendocument. >> You need to use a preprocessing hook (org-ref-csl-preprocess-buffer) wit= h >> org-ref to get the citations and bibliography . >> John >> >> ----------------------------------- >> Professor John Kitchin (he/him/his) >> Doherty Hall A207F >> Department of Chemical Engineering >> Carnegie Mellon University >> Pittsburgh, PA 15213 >> 412-268-7803 >> @johnkitchin >> http://kitchingroup.cheme.cmu.edu >> >> >> >> On Thu, Dec 9, 2021 at 4:54 AM Xianwen Chen (=E9=99=88=E8=B4=A4=E6=96=87= ) >> wrote: >> >>> I have been using org-ref and biblatex. They export well to PDF, throug= h >>> LaTeX. I am able to export to ODT as well. However, I'm not able to hav= e >>> the bibliography or the references in the produced ODT. >>> >>> I searched online and found this tutorial: >>> https://kjambunathan.github.io/org-mode-ox-odt/Bibliography-and-Citatio= ns-in-ODT-export.html. >>> However, when following through the tutorial, I wasn't able to find >>> ox-jabref. >>> >>> Thinking about the new org-cite, which is orgmode's native citation >>> solution, I'm wondering if it would be easier to use org-cite within >>> orgmode and export to ODT? A small example with configuration suggestio= n >>> will be highly appreciated! >>> >>> Xianwen >>> >> --000000000000527dc405d336a803 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
That code does not belong in = your .emacs file. It should be in an emacs-lisp block in your org-file like= it is in the example. You should run it from the org file.




= John

-----------------------------------
Professor John Kitchin (= he/him/his)
Doherty Hall A207F
Department of Chemical Engineering
= Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



On Wed, Dec 15, 2021 at 5:12 PM Xianwen = Chen (=E9=99=88=E8=B4=A4=E6=96=87) <xianwen.chen@gmail.com> wrote:
Thank you all for the responses. I have to upgrade from or= gmode 9.4.4 to 9.5 first, to try out org-cite.


(le= t ((org-export-before-parsing-hook '(org-ref-cite-natmove ;; do this fi= rst
org-ref-csl-preprocess-buffer
org-ref-refproc)))
=C2= =A0 (org-open-file (org-odt-export-to-odt) 'system))

I tried to eval-region, after selecting these codes. I got = the complain that org-ref-cite-natmove's function definition is void.

Do I need to install or require something = other than cite-ref?
Xianwen

On= Thu, Dec 9, 2021 at 2:57 PM John Kitchin <jkitchin@andrew.cmu.edu> wrote:
<= /div>
If = you are trying to use org-ref for this see=C2=A0https://www.youtube.com/wa= tch?v=3DrRR-5NSpKyE and this example:=C2=A0https://github.com/jkitchin/org-ref/blob/master/examples/basic-= csl.org#opendocument. You need to use a preprocessing hook (org-ref-csl= -preprocess-buffer)=C2=A0with org-ref to get the citations and bibliography= .
John

= -----------------------------------
Professor John Kitchin (he/him/his)<= br>Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mel= lon University
Pittsburgh, PA 15213
412-268-7803


On Thu, Dec 9, 2021 at 4:54 AM Xianwen Chen (=E9=99=88=E8=B4=A4= =E6=96=87) <= xianwen.chen@gmail.com> wrote:
I have been using org-ref and biblatex. They export well to PD= F, through LaTeX. I am able to export to ODT as well. However, I'm not = able to have the bibliography or the references in the produced ODT.
<= div class=3D"gmail_default" style=3D"font-family:"trebuchet ms",s= ans-serif;font-size:large;color:rgb(0,0,255)">
I searched online and found this tutorial: https://kjambunathan.github.io/= org-mode-ox-odt/Bibliography-and-Citations-in-ODT-export.html. However,= when following through the tutorial, I wasn't able to find ox-jabref.<= /div>

Thinking about the new org-cite, which is= orgmode's native citation solution, I'm wondering if it would be e= asier to use org-cite within orgmode and export to ODT? A small example wit= h configuration suggestion will be highly appreciated!

Xianwen
--000000000000527dc405d336a803--