From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +PcPHpD1p2G7DgEAgWs5BA (envelope-from ) for ; Wed, 01 Dec 2021 23:22:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id uLnEGZD1p2ESRwAA1q6Kng (envelope-from ) for ; Wed, 01 Dec 2021 22:22:08 +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 BE67AC351 for ; Wed, 1 Dec 2021 23:22:07 +0100 (CET) Received: from localhost ([::1]:57012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1msXzK-0004Zw-Ky for larch@yhetil.org; Wed, 01 Dec 2021 17:22:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msXxD-0003nW-5P for emacs-orgmode@gnu.org; Wed, 01 Dec 2021 17:19:56 -0500 Received: from [2607:f8b0:4864:20::429] (port=41494 helo=mail-pf1-x429.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1msXx9-0006Rv-UG for emacs-orgmode@gnu.org; Wed, 01 Dec 2021 17:19:54 -0500 Received: by mail-pf1-x429.google.com with SMTP id g19so26032108pfb.8 for ; Wed, 01 Dec 2021 14:19:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=XbzTvYjqgj5RNHQuTT8VRE6M1wH+G2rvgZGmTdALREM=; b=QMGPlZhq8bByhaZk31o5Oj/rrOit7w5+RB9uYEiO5LGPLrakM/4vDOw0P3jEiEdoTy kh+YXGWJWcM/KsYPH66HMW0Rl99cpH/LJOHnKIR0zRVMNduGgkAI6pxNVVD4Z3MHbEIk YPyNPU1cUtvAcwHr1GmS1Zg4JfJ9XSAVZJisZ8AcPv6kBRoKsW/4aDRnyjCtkxtDT/HT w39FLE5wyoTFaVCvQyip4LwI4Bl/SeGOros7SIlYg7Dcv8/TR0gQ1UIm2430k3NarNCv xCsiAcVtt3cR/zemldBghaf0gZpj0PJZJ1x1jr6VhqrdYpyxK78tHv6zJSNTOe8duSbP USCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:references:user-agent:from:to:cc:subject :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=XbzTvYjqgj5RNHQuTT8VRE6M1wH+G2rvgZGmTdALREM=; b=NkiMMalL6QwZX6r657rFJL21UKYN7DfHoQjUQnBHV3/idSdyASeG24w3Ae9d1UP/7S 8h7Vl0+djzfeM3q89kR0NgeLs39GoY30U2LfiL+A+9oq0r1ELM3XQW30stFdnqq7s9n2 rlmgomUUrBiQNrTMapDh33mjO4RCYCsmVgw0PENbNHWGZ0BlWiHghbQR6XhLdwt5X8T3 KRCVf9g5najiSsjjFIcnr0PLPxfLsOu33xRGZDfF139krnDxq27KyvHzKB6y/cBOQjVw CFY6p7V+VjcgBQXpGZ8BEmnQK0DV/iSolgPfzLQ4jZn2EKn5/gHu67y/eCOqzA28rbux 3Ueg== X-Gm-Message-State: AOAM530fX9tljy4B+Z6Kyu45rt+GOYstKO2sp/K9is6SJiBeLTAskxzv PXx3OQJJC2eaHeneZZniMTCtgezbv3I= X-Google-Smtp-Source: ABdhPJwDGfltsOdtXFQ+v55iz3wP9yBRk9bulzPTtOZg1gLNGW0QXak8rqIIbDTmssR8P6bfFSNtjQ== X-Received: by 2002:a05:6214:4107:: with SMTP id kc7mr9110807qvb.12.1638396700435; Wed, 01 Dec 2021 14:11:40 -0800 (PST) Received: from Johns-iMac.local ([2601:547:901:82e0:9c6:5371:40e4:9e90]) by smtp.gmail.com with ESMTPSA id f12sm512390qkh.22.2021.12.01.14.11.39 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 Dec 2021 14:11:39 -0800 (PST) References: <56442351-6f41-3490-01f2-0ca5aa930c6a@vidal-rosset.net> User-agent: mu4e 1.6.8; emacs 28.0.60 From: John Kitchin To: =?utf-8?Q?Andr=C3=A1s?= Simonyi Subject: Re: citeproc-org and org-ref 3 Date: Wed, 01 Dec 2021 17:08:28 -0500 In-reply-to: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::429 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=johnrkitchin@gmail.com; helo=mail-pf1-x429.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_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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 , Joseph Vidal-Rosset 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=1638397327; 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=XbzTvYjqgj5RNHQuTT8VRE6M1wH+G2rvgZGmTdALREM=; b=TbI6xHL4NE5fnVODujOT3HkNM32RWaKpx7yyUYQYesQ55WMlCSLocAdYUB4B0MUghb4LA4 CpMKwqdRCua++ppLPg1xfMf2D2qO9/i1jdCnVdet1KKT5AX9c/3xcDFaqtQgUD5j55phrF KeOwJJ984Y7lXkgw8MX88Honpsh9wx3Z/7E8yGJ17bTWGxN1azQsHuDt+LVRwY+7z3Qfqg OaH3RMZmGDL+ur/vslln4OmmhCgJfZXCBIAAuIFZbK/2uG6xXYsD75TBF6Luk37kZ5Qm3l 9VdQ/z14npAGmlhqDKjFj7Mk1845Y3NmOCjOgFyQmyNWVotiXB4/vMsQE3fzWg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638397327; a=rsa-sha256; cv=none; b=pnIUNMMyhOEYmf0tUpSL40Y+i/UOzDu8BJG+NvU9oiWXl1U7kJYE/IyNDTZpC8ht51mUjo kKtrxcOQAZdBC9KhotjRHxzFo3pNvZx2UJkJ0r/k0dQc471a5ZCcoQecRO2mCBTALSS+6w sCgBFLkmZL5c1KaO+SUuJpdPrIKI9ME6VDywFGcb3zHsZyopJvoEcmb8RTQC1FepZxdv1N UNjjUw1uwAsShY8mD5unKaEutHCYzQ2mveuOfzgSNVeqCQPvn5FfR28SGIhNo7XlaMgcc0 5VtPV+d1AerCpjk7N6fzyBLSjzNy0FaXBjN+BDur5H3wL0LXfslXu1s7xar7yQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=QMGPlZhq; dmarc=fail reason="SPF not aligned (relaxed)" header.from=andrew.cmu.edu (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.82 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=QMGPlZhq; dmarc=fail reason="SPF not aligned (relaxed)" header.from=andrew.cmu.edu (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: BE67AC351 X-Spam-Score: -1.82 X-Migadu-Scanner: scn0.migadu.com X-TUID: F/OIXM6/nVpx nil entries are not that uncommon in bibtex entries that are retrieved with org-ref, especially for ASAP articles which typically have not been assigned volumes, pages, etc. I usually put nil in as a placeholder so that the empty fields don't get deleted when you clean the entry. They are also easy to find later when updating them after those fields have real values. Andr=C3=A1s Simonyi writes: > 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" 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 wha= t 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 m= ay >> > 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. >> > > >> > >> --=20 Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu Pronouns: he/him/his