jgm / pandoc

Universal markup converter
https://pandoc.org
Other
34.9k stars 3.39k forks source link

unexpected symbol in *.bib for citeproc #2002

Closed maxheld83 closed 9 years ago

maxheld83 commented 9 years ago

I ran:

$ pandoc-citeproc -y held_library.bib
pandoc-citeproc: "stdin" (line 22179, column 2):
unexpected "a"
expecting "c", "C", "p", "P", "s" or "S"

Oddly, the file was generated by BibDesk and seems to work fine with Biblatex.

The offending entry in my *.bib appears to be:

@article{Jackson2008,
    Author = {Jackson, Tim},
    Class = {Welfare States & Health Wellbeing 2010, Diss Tax & Democracy 2010ff},
    Date-Modified = {2014-06-14 15:12:57 +0000},
    Doi = {10.1080/13549830802475625},
    Issn = {1354-9839},
    Journal = {Local Environment},
    Keywords = {Inequality,Consumption,Status, Health, Welfare State, Burnout},
    Month = "Dec",
    Number = {8},
    Pages = {703--723},
    Rating = {4},
    Read = {5},
    Status = {Follow-Up},
    Title = {Where is the ``wellbeing dividend''? -- Nature, structure and consumption inequalities},
    Volume = {13},
    Year = {2008},
    Annote = {%\cite{Jackson2008\}
    %consider doing logarithmic or polynomial correltion for any non-linear effect. That is in fact what I assume: that it IS non-linear
    %711: ``It is important not to read too much into these correlations. For one thing, it is clear that even a strong correlation does not imply causality. Moreover other med- iating factors in reported life satisfaction are left out of the analysis here. The literature on wellbeing is clear that family, friendship, trust in one's neighbours, security, meaningful work, and a sense of purpose are all important correlates of subjective wellbeing (Helliwell 2003, Layard 2005, Dolan et al. 2006). None of these is necessarily mediated by consumption expenditure.''
    %712: `Nonetheless, it is clear that certain kinds of human tendencies -- the pursuit of status, social belonging, identity and meaning, for example -- are (in the modern society at least) strongly mediated by material goods and services. Possessions confer status, solidity and meaning to our lives, provide access to the social world and facilitate participation in the creation of that world (Douglas 2006 [1976]). To the extent that this is so, consuming ``comes naturally'' to the human species, whereas, as Dawkins (2001) has pointed out, sustainability does not.''
    %713: ``Recent evidence has shown how closely health and wellbeing are related to social status even in developed countries (Wilkinson 2000, 2005, Marmot 2005, Marmot and Wilkinson 2005). This would suggest that beyond the economy of consump- tion lies an ``economy of wellbeing''. It may not pay to increase consumption in the aggregate, but it pays to be at the top of the pile when consumption is unequally distributed. Evidence''
    %713: ``This positional pathology is exacerbated by another psycho-social phenomenon affecting subjective wellbeing, that of ``hedonic adaptation'' (Lyubomirsky et al. 2005). As I get richer, I simply become more accustomed to the pleasure of the goods and services my new income affords me. And if I want to maintain the same level of happiness, I must achieve ever higher levels of income in the future just to stay in the same place. A related understanding of human psychology becomes relevant here: in a society where visible signals of excess surround us on every side, the potential discrepancy between what we have and what we would like to have grows ever larger. Even as we chase after the most recent symbols of success, the frontier of success is moving ahead of us. Research supports the idea that this kind of discrepancy between our aspirations and the reality of our lives is psychologically damaging to our quality of life (Michalos 1985, Higgins 1987).''},
    Bdsk-File-1 = {YnBsaXN0MDDUAQIDBAUGJCVYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3ASAAGGoKgHCBMUFRYaIVUkbnVsbNMJCgsMDxJXTlMua2V5c1pOUy5vYmplY3RzViRjbGFzc6INDoACgAOiEBGABIAFgAdccmVsYXRpdmVQYXRoWWFsaWFzRGF0YV8QOC4uLy4uL0dvb2dsZSBEcml2ZS9saWJyYXJ5L2hlbGRfbGlicmFyeS9KYWNrc29uMjAwOGEucGRm0hcLGBlXTlMuZGF0YU8RAbwAAAAAAbwAAgAADE1hY2ludG9zaCBIRAAAAAAAAAAAAAAAAAAAAM82x51IKwAAAG2z9hBKYWNrc29uMjAwOGEucGRmAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEccwzzfqKwAAAAAAAAAAAAIABAAACSAAAAAAAAAAAAAAAAAAAAAMaGVsZF9saWJyYXJ5ABAACAAAzza5jQAAABEACAAAzzfcGwAAAAEAFABts/YAVg0KAAuDlgAE+cwAAhJ6AAIATk1hY2ludG9zaCBIRDpVc2VyczoATWF4OgBHb29nbGUgRHJpdmU6AGxpYnJhcnk6AGhlbGRfbGlicmFyeToASmFja3NvbjIwMDhhLnBkZgAOACIAEABKAGEAYwBrAHMAbwBuADIAMAAwADgAYQAuAHAAZABmAA8AGgAMAE0AYQBjAGkAbgB0AG8AcwBoACAASABEABIAPFVzZXJzL01heC9Hb29nbGUgRHJpdmUvbGlicmFyeS9oZWxkX2xpYnJhcnkvSmFja3NvbjIwMDhhLnBkZgATAAEvAAAVAAIACv//AACABtIbHB0eWiRjbGFzc25hbWVYJGNsYXNzZXNdTlNNdXRhYmxlRGF0YaMdHyBWTlNEYXRhWE5TT2JqZWN00hscIiNcTlNEaWN0aW9uYXJ5oiIgXxAPTlNLZXllZEFyY2hpdmVy0SYnVHJvb3SAAQAIABEAGgAjAC0AMgA3AEAARgBNAFUAYABnAGoAbABuAHEAcwB1AHcAhACOAMkAzgDWApYCmAKdAqgCsQK/AsMCygLTAtgC5QLoAvoC/QMCAAAAAAAAAgEAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAwQ=},
    Bdsk-Url-1 = {http://www.tandfonline.com/doi/abs/10.1080/13549830802475625},
    Bdsk-Url-2 = {http://dx.doi.org/10.1080/13549830802475625}}

and

@article{Frank2008,
    Author = {Frank, Robert H.},
    Class = {MPP Thesis 2010, Diss Tax & Democracy 2010ff, Give and Take -- Deliberative Democracy and Taxation 2014},
    Date-Modified = {2014-06-29 11:13:33 +0000},
    Doi = {10.1016/j.jpubeco.2008.03.001},
    Issn = {00472727},
    Journal = {Journal of Public Economics},
    Keywords = {PCT,Consumption,Tax, Commons},
    Mendeley-Annotations = {None},
    Month = aug,
    Number = {8-9},
    Pages = {1777--1786},
    Rating = {5},
    Read = {5},
    Title = {Should public policy respond to positional externalities?},
    Volume = {92},
    Year = {2008},
    Annote = {   * 1779: economists usually say whatever the consumer says is right. So why not do this for positional consumption, too? There's ample evidence that consumption is, in fact, positional
   * 1782, on Coase: yes, indeed, externalities are not about perpetrators and victims, it's a mutual thing. We should worry:
      * can they deal with this themselves, are transaction costs sufficiently low and information sufficiently available?
      * which party can easier deal with the externality? Who can reduce it at a cheaper price? To systematically get at those parties who can, we make it a a) tax or b) a property right (Cap and trade)
   * 1783: the pct, as always, is an imperfect tax for getting at positional consumption, because it's hard to know which goods exactly are the most positional in nature. We can't just go and add tax labels. But luxuries are a good place to start with, steeply progressive pct will get most of what we're after
   * note: Frank suggests ``context'' as a key concept, with less normative baggage
      * mention this in email, too!
   * 1784: here's Frank's argument why the PCT is better at raising savings rates than an income tax:
      * To illustrate howthe taxwould change spending incentives, consider a taxpayer whose marginal rate under the current income tax is 0.33 and whose marginal rate under a progressive consumption tax would be rc. Under each tax regime, suppose that this taxpayer forgoes an extra dollar of consumption for the length of time it takes for money in a savings account to double in value. How much extra future consumption will his sacrifice support in each case? Under the current income tax, his dollar of forgone consumption generates a bank deposit of $1, which becomes $2 on the date in question. When he withdraws the $2, he must pay $0.33 in income tax on his one dollar of interest income. So $1 of forgone consumption today translates into $1.67 of future consumption under the current income tax. Under the consumption tax, by contrast, forgoing $1 of consumption today would result in a $ rc reduction in current tax liability, and so would support a current bank deposit of $(1+rc). At withdrawal time, this deposit will have grown to $(2+2rc). To find CF, the amount of future consumption this deposit will support, we solve CF+rcCF=$(2+2rc) for CF=$2. Giving up a dollar of current consumption thus supports only $1.67 of future consumption under the current income tax, but $2 under the progressive consumption tax.
   * 1784: consider the cascade effect of positional consumption which moves all the way from the top to the bottom
   * 1785: ``My point in describing these examples is that limited empirical knowledge does not always prevent us from drawing reasonable inferences about the likely welfare effects of specific tax policy changes. Most economists would agree that the welfare cost to wealthy families of having smaller mansions and less expensive coming-of-age parties would be smaller than their benefit from having improved security. If so, the benefit of improved security to the non-wealthy would be pure gravy.''
      * this is key; even if we can't model it entirely, this is a good way to look at it.

      },
    Bdsk-File-1 = {YnBsaXN0MDDUAQIDBAUGJCVYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3ASAAGGoKgHCBMUFRYaIVUkbnVsbNMJCgsMDxJXTlMua2V5c1pOUy5vYm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443},
    Bdsk-Url-2 = {http://dx.doi.org/10.1016/j.jpubeco.2008.03.001}}
maxheld83 commented 9 years ago

nevermind, I fixed it myself.

it seems to me that these parts on the Annote fields tripped Pandoc up: %\cite{Jackson2008\.

Not sure why, but that solved the problem.

It's such a shame that there's so much hassle with bibtex files, even when they are written by BibDesk.