From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26929 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pranesh Prakash Newsgroups: gmane.text.pandoc Subject: Re: how to generate the bibliography for a document? Date: Sat, 21 Nov 2020 06:23:45 -0800 (PST) Message-ID: <22933182-2014-4210-a47f-02f754995774n@googlegroups.com> References: <89f878c1-770d-4d21-b372-15961fb5e385n@googlegroups.com> <538a99b8-3ed4-4145-a4b7-c42145b61fefn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1958_1559205882.1605968625708" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13985"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDA2Z3PTWYIBB4WF4T6QKGQEX5Q347A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Nov 21 15:23:50 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f59.google.com ([209.85.210.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kgTnq-0003XP-AW for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 21 Nov 2020 15:23:50 +0100 Original-Received: by mail-ot1-f59.google.com with SMTP id v50sf3974185otb.15 for ; Sat, 21 Nov 2020 06:23:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=y36QdjfUUumi82JAxRxWk2d/byjtu3fK0zg+by5lUTU=; b=cxu7ryIrLwn8gXe3tAogEJug7lLivECQ8OKnySR3gS4NiAlg7ocv5aRp53KkAmPv6J ySZY9kOuXpzMGYLaISzh4x7cz9CWfLddiiBgZiTguCTxoECfwcGCnOnMvHeuvgOjaTid VMevpguo2CQ/DQqM7BlMfAbL4unYqQ7rLxa6wG0jPh+ifC5uPO36u0HTfzF4RFE4YyOe ZWtSu8tTQ39LkdInm7mKj++YgcSx43sFepl+rGVmuJTJBTeQCGNBWrCikNuN5fATMgck raG+gQA0y/RLb6JULo9y6t9GMFFlGD/FPjMd0FdHmW97nxADDl9aY/MBY0nqs17OxXsY NN4A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=y36QdjfUUumi82JAxRxWk2d/byjtu3fK0zg+by5lUTU=; b=ftMJDJXTqIc0d5civB7PBmbTtR2u27IC1x/YYece7OsJOtLI+R04qGYVl9CD14itwR 6mBkpy/5PcO4R+QKQ9DI+h9t+rWTNG5XrycmNGJxDwNy2axyVCPnIMC/G1eoU4jHEihi LOIB2pFqKnMldbgCW9r8fjQQkhElNBhVC8VHxRxI0pLr27U3OpBBWJo+4Tq+Jy97MXVh ER4M4t26P5VIB5nQNS4r2ZsJMYn4J8DSDhO+OU6HHmNBJlPjxrC77iNHA63yiV2oVzy3 f6h2sso2JyQKYRtcR8JxTVUbYY6vG5/lToqvvicEVAf8iLXabgiAa3H5FAab86V4VZL8 a9rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=y36QdjfUUumi82JAxRxWk2d/byjtu3fK0zg+by5lUTU=; b=EJ0PlZg8BEOkUEOE9FxmeALZ4vWptxs17gpnf5hj4mc6aD2bF5KUpR7ZC0SJZm0/DE HaGEJ0IBCehWfcG9uD+3X8JpgPUyiQNIDreEln49GsMxdNzmQ48uqh46VRj+unJ2fmIa xdX3afBN3MNQx0vjKqetce4kp+kG5ehTKh3dJcsluXLx4KRaqNQk+YRaUguqt/HtojFw EnKUlYSBlm87AdSd+zjxQ6pG01SnC4EW4khyonGKv8rtBVWor7VqB5diX7Eb/zI3PooM 29LRXt9SiSxsetGvLUFAIbNvPn5y4xZ5OiEOWQcGmDCklyK6fbI2hP7JeLEHzQoC3AdI cwdA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532DNF3FGbi9GKQdpr5ussD8tAi4q0tO2VDR3x6R+y103Xg8SuGH xYDaLm0Yj3QewwmjdkuSIeo= X-Google-Smtp-Source: ABdhPJxtBh92Ji65YeYy1qaQ6lTjD3gRZU+vORYOsoCVPybnyCgdhcKVpJyXWBgBTWbstrBUYApJug== X-Received: by 2002:a4a:d9d7:: with SMTP id l23mr16953164oou.91.1605968629419; Sat, 21 Nov 2020 06:23:49 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:2238:: with SMTP id o53ls786473ota.9.gmail; Sat, 21 Nov 2020 06:23:46 -0800 (PST) X-Received: by 2002:a9d:6a81:: with SMTP id l1mr1787151otq.254.1605968626443; Sat, 21 Nov 2020 06:23:46 -0800 (PST) In-Reply-To: X-Original-Sender: the.solipsist-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:26929 Archived-At: ------=_Part_1958_1559205882.1605968625708 Content-Type: multipart/alternative; boundary="----=_Part_1959_396442569.1605968625708" ------=_Part_1959_396442569.1605968625708 Content-Type: text/plain; charset="UTF-8" When using CSL-JSON, the input format needs to be specified explicitly: ``` $ pandoc -f csljson mybib.json -s -o formatted-bibliography.html ``` It won't work without the `-f csljson`. It will still work without that flag when the bibliography input format is CSL-YAML or BibLaTeX though, since the former is read as Markdown and the latter's format is guessed using its extension (.bib). I hope that helps. As a side note, perhaps including a more descriptive warning/error message might be helpful. For .y{a}ml input files, the warning says: [WARNING] Could not deduce format from file extension .y{a}ml Defaulting to markdown Regards, Pranesh On Saturday, 21 November, 2020 at 5:52:30 am UTC+5:30 John MacFarlane wrote: > "jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" writes: > > > This isn't working for me with json input (from Zotero). bib (also from > > Zotero) works just fine. I'm getting this error with the json: > > > > ```JSON parse error: Error in $: mempty``` > > > > even with a json file with only one entry that json_verify is happy > with. > > The pandoc command is barfing on it. The old, nocite way works fine > still. > > Post it here; maybe it's a bug? > > > PS A side note: the new method with --citeproc generates html spans > every > > place the bib has double curly brackets to preserve cases in title. > Seems > > unnecessary. > > True, but also pretty harmless. We could get rid of them but > there might be some performance penalty. > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/22933182-2014-4210-a47f-02f754995774n%40googlegroups.com. ------=_Part_1959_396442569.1605968625708 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
When using CSL-JSON, the input format needs to be specified explicitly= :
```
$ pandoc -f csljson mybib.json -s -o formatte= d-bibliography.html
```

It won't work wi= thout the `-f csljson`.  It will still work without that flag when the= bibliography input format is CSL-YAML or BibLaTeX though, since the form= er is read as Markdown and the latter's format is guessed using its extensi= on (.bib).

I hope that helps.

=
As a side note, perhaps including a more descriptive warning/error mes= sage might be helpful.  For .y{a}ml input files, the warning says:

[WARNING] Could not deduce format from file extension= .y{a}ml
  Defaulting to markdown

Regards,=
Pranesh

On Saturday, 21 November, 2020 at 5:52:30= am UTC+5:30 John MacFarlane wrote:
"jmu= c...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <jmu= c...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> This isn't working for me with json input (from Zotero). bib (= also from=20
> Zotero) works just fine. I'm getting this error with the json:
>
> ```JSON parse error: Error in $: mempty```=20
>
> even with a json file with only one entry that json_verify is happ= y with.=20
> The pandoc command is barfing on it. The old, nocite way works fin= e still.

Post it here; maybe it's a bug?

> PS A side note: the new method with --citeproc generates html span= s every=20
> place the bib has double curly brackets to preserve cases in title= . Seems=20
> unnecessary.

True, but also pretty harmless. We could get rid of them but
there might be some performance penalty.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/22933182-2014-4210-a47f-02f754995774n%40googlegroups.= com.
------=_Part_1959_396442569.1605968625708-- ------=_Part_1958_1559205882.1605968625708--