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

Support / as an entry key delimiter #33

Closed
Neved4 opened this issue May 5, 2023 · 2 comments
Closed

Support / as an entry key delimiter #33

Neved4 opened this issue May 5, 2023 · 2 comments

Comments

@Neved4
Copy link

Neved4 commented May 5, 2023

A BibLaTeX entry key, of the form name1/name2 currently fails:

@online{baez/online,
  author       = {Baez, John C. and Lauda, Aaron D.},
  title        = {Higher-Dimensional Algebra {V}: 2-Groups},
  date         = {2004-10-27},
  version      = 3,
  langid       = {english},
  langidopts   = {variant=american},
  eprinttype   = {arxiv},
  eprint       = {math/0307200v3},
}

Reference: biblatex-examples.bib

@zepinglee
Copy link
Contributor

The / character here is not a delimiter. Actually it has no special meaning.

The entry key in the original BibTeX only forbids ,, }, and whitespaces in a brace-style entry, or , plus whitespaces in a parenthesis style entry (see aclements/biblib). The following are valid entry keys for BibTeX. Although some characters (e.g., # and \) are not allowed in a LaTeX \cite command, the entries can still be crossrefed or listed out with \nocite{*}.

@misc{!"#$%&'()*+-./123:;<=>?@ABC[\]^_`abc{|~,
  author = {John Doe},
}

@misc(!"#$%&')(*+-./123:;<=>?@ABC[\]^_`abc{|}~,
  author = {John Doe},
)

Biber, which uses btparse as the underlying parser, only allows letters, digits, and the following characters in entry key: ! $ & * + - . / : ; < > ? [ ] ^ _ ` | (see Text-BibTeX/btparse).

zepinglee added a commit to zepinglee/typst-biblatex that referenced this issue Nov 2, 2023
@reknih reknih closed this as completed in 6dcd4ee Nov 7, 2023
@reknih
Copy link
Member

reknih commented Nov 7, 2023

Thank you!

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

3 participants