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 wE2EIi+kp2HkKQAAgWs5BA (envelope-from ) for ; Wed, 01 Dec 2021 17:34:55 +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 KDEaHi+kp2FGfwAAbx9fmQ (envelope-from ) for ; Wed, 01 Dec 2021 16:34:55 +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 110922B59C for ; Wed, 1 Dec 2021 17:34:55 +0100 (CET) Received: from localhost ([::1]:54842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1msSZK-000652-5Q for larch@yhetil.org; Wed, 01 Dec 2021 11:34:54 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39194) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msSYe-00064t-HN for emacs-orgmode@gnu.org; Wed, 01 Dec 2021 11:34:12 -0500 Received: from [2a00:1450:4864:20::42a] (port=39641 helo=mail-wr1-x42a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1msSYc-0000UW-1u for emacs-orgmode@gnu.org; Wed, 01 Dec 2021 11:34:12 -0500 Received: by mail-wr1-x42a.google.com with SMTP id a18so53682646wrn.6 for ; Wed, 01 Dec 2021 08:34:09 -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:content-transfer-encoding; bh=GpOfaEoUw7700V+hrCU+nxTHJiXRvFZyeFIttum/oWQ=; b=HpmF6t455vT8afqHH5OfwZDwsQqIz+EnsqaLIm6WFLD0KFGF0Pqn1DbeHqhdN2dK09 OLCL7xrbyfuJrQIXLVHMg1YSKClgAQMsCJuG3dORfhPNReEtTo+u1NOTlL3Jz//xhj1l aK1gZneM6VyonBqBl0C/JL08UjOnAJrElhLnoKiUgh0PTEYgATjwydGLy18Pc0bc8XCj dIy+6YEE7ug4C98+WpNBLFKck1LCYdclP3gD09YaTL9zi0zSVTG+/E19Ka5xuR7IWldM IbKRx8Ht68lUjhsxTKWUlL3YqQUprMjsyzJOy9N1xHnyFKkqDi6PiMAwhQupiORsHrb8 kwHA== 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:content-transfer-encoding; bh=GpOfaEoUw7700V+hrCU+nxTHJiXRvFZyeFIttum/oWQ=; b=0BllkmxUMyEuoKmuqRY8V5k4DXwqAZIXXRCEvgM3IFYAXWooI7QQ811G5C14XLRPNa RfP+HQjsIWOnhs8Ytkw2DtrJcPaYrqscIUsoDSl/Zi3hDNg/xU5g4uKotEI+k53/f5XP HzSrM2XzzUqlt+6LQ8x2WlvpqAFUmIPe/0PXj7Y/yqA6KIaN7KTx9TkqOOjLOUByk9Vu 5j0Sfxr2jtFpufk5ImbDv5KbYeyujX4kwVV/RCoEL5EDJaLakAgzYFq/uu/JMlNvCP1E 4Sgyb0V1zDq922QwrY08CHXzjlof6VUA9Jlh5N5tdvDaRGowNCC8mS0xg044Nn5rHyTn 4ZPg== X-Gm-Message-State: AOAM531UBI1C5YaCXwdHlLrLEi/ZHa5C5/dqzmpgCawBde3aK3k6/VWG w5aDEF3KwiL+lNupcSWVtN+PppBzEYBMyrFhE84= X-Google-Smtp-Source: ABdhPJwj1vHOqDizVrDwVtrFTJ17ZmzMnp1M3TgmHUMKNuuWos8piMDJoNFe/MBLMZ8hHbn0b1usdgEks6oA6Z6lpOM= X-Received: by 2002:a5d:6d0b:: with SMTP id e11mr8158374wrq.16.1638376447786; Wed, 01 Dec 2021 08:34:07 -0800 (PST) MIME-Version: 1.0 References: <56442351-6f41-3490-01f2-0ca5aa930c6a@vidal-rosset.net> In-Reply-To: From: =?UTF-8?Q?Andr=C3=A1s_Simonyi?= Date: Wed, 1 Dec 2021 17:33:56 +0100 Message-ID: Subject: Re: citeproc-org and org-ref 3 To: Joseph Vidal-Rosset Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42a (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=andras.simonyi@gmail.com; helo=mail-wr1-x42a.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, PDS_HP_HELO_NORDNS=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-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=1638376495; 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: 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=GpOfaEoUw7700V+hrCU+nxTHJiXRvFZyeFIttum/oWQ=; b=nwhga25/VCtqclMesvXTQaqF1k6HsHV+YcP7ZhL0auEikXvQz8cSihAscZoNtrSfWwd2e5 6y+BdC2ZlaJYTHkRyx37erLoZXFjevgGeNafYLd4Y1mdwcQixVZPYwzsp7xTl/hvmEiVLN 96JEIv2+dxrC7UQrA3biBJ7PDFihamPzU0yPn6RdGMk/1baLDcJJhgj0XX0aAllqUUkJ8N eHQZyPmNnkiM0MMRNWN24qQSFhS4pfmEnUazi/bUx+LQYudX3oQmUb2WiiERlbMdCxnuBK pxYJqMgRzN45xMNK+AQ222HTiPcdOxOB5M5Oan2LIWhqJ+LyN1N7N+ruc+SH2w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638376495; a=rsa-sha256; cv=none; b=BZBicvV2oo4QOB0fsOKVd0KYG0WMPBbuP4qoAt+GnPjWt87IqmyFFVuUEdnmxjey4yd1qF 4DVkf9pDmBYmKQrrqGMteaKEc1M8wGMnVY7AwSQoMA6ZuGZ88B2Kg+7DcRex6nBM9t4Y6e UARTVX6lizYo0IEDQVTGtIRhLz3i1tWC7d3z1RcwA+repZmDM9504uQ/oisZ5HVxH75rl1 JShBu/2uEByyC5FDvfDLXjKNwP9+x/6rWDY6gW2GCrPR5U/BeC7XlW5Oa4tBMr8NrG8o6i rdZPakf5kG5lxuYYM8jPlhza+S52emd36dahwVgh8UPH94JmumEhhddAH9c+EA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=HpmF6t45; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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=gmail.com header.s=20210112 header.b=HpmF6t45; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: 110922B59C X-Spam-Score: -1.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: 540JpeSJyjwf 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 backtr= ace. 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/myorgex= port..." > "/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 () # 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 o= f > > misleading and has to be updated because org-ref didn't switch to t= he > > 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 simpl= y > > remove citeproc-org entirely -- if I understand correctly the lates= t > > version of org-ref supports the old syntax as well and is capable o= f > > 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 ht= ml > > > 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. > > > > > >