-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot parse "@" symbol within author field #39
Comments
Thanks for noting this. Was the "@" symbol part of the citation key or is it only part of the "author" field in the bib file? If the "@" symbol is part of the citation key itself, then I'm not sure if pandoc will recognize something like If it is only part of the "author" field, then I think it should be ok as long as it is enclosed in curly braces. I copied over an example from this bib file, and it seems to work: @ONLINE{10.15:103a,
ENTRYSUBTYPE = {Tweet},
GROUPAUTHOR = {{APA Education}},
GROUPAUTHOR+an:username = {1="@APAEducation"},
TITLE = {College Students are Forming Mental-Health Clubs--and They're Making a Difference @washingtonpost},
TITLEADDON = {Thumbnail with link attached},
EPRINT = {Twitter},
DATE = {2018-06-29},
URL = {https://twitter.com/apaeducation/status/1012810490530140161}
}
@ONLINE{10.15:103a-simplified,
AUTHOR = {@APAEducation},
TITLE = {College Students are Forming Mental-Health Clubs--and They're Making a Difference @washingtonpost},
DATE = {2018-06-29},
URL = {https://twitter.com/apaeducation/status/1012810490530140161}
} |
Thanks for the reply,
Yes, I see now that the problem was that "@" was in the citation key. This
means the issue is actually how I set up my bib manager to generate cite
keys from metadata fields (Zotero + betterBibTex).
I appreciate your help.
…On Wed, Jun 7, 2023 at 6:05 PM Zaki A. ***@***.***> wrote:
Thanks for noting this.
Was the "@" symbol part of the citation key or is it only part of the
"author" field in the bib file?
If the "@" symbol is part of the citation key itself, then I'm not sure if
pandoc will recognize something like @@key correctly.
If it is only part of the "author" field, then I think it should be ok as
long as it is enclosed in curly braces. I copied over an example from this
bib file
<https://github.com/plk/biblatex-apa/blob/master/bibtex/bib/biblatex-apa-test-references.bib>,
and it seems to work:
@online{10.15:103a,
ENTRYSUBTYPE = {Tweet},
GROUPAUTHOR = {{APA Education}},
GROUPAUTHOR+an:username = ***@***.***"},
TITLE = {College Students are Forming Mental-Health Clubs--and They're Making a Difference @washingtonpost},
TITLEADDON = {Thumbnail with link attached},
EPRINT = {Twitter},
DATE = {2018-06-29},
URL = {https://twitter.com/apaeducation/status/1012810490530140161}
}
@online{10.15:103a-simplified,
AUTHOR = ***@***.***},
TITLE = {College Students are Forming Mental-Health Clubs--and They're Making a Difference @washingtonpost},
DATE = {2018-06-29},
URL = {https://twitter.com/apaeducation/status/1012810490530140161}
}
—
Reply to this email directly, view it on GitHub
<#39 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKTFBRQVBBF7XVFLDBMSHPLXKD3J7ANCNFSM6AAAAAAYXMJLVU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
My autocomplete was broken and I searched through my bibTex file for possible errors. Eventually I found that I had an entry for a twitter post where I included the Twitter handle as the author name (e.g. @authorname).
Removing the @ symbol fixed the problem with parsing my .bib file and thereby restored autocomplete functionality.
Even so, it is desirable to be able to include "@" symbol in the author field, as certain citation styles demand the inclusion of Twitter handles when citing posts.
The text was updated successfully, but these errors were encountered: