Skip to content
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

Open
jtackesiii opened this issue Jun 1, 2023 · 2 comments
Open

Cannot parse "@" symbol within author field #39

jtackesiii opened this issue Jun 1, 2023 · 2 comments

Comments

@jtackesiii
Copy link

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.

@notZaki
Copy link
Owner

notZaki commented Jun 7, 2023

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, 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}
}

@jtackesiii
Copy link
Author

jtackesiii commented Jun 8, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants