From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EDFuHlKBumG1lQAAgWs5BA (envelope-from ) for ; Thu, 16 Dec 2021 00:59:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SF75GVKBumGFTgAAbx9fmQ (envelope-from ) for ; Wed, 15 Dec 2021 23:59:14 +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 015BC1578B for ; Thu, 16 Dec 2021 00:59:14 +0100 (CET) Received: from localhost ([::1]:56944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxeAx-0004o2-Ic for larch@yhetil.org; Wed, 15 Dec 2021 18:59:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxeAE-0004nt-Pp for emacs-orgmode@gnu.org; Wed, 15 Dec 2021 18:58:26 -0500 Received: from [2607:f8b0:4864:20::332] (port=43741 helo=mail-ot1-x332.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxeAC-0000a9-QZ for emacs-orgmode@gnu.org; Wed, 15 Dec 2021 18:58:26 -0500 Received: by mail-ot1-x332.google.com with SMTP id i5-20020a05683033e500b0057a369ac614so26917514otu.10 for ; Wed, 15 Dec 2021 15:58: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=VUPKwh7tIoq7gZfvXd/HvfavNrhKBxy7AsFKb9bm2E0=; b=oxaztbeUiyoKN0K1n9tD6a2OJIGP/LkvwmCXiZgHR+/bDBZsUr+maSnI7vrmKrUyTh IDIWwmXz+pNOrwQI0kLZOSDdMKoLqVyQH1hJNErorC4FWHeNV+DyimC4JXol5bqruK8G 9ABSf/L+ihs6psSKZirzaHwjs/Om8qyZWTEWY9dEWVSETjGvA0W7NnT4Q3dt4D6nZZFG fveWCp3V1oK9Zd43IdPaTI0A9cyQ/KEPev8WgdqwpYcVIYYpK6f9ht+5OlgXVuWs+Vh2 t3p9bP3SC2XxqonZACau7EGBF/aDywBkBRnUkZdAcdWsoolHbN3va1psfRDw1O18Cj62 b3xA== 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=VUPKwh7tIoq7gZfvXd/HvfavNrhKBxy7AsFKb9bm2E0=; b=KIlCwNTrrwdQBiWe2RIc7PXY6Fb6Cb0ESY7VRmhiHfOdbv5q2rz/o7zPKAk0NnNdvA 6ud6g6sXWZZ8qzCiqXjNy+E7UOMcm4eiHxtn4baxSBBn5visGm4xZXNjxe/oykSNwxm4 gVb7Q9fjA52b+YFwa+WwQKV7itw4V5rtY4vFO2L1BrktINA654yNa2VTJ0O0QxAfdEEs AUWcuUtAiwylGrY1XUIFNN/LdaWKE+gf2HfmGyfMhM77azYl9Qc84stQN55lszo5O1TQ ZbmGdcb/LUtUuVgQYOl+BrCqx41VsEJVxvi0CjeIXPBRCzXyuAem+rYv7bwNBVEEbW14 1fcg== X-Gm-Message-State: AOAM532L/ydEkBjvul5Vu7yHViw5vzkSzqLEl/QhebDySZLTtS3JYqGn kNL15Q5rYQAPZrL3quZXZCrfcsG/2y/zMRynuSE= X-Google-Smtp-Source: ABdhPJzun0O/z5RMFNQNfwKc6Oa8omGARlhRYhQDviEpVLun0gWa4/sXEhucn4oNmuVYj4SXbyMpOpDstciNKPIAtIU= X-Received: by 2002:a9d:19e8:: with SMTP id k95mr10779047otk.12.1639612703604; Wed, 15 Dec 2021 15:58:23 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?B?WGlhbndlbiBDaGVuICjpmYjotKTmlocp?= Date: Wed, 15 Dec 2021 23:57:46 +0000 Message-ID: Subject: Re: org-cite and export to ODT To: John Kitchin Content-Type: multipart/alternative; boundary="000000000000c4846a05d3381418" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::332 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::332; envelope-from=xianwen.chen@gmail.com; helo=mail-ot1-x332.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, 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=1639612754; 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=VUPKwh7tIoq7gZfvXd/HvfavNrhKBxy7AsFKb9bm2E0=; b=ZGjZTnWK3gUsnBGnNswyqAZzpq2KFwuvjPEY03k+ffukXRahtLkvddg5TTNNaupkyrzljV 9wwVuxfgvYC0HY8e6TC05EiVl95ad+stehcHX+VipgMrSBJldP1LRUKUo3jzwoypzZ4vrk 2mytVmP3Hn3kmBwFzC5YTxBNk2hAw/ZYhMVeCvDObhIfL8mqm4Ze61r30tFPAKVEV4PPfg 2uDS92Pfg9P4O0huFXsBAEhOm07wx3Ziej3ICYYxXVRTKUxCus9ZlRjEmK2NCaLYqWg8hG LVD47CXlhhzQYsxKYfpJtonV0OIHdCU9MsgsPkCmjlnEa5G1/aauCrhs6qOmig== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639612754; a=rsa-sha256; cv=none; b=EMOPtGvrnAARYrI6GKVQMbGAjgfQgNN+Lwa5OzgW3fCFZ3a3d/lQ5uAgOGoHUmqnk5a/VZ 6fN3p8JlLsI9fSgPHzz+AU9hIguE+EYueZ7RM04TFeMXZnhMUEiSmr9jvkFDPvjwqNG/Sx eX1M9C9uLXl3Ub6i3H0SLWvGUUzghrg2Rj95/ivJwCxQhdxtDgyul5SIIgQ37Vr1HMP3yt buiJbdfkxw5Ph+eccP063y24oLIi8vO5OKQToUE/zsgGMHk78+W1Ci+W1gIQgONlPwKCgJ BsO2fixPVKaj779/q7HMLaqtBqzppfsgu2kEeF6CyB6Lhv4ZwFY9JKp7C9qMfw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=oxaztbeU; 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: -9.18 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=oxaztbeU; 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: 015BC1578B X-Spam-Score: -9.18 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1bscHF8oZZqE --000000000000c4846a05d3381418 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you John. I'm not sure why it does not work. Below is the minimal example I created, using your example. I ran C-e o o to export to ODT. The resulted ODT file didn't have the reference. #+title: A basic example of org-ref for csl export #+options: toc:nil #+csl-style: apa-5th-edition.csl #+csl-locale: en-US * Bibliography bibliography:~/data/library/bibliography/biblatex/biblatex.bib cite:bayulken-et-al-2020-nbs-climate_change-pandemics * build :noexport: #+BEGIN_SRC emacs-lisp :results silent (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)) #+END_SRC On Wed, Dec 15, 2021 at 10:16 PM John Kitchin wrote: > 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 r= un > 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#o= pendocument. >> 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#= opendocument. >>> You need to use a preprocessing hook (org-ref-csl-preprocess-buffer) wi= th >>> 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) < >>> xianwen.chen@gmail.com> wrote: >>> >>>> I have been using org-ref and biblatex. They export well to PDF, >>>> through LaTeX. I am able to export to ODT as well. However, I'm not ab= le to >>>> have 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-Citati= ons-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 suggesti= on >>>> will be highly appreciated! >>>> >>>> Xianwen >>>> >>> --000000000000c4846a05d3381418 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you John. I'm not = sure why it does not work. Below is the minimal example I created, using yo= ur example. I ran C-e o o to export to ODT. The resulted ODT file didn'= t have the reference.

#+title: A basic example of org-ref for csl expor= t
#+options: toc:nil
#+csl-style: apa-5th-edition.csl
#+csl-locale= : en-US

* Bibliography

bibliography:~/data/library/bibliograp= hy/biblatex/biblatex.bib
=C2=A0
cite:bayulken-et-al-2020-nbs-climate_= change-pandemics

* build :noexport:
=C2=A0
#+BEGIN_SRC emacs-= lisp :results silent
(let ((org-export-before-parsing-hook '(org-ref= -cite-natmove ;; do this first
org-ref-csl-preprocess-buffer
= org-ref-refproc)))
=C2=A0 (org-open-file (org-odt-export-to-odt) '= system))
#+END_SRC

On Wed, = Dec 15, 2021 at 10:16 PM John Kitchin <jkitchin@andrew.cmu.edu> wrote:
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 f= rom the org file.




John

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


On Wed, Dec 15, 2021 at 5:12 PM Xianwen Chen (=E9=99=88=E8=B4=A4=E6= =96=87) <xia= nwen.chen@gmail.com> 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.


(let ((org-e= xport-before-parsing-hook '(org-ref-cite-natmove ;; do this first
= 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 compl= ain that org-ref-cite-natmove's function definition is void.

Do I need to install or require something other tha= n cite-ref?

<= div class=3D"gmail_default" style=3D"font-family:"trebuchet ms",s= ans-serif;font-size:large;color:rgb(0,0,255)">Xianwen

<= div class=3D"gmail_quote">
On Thu, Dec= 9, 2021 at 2:57 PM John Kitchin <jkitchin@andrew.cmu.edu> wrote:
If you are t= rying to use org-ref for this see=C2=A0https://www.youtube.com/watch?v=3Dr= RR-5NSpKyE and this example:=C2=A0https://github.com/jkitchin/org-ref/blob/master/examples/basic-csl.org#op= endocument. You need to use a preprocessing hook (org-ref-csl-preproces= s-buffer)=C2=A0with org-ref to get the citations and bibliography .
John

----------= -------------------------
Professor John Kitchin (he/him/his)
Doherty= Hall A207F
Department of Chemical Engineering
Carnegie Mellon Univer= sity
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.che= n@gmail.com> wrote:
= I have been using org-ref and biblatex. They export well to PDF, through La= TeX. 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.

I searched online and found this tutorial: https://kjambunathan.github.io/org-mode-ox-o= dt/Bibliography-and-Citations-in-ODT-export.html. However, when followi= ng 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 configurati= on suggestion will be highly appreciated!

Xianwen
--000000000000c4846a05d3381418--