From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CHKtBV6bp2E3CgAAgWs5BA (envelope-from ) for ; Wed, 01 Dec 2021 16:57:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oEdEAV6bp2F5aAAAbx9fmQ (envelope-from ) for ; Wed, 01 Dec 2021 15:57:18 +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 56ECDBD25 for ; Wed, 1 Dec 2021 16:57:17 +0100 (CET) Received: from localhost ([::1]:39212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1msRyu-0000ge-EL for larch@yhetil.org; Wed, 01 Dec 2021 10:57:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51586) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msRs2-0006ib-Re for emacs-orgmode@gnu.org; Wed, 01 Dec 2021 10:50:11 -0500 Received: from mail-4022.proton.ch ([185.70.40.22]:41091) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msRrz-0005Kl-3Y for emacs-orgmode@gnu.org; Wed, 01 Dec 2021 10:50:10 -0500 Date: Wed, 01 Dec 2021 15:49:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vidal-rosset.net; s=protonmail3; t=1638373803; bh=iVB6fEJYwJ4SyoirNLGKzQ76FMZs/oLzPk1eJjAnvKA=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=Df31FMH2dsTzZXZIt3z3xLzklgFLeR9+MvkcufRzzKWbdaz/xHdY/JmbEJru4cP9w dS1HRMKoEaUQhgsu4cN9UsdWMSwB2s6XWK4AT+tcpGfvtL5a3nzwIbJDrOvjWW/xBq 4WpjJtllmP5pu0N6JGTvl3LEiyrpyGI74JvWJS9nu5W8F/vC6geNx1YzjmDd9cgvuy mSum+mtoG97ePj6+o5dZbNbHTQfZkpXCp1zO+4jeWgM6UF8mht3HMg79tqte8fQ6+l tFyOea8Mdf/R4UjP+37Gd904+z8GsLAt7xo/T0NU5TeDqNbRDMl94fpYLlFcTKDLnG 7VdV1Gic4rJRg== To: John Kitchin , =?utf-8?Q?Andr=C3=A1s_Simonyi?= From: Joseph Vidal-Rosset Subject: Re: citeproc-org and org-ref 3 Message-ID: In-Reply-To: References: <56442351-6f41-3490-01f2-0ca5aa930c6a@vidal-rosset.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.22; envelope-from=joseph@vidal-rosset.net; helo=mail-4022.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: , Reply-To: Joseph Vidal-Rosset Cc: org-mode-email 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=1638374237; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=iVB6fEJYwJ4SyoirNLGKzQ76FMZs/oLzPk1eJjAnvKA=; b=ByCb0tACzbasgGnn5L8DYdKmfamyM1l0lPdrRveLGMSD/nL4mxFFxTQrOcadc2sczcp8WT P9KFZrI99lFyp669uv08/BATUzzUxKMb00+i2GwF/pbRnPyyYewbdio1DV3xFGQkOLajQC 4yK2TWmL6lyiOojCLCj7L5+menlJ0+wj//vzBynHj4b4ts/LLEdP/Uf1JP1yWuGSfP+a2f +K732y8OiMKkcPfAWYFa0I8AbwEGD5UO6wxye20zOn1FeWMuoFfmIT9cAPVtGlun0PFdrt Z9cBuIn2WJIxyM0dlnD2ntM1aklWJU1CPmNf8liHoBMvo/+AsrKz2qtHpT4OTQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638374237; a=rsa-sha256; cv=none; b=fYkdtFxkQxTk9BlYHAxA8oZpz3UWr2lFC1TNjYG9w73t6tl/VqoHZb6DhoVn6s/5Et5nGF vDHa4kBPFomq1JIrtPFc2RNbvXw94ldM7hZLxoZ22vCY9Hc4h90AgVc5xyEZF+LhdcQwd/ +2rFwC4xTBWThy7Ud5tteV9irr1dUwMDwLYbXuZiYzv637zYz42QqKrd5eI1/k6dC7ASRg 4yAkXGzG6RR1dj1BDuakWCTMMZV9mvptcgpP3zv23KMxgrtSi3qnBePiSBPqmWkElEj376 fRkLk+AOzRr2UD8EkF4nHJBNnEmPm6ghuMb8sQ8iiU6H8Q/TiA4eSDbD64JV1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=vidal-rosset.net header.s=protonmail3 header.b=Df31FMH2; dmarc=pass (policy=none) header.from=vidal-rosset.net; 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: -4.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=vidal-rosset.net header.s=protonmail3 header.b=Df31FMH2; dmarc=pass (policy=none) header.from=vidal-rosset.net; 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: 56ECDBD25 X-Spam-Score: -4.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: V6WRhyYfTjsL Dear John, I must say that to export references in html with org-ref 3, I meet a lot of problems (with LaTeX, it's fine). I am using prelude emacs and GNU Emacs 29.0.50 . Starting emacs --daemon, the code (let ((org-export-before-parsing-hook '(org-ref-csl-preprocess-buffer))) (org-open-file (org-html-export-to-html))) in my setup provokes this unwanting effect: [Prelude] Loading personal configuration files in /home/joseph/.emacs.d/personal/preload... Loading /home/joseph/.emacs.d/personal/preload/myorgexport.el (source)... Output file: and with Enter : [Prelude] Loading personal configuration files in /home/joseph/.emacs.d/personal/preload... Loading /home/joseph/.emacs.d/personal/preload/myorgexport.el (source)... Output file: Warning (initialization): An error occurred while loading =E2=80=98/home/joseph/.emacs.d/init.el=E2=80=99: Wrong type argument: stringp, nil To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the =E2=80=98--debug-init=E2=80=99 option to view a complete error backtrac= e. Disable showing Disable logging Starting Emacs daemon. With --debug-init, I get: Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-to-number(nil) citeproc-bt--to-csl-date("nil" nil) citeproc-blt-entry-to-csl((("Url" . "http://dx.doi.org/10.1163/9789004246638_005") ("Doi" . "10.1163/9789004246638_005") ("Date_added" . "Mon May 16 19:09:37 2016") ("Booktitle" . "Spinoza: Issues and Directions") ("Series" . "Spinoza: Issues and Directions") ("Year" . "nil") ("Publisher" . "Brill Academic Publishers") ("Pages" . "39-52") ("Author" . "Edwin Curley") ("Title" . "ON BENNETTS SPINOZA: THE ISSUE OF TELEOLOGY") ("=3Dtype=3D" . "InBook") ("=3Dkey=3D" . "curley-nil-on-bennet-spinoz")) nil nil) #f(compiled-function (key entry) #)("curley-nil-on-bennet-spinoz" (("Url" . "http://dx.doi.org/10.1163/9789004246638_005") ("Doi" . "10.1163/9789004246638_005") ("Date_added" . "Mon May 16 19:09:37 2016") ("Booktitle" . "Spinoza: Issues and Directions") ("Series" . "Spinoza: Issues and Directions") ("Year" . "nil") ("Publisher" . "Brill Academic Publishers") ("Pages" . "39-52") ("Author" . "Edwin Curley") ("Title" . "ON BENNETTS SPINOZA: THE ISSUE OF TELEOLOGY") ("=3Dtype=3D" . "InBook") ("=3Dkey=3D" . "curley-nil-on-bennet-spinoz"))) maphash(#f(compiled-function (key entry) #) #) citeproc-hash-itemgetter-from-any(("~/Dropbox/Orgzly/reforg.bib")) org-ref-process-buffer(html) org-ref-csl-preprocess-buffer(html) run-hook-with-args(org-ref-csl-preprocess-buffer html) org-export-as(html nil nil nil (:output-file "~/test.html")) org-export-to-file(html "~/test.html" nil nil nil nil nil) org-html-export-to-html() (org-open-file (org-html-export-to-html)) (let ((org-export-before-parsing-hook '(org-ref-csl-preprocess-buffer))) (org-open-file (org-html-export-to-html))) eval-buffer(# nil "/home/joseph/.emacs.d/personal/preload/myorgexport..." nil t) ; Reading at buffer position 3196 load-with-code-conversion("/home/joseph/.emacs.d/personal/preload/myorgexpo= rt..." "/home/joseph/.emacs.d/personal/preload/myorgexport..." nil nil) load("/home/joseph/.emacs.d/personal/preload/myorgexport...") mapc(load ("/home/joseph/.emacs.d/personal/preload/myorgexport...")) (progn (message "[Prelude] Loading personal configuration files in ..." prelude-personal-preload-dir) (mapc 'load (directory-files prelude-personal-preload-dir 't "^[^#.].*el$"))) (if (file-exists-p prelude-personal-preload-dir) (progn (message "[Prelude] Loading personal configuration files in ..." prelude-personal-preload-dir) (mapc 'load (directory-files prelude-personal-preload-dir 't "^[^#.].*el$")))) eval-buffer(# nil "/home/joseph/.emacs.d/init.el" nil t) ; Reading at buffer position 4489 load-with-code-conversion("/home/joseph/.emacs.d/init.el" "/home/joseph/.emacs.d/init.el" t t) load("/home/joseph/.emacs.d/init" noerror nomessage) startup--load-user-init-file(#f(compiled-function () #) #f(compiled-function () #) t) command-line() normal-top-level() It's too complicated for me. org-ref version 2 with citeproc-org by Andras worked well, but now I am afraid that to downgrade to org-ref 2 is not necessarily the best solution. I am lost. Best wishes, and thanks for your help. Jo. Le 30/11/2021 =C3=A0 18:31, John Kitchin a =C3=A9crit=C2=A0: > See https://www.youtube.com/watch?v=3DrRR-5NSpKyE > for an overview of what t= o > do. basically you need a csl file that provides the style you want, and > you specify it like this in the org file or in default settings. You may > also need a locale file if you are not blogging in english. > > #+csl-style: apa-5th-edition.csl > > #+csl-locale: en-US > > > You can find a basic example org file for html export with CSL at > https://github.com/jkitchin/org-ref/blob/master/examples/basic-csl.org > > > Here is a minimal way to export your blog file I suppose. > > (let ((org-export-before-parsing-hook '(org-ref-csl-preprocess-buffer))) > (org-open-file (org-html-export-to-html))) > > > 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 Tue, Nov 30, 2021 at 12:16 PM Andr=C3=A1s Simonyi > > wrote: > > Dear Joseph, > > unfortunately, my note on the `citeproc-org` page has become kind of > misleading and has to be updated because org-ref didn't switch to the > new org-cite citation syntax after all, although this was the plan fo= r > a while. I think if you wish to use org-ref 3 then you should simply > remove citeproc-org entirely -- if I understand correctly the latest > version of org-ref supports the old syntax as well and is capable of > CSL-based export (among others) on its own. > > best regards, > Andr=C3=A1s > > On Tue, 30 Nov 2021 at 18:00, Joseph Vidal-Rosset > > wrote: > > > > > > Dear John, and dear Andras, > > > > Having updated my org-ref to the last version, I see that the html > > export of bibliography does not work any longer for my blog. > > > > Reading Andras's note here > > https://github.com/andras-simonyi/citeproc-org > > > I confess that I am lost. > > > > What have I to do to not waste too much time with this problem? > > > > Best wishes, > > > > Jo. > > >