public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Pandoc citeproc cannot parse my bibtex file. Why?
@ 2017-06-20 10:18 Jacob Hasselbalch
       [not found] ` <4548206e-ab96-45ed-8ef9-31ad97107fda-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Jacob Hasselbalch @ 2017-06-20 10:18 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 3076 bytes --]

Pandoc citeproc returns the following error when trying to parse my master 
library bibtex file: 

pandoc-citeproc.exe: "stdin" (line 350, column 2): unexpected "m"
> expecting "c", "C", "p", "P", "s" or "S"
> CallStack (from HasCallStack): error, called at 
> src\Text\CSL\Input\Bibtex.hs:113:32 in 
> pandoc-citeproc-0.10.4-1dO0NIam7tLEohTuW2LNs:Text.CSL.Input.Bibtex
> pandoc.exe: Error running filer


Looking into my bibtex file, the error seems to be located in the middle 
entry below (included the entries just before and after line 350 as well):

@article{Hiatt2009,
> author = {Hiatt, Shon R and Sine, Wesley D and Tolbert, Pamela S},
> file = {:C\:/Users/jaha.dbp/Dropbox/PhD/Literature/Theory/Business and 
> organizations/Hiatt et al - From Pabst to Pepsi.pdf:pdf},
> journal = {Administrative Science Quarterly},
> keywords = {alcohol,organizations,s christian temperance union,social 
> movements,temperance,wctu,woman},
> number = {4},
> pages = {635--667},
> title = {{From Pabst to Pepsi: The Deinstitutionalization of Social 
> Practices and the Creation of Entrepreneurial Opportunities}},
> volume = {54},
> year = {2009}
> }
> @misc{Poyry&CambridgeEconometrics2013,
> author = {{P{\"{o}}yry & Cambridge Econometrics}},
> institution = {P{\"{o}}yry Management Consulting (UK) Ltd},
> title = {{Macroeconomic Effects of European Shale Gas Production. A Report 
> to the International Association of Oil and Gas Producers (OGP)}},
> url = {http://www.iogp.org/PapersPDF/poyry_public_report_ogp__v5_0(1).pdf},
> urldate = {2015-11-17},
> year = {2013}
> }
> @book{Hajer2009,
> address = {Oxford},
> author = {Hajer, Maarten A.},
> publisher = {Oxford University Press},
> title = {{Authoritative Governance. Policy-making in the Age of 
> Mediatization}},
> year = {2009}
> }


At first glance, I thought it was the strange way the "ö" was represented 
in "Pöyry" - but when I test another bibtex file with similar renditions of 
letters with umlauts and accents, there is no problem. Any idea what the 
problem might be and how to work around it?

The bibtex file that gives an error is the export of my entire Mendeley 
library - exporting just the papers that I cite usually avoids the problem, 
but I would like to be able to use my master library file for all 
documents. I'm writing Markdown in Sublime Text 3 and using the Pandoc 
package to build my documents, if any of that matters. 

Thanks for your help. 

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4548206e-ab96-45ed-8ef9-31ad97107fda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 3971 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Pandoc citeproc cannot parse my bibtex file. Why?
       [not found] ` <4548206e-ab96-45ed-8ef9-31ad97107fda-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2017-06-20 11:06   ` Joost Kremers
       [not found]     ` <87tw3aor4z.fsf-97jfqw80gc6171pxa8y+qA@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Joost Kremers @ 2017-06-20 11:06 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


On Tue, Jun 20 2017, Jacob Hasselbalch wrote:
> Pandoc citeproc returns the following error when trying to parse 
> my master 
> library bibtex file: 
>
> pandoc-citeproc.exe: "stdin" (line 350, column 2): unexpected 
> "m"
>> expecting "c", "C", "p", "P", "s" or "S"
>> CallStack (from HasCallStack): error, called at 
>> src\Text\CSL\Input\Bibtex.hs:113:32 in 
>> pandoc-citeproc-0.10.4-1dO0NIam7tLEohTuW2LNs:Text.CSL.Input.Bibtex
>> pandoc.exe: Error running filer

I think there was a thread on this list a while ago with the very 
same error, and if I remember correctly, it was due to a character 
in an entry key that although valid in BibTeX is not accepted by 
pandoc-citeproc.

>> @misc{Poyry&CambridgeEconometrics2013,
>> author = {{P{\"{o}}yry & Cambridge Econometrics}},
>> institution = {P{\"{o}}yry Management Consulting (UK) Ltd},
>> title = {{Macroeconomic Effects of European Shale Gas 
>> Production. A Report 
>> to the International Association of Oil and Gas Producers 
>> (OGP)}},
>> url = 
>> {http://www.iogp.org/PapersPDF/poyry_public_report_ogp__v5_0(1).pdf},
>> urldate = {2015-11-17},
>> year = {2013}

And if that is correct, this entry is most likely the culprit. 
Remove the ampersand and try again.

HTH


-- 
Joost Kremers
Life has its moments


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Pandoc citeproc cannot parse my bibtex file. Why?
       [not found]     ` <87tw3aor4z.fsf-97jfqw80gc6171pxa8y+qA@public.gmane.org>
@ 2017-06-20 12:50       ` John MacFarlane
       [not found]         ` <20170620125011.GA4577-BKjuZOBx5Kn2N3qrpRCZGbhGAdq7xJNKhPhL2mjWHbk@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: John MacFarlane @ 2017-06-20 12:50 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Yes, and commit
a1001a174be06dbcad088e46b72f2e46a5be5cf4
adds & as a valid character in bib keys.  But this hasn't
been released yet.

+++ Joost Kremers [Jun 20 17 13:06 ]:
>
>On Tue, Jun 20 2017, Jacob Hasselbalch wrote:
>>Pandoc citeproc returns the following error when trying to parse my 
>>master library bibtex file:
>>
>>pandoc-citeproc.exe: "stdin" (line 350, column 2): unexpected "m"
>>>expecting "c", "C", "p", "P", "s" or "S"
>>>CallStack (from HasCallStack): error, called at 
>>>src\Text\CSL\Input\Bibtex.hs:113:32 in 
>>>pandoc-citeproc-0.10.4-1dO0NIam7tLEohTuW2LNs:Text.CSL.Input.Bibtex
>>>pandoc.exe: Error running filer
>
>I think there was a thread on this list a while ago with the very same 
>error, and if I remember correctly, it was due to a character in an 
>entry key that although valid in BibTeX is not accepted by 
>pandoc-citeproc.
>
>>>@misc{Poyry&CambridgeEconometrics2013,
>>>author = {{P{\"{o}}yry & Cambridge Econometrics}},
>>>institution = {P{\"{o}}yry Management Consulting (UK) Ltd},
>>>title = {{Macroeconomic Effects of European Shale Gas Production. 
>>>A Report to the International Association of Oil and Gas Producers 
>>>(OGP)}},
>>>url = {http://www.iogp.org/PapersPDF/poyry_public_report_ogp__v5_0(1).pdf},
>>>urldate = {2015-11-17},
>>>year = {2013}
>
>And if that is correct, this entry is most likely the culprit. Remove 
>the ampersand and try again.
>
>HTH
>
>
>-- 
>Joost Kremers
>Life has its moments
>
>-- 
>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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/87tw3aor4z.fsf%40fastmail.fm.
>For more options, visit https://groups.google.com/d/optout.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Pandoc citeproc cannot parse my bibtex file. Why?
       [not found]         ` <20170620125011.GA4577-BKjuZOBx5Kn2N3qrpRCZGbhGAdq7xJNKhPhL2mjWHbk@public.gmane.org>
@ 2017-06-20 14:23           ` Jacob Hasselbalch
  0 siblings, 0 replies; 4+ messages in thread
From: Jacob Hasselbalch @ 2017-06-20 14:23 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 2949 bytes --]

The ampersand was indeed the culprit. How do I add that commit to my 
version of pandoc-citeproc? Still new to pandoc and github, etc. 

Thanks! 


On Tuesday, June 20, 2017 at 2:51:13 PM UTC+2, John MacFarlane wrote:
>
> Yes, and commit 
> a1001a174be06dbcad088e46b72f2e46a5be5cf4 
> adds & as a valid character in bib keys.  But this hasn't 
> been released yet. 
>
> +++ Joost Kremers [Jun 20 17 13:06 ]: 
> > 
> >On Tue, Jun 20 2017, Jacob Hasselbalch wrote: 
> >>Pandoc citeproc returns the following error when trying to parse my 
> >>master library bibtex file: 
> >> 
> >>pandoc-citeproc.exe: "stdin" (line 350, column 2): unexpected "m" 
> >>>expecting "c", "C", "p", "P", "s" or "S" 
> >>>CallStack (from HasCallStack): error, called at 
> >>>src\Text\CSL\Input\Bibtex.hs:113:32 in 
> >>>pandoc-citeproc-0.10.4-1dO0NIam7tLEohTuW2LNs:Text.CSL.Input.Bibtex 
> >>>pandoc.exe: Error running filer 
> > 
> >I think there was a thread on this list a while ago with the very same 
> >error, and if I remember correctly, it was due to a character in an 
> >entry key that although valid in BibTeX is not accepted by 
> >pandoc-citeproc. 
> > 
> >>>@misc{Poyry&CambridgeEconometrics2013, 
> >>>author = {{P{\"{o}}yry & Cambridge Econometrics}}, 
> >>>institution = {P{\"{o}}yry Management Consulting (UK) Ltd}, 
> >>>title = {{Macroeconomic Effects of European Shale Gas Production. 
> >>>A Report to the International Association of Oil and Gas Producers 
> >>>(OGP)}}, 
> >>>url = {
> http://www.iogp.org/PapersPDF/poyry_public_report_ogp__v5_0(1).pdf}, 
> >>>urldate = {2015-11-17}, 
> >>>year = {2013} 
> > 
> >And if that is correct, this entry is most likely the culprit. Remove 
> >the ampersand and try again. 
> > 
> >HTH 
> > 
> > 
> >-- 
> >Joost Kremers 
> >Life has its moments 
> > 
> >-- 
> >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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. 
> >To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 
> <javascript:>. 
> >To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pandoc-discuss/87tw3aor4z.fsf%40fastmail.fm. 
>
> >For more options, visit https://groups.google.com/d/optout. 
>

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/aa2e1010-df8f-4822-a14a-f633856d6a32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 5530 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-06-20 14:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-20 10:18 Pandoc citeproc cannot parse my bibtex file. Why? Jacob Hasselbalch
     [not found] ` <4548206e-ab96-45ed-8ef9-31ad97107fda-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-06-20 11:06   ` Joost Kremers
     [not found]     ` <87tw3aor4z.fsf-97jfqw80gc6171pxa8y+qA@public.gmane.org>
2017-06-20 12:50       ` John MacFarlane
     [not found]         ` <20170620125011.GA4577-BKjuZOBx5Kn2N3qrpRCZGbhGAdq7xJNKhPhL2mjWHbk@public.gmane.org>
2017-06-20 14:23           ` Jacob Hasselbalch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).