From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KEqVL/Knp2F4LAAAgWs5BA (envelope-from ) for ; Wed, 01 Dec 2021 17:50:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id CDtkK/Knp2HNawAA1q6Kng (envelope-from ) for ; Wed, 01 Dec 2021 16:50:58 +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 12C00D4DC for ; Wed, 1 Dec 2021 17:50:58 +0100 (CET) Received: from localhost ([::1]:45170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1msSor-00028p-60 for larch@yhetil.org; Wed, 01 Dec 2021 11:50:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43632) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msSme-0000qG-Is for emacs-orgmode@gnu.org; Wed, 01 Dec 2021 11:48:41 -0500 Received: from mail-40136.proton.ch ([185.70.40.136]:56771) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msSmW-0005V3-GF for emacs-orgmode@gnu.org; Wed, 01 Dec 2021 11:48:40 -0500 Date: Wed, 01 Dec 2021 16:48:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vidal-rosset.net; s=protonmail3; t=1638377308; bh=XZia6DLHaH8ooRyMW3vFlpxh4dryDpIrvhbTcH1gDoA=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=ZR0XqT8IO3qAl0xWrunW9HJ1GqzS8sL3evfucVOuh+0eQHBOWnXI/tfbI9Jgxyek8 A1JeMZ4mHqj52TQGv3a9XfL1QHiVTHvaIDyeQRhvdG6EuQB1WcvHIrfdXpZ4xgUobG 6on50OsNRbNwxr9YEvhibAja5K/Vnj32uz3VIG7e28SGrkkXtsBa25bLOheZAYDLF0 uhVk546Zpli9CHZd3/In4VbDX/b/mm5jjwa6McIaXeseWP/JHqJ/Px1cnqsms4++SO G1XfpnAyLgQ0ytDNFXbVeBYRojffIqbBmDwTIzOm1+AiTPnSPy2T0m5VB9Mvf+Sd+3 RfOH8V17emHcg== To: =?utf-8?Q?Andr=C3=A1s_Simonyi?= From: Joseph Vidal-Rosset Subject: Re: citeproc-org and org-ref 3 Message-ID: <573b6fad-e445-3f53-9cd5-43d5b7f86904@vidal-rosset.net> 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.136; envelope-from=joseph@vidal-rosset.net; helo=mail-40136.proton.ch X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: , Reply-To: Joseph Vidal-Rosset Cc: org-mode-email , John Kitchin 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=1638377458; 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=XZia6DLHaH8ooRyMW3vFlpxh4dryDpIrvhbTcH1gDoA=; b=YQY1ZiFbzmfmmhIafwJzxVcHMMZ4zpgNb85UJJenayJQZ4ZvkY+2qAwb7PXOz+tIL5jq9d zVDVXFPbFDLDD2STscG1oIGUn5CLmdxdezTi1uFoSVL1qx0wpN8w2OyRZ6sJokmVhHKEEq RWYXYoA0TOTOEyeliFgt7xRXbnYAe/XTzVviiYJ4MIBoqLM+AYLAjfHuSgMpgh4Mb1ik7F vH44akTSrxY9cs961GztTO98TJGFzK2yeeUMz5RPfmjKgipa92b+vIqkGWwLEoMlCSbW5j pIGe6JpgsBCo2Nl48f7ah3IydhBohT7Ija0fqM7OZ/D90fmap7Kj7kKuxmDTZQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638377458; a=rsa-sha256; cv=none; b=Vnjph5wALGPf3QZWi5kXy6a+ypWuXuGeCNtuyeLxDCzteep5pLeIXQjN5+kw0wKIARcnr/ sXu3xApdq3JuxhCBRv1RK9UqaMWS/kJaj4tKej9JGZv4hrjWM75Yam5FsZLSE5jOraD8By Eaup3/fhPWjPbJqxoYVGMa9HjNfDn+saZVO9oeZUR/kvC4hu5YTvYa8NMiYRqU1+nY9P+q NTY1gGeKCw0q58rvgm8TsI0GffRmNYxx6tOxijXy4tM6GDUfGnWFkNuVUH1E1bUvsV8IO8 O5DsWPvu59mlJlk6n99KzlwyTVLC3gnpfyTKK/PnuX3OM546HDkkoqyTjHNLHA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=vidal-rosset.net header.s=protonmail3 header.b=ZR0XqT8I; dmarc=fail reason="SPF not aligned (relaxed)" header.from=vidal-rosset.net (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: -1.81 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=vidal-rosset.net header.s=protonmail3 header.b=ZR0XqT8I; dmarc=fail reason="SPF not aligned (relaxed)" header.from=vidal-rosset.net (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: 12C00D4DC X-Spam-Score: -1.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: b4vjSJqwC5tm Dear Andras, You are very probably right. I will have a look on this entry in my default bibliography file. The code (let ((org-export-before-parsing-hook '(org-ref-csl-preprocess-buffer))) (org-open-file (org-html-export-to-html))) put in .emacs.d/personal/preload/myorgexport.el provokes the request of opening a html file, when emacs --daemon is started; therefore I conclude that it should not be used as I did... Anyway, every tentative to export in a bibliography in html fails at the moment, even with a new bibliography file... :( Best wishes, Le 01/12/2021 =C3=A0 17:33, Andr=C3=A1s Simonyi a =C3=A9crit=C2=A0: > Dear Joseph, > > based on the error message there seems to be a problem with the > 'curley-nil-on-bennet-spinoz' bibliography entry, is it possible that > it contains a 'year =3D nil' row? If yes then I don't think that is > well-formed, at least citeproc-el cannot currently parse it. Anyhow, > apparently I need to improve/add citeproc-el error messages about > bib(la)tex parsing, because several parsing problems have surfaced > lately and the current error messages aren't helpful at all. > > best wishes, > Andr=C3=A1s > > On Wed, 1 Dec 2021 at 16:50, Joseph Vidal-Rosset > wrote: >> >> 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 backt= race. 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) #> -0x7fcb46b5c8e80b3>)("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) #> -0x7fcb46b5c8e80b3>) #) >> 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/myorge= xport..." >> "/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" ni= l >> 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 () #> 0xec639179d6199fa>) #f(compiled-function () #> -0x1f3c686ddc0dc635>) 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 : >>> See https://www.youtube.com/watch?v=3DrRR-5NSpKyE >>> for an overview of what= to >>> 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 ma= y >>> 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= for >>> a while. I think if you wish to use org-ref 3 then you should simp= ly >>> remove citeproc-org entirely -- if I understand correctly the late= st >>> 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 h= tml >>> > 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. >>> > >>> >>