Skip to content

Is there any way to make the parentheses and space be contained in bibtex entrykey? #30

@hushidong

Description

@hushidong

Is there any way to make the parentheses and space be contained in bibtex entrykey?

hello

I am a biblatex/biber user, and encountered an error while biber was parsing the bib file, which contained entries with entriekey containing () or ' ', the biber/biblatex author told me that it was caused by btparse(biber use btparse), so I am here to ask about some improvement or measure to overcome this problem.

for an entry:

@misc{Euclidean_geometry(hi),
howpublished = {https://zh.wikipedia.org/wiki/abc},
title = {Euclidean geometry},
}

the biber output is:

INFO - This is Biber 2.12
INFO - Logfile is 'egtest.blg'
INFO - Reading 'egtest.bcf'
INFO - Using all citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'egtest.bib' for section 0
INFO - LaTeX decoding ...
INFO - Found BibTeX data source 'egtest.bib'
WARN - BibTeX subsystem: C:\Users\ADMINI~1\AppData\Local\Temp\CQM6OZvJS8\egtest.
bib_2912.utf8, line 6, warning: "(" in strange place -- should get a syntax erro
r
ERROR - BibTeX subsystem: C:\Users\ADMINI~1\AppData\Local\Temp\CQM6OZvJS8\egtest
.bib_2912.utf8, line 6, syntax error: found "(", expected ","
INFO - WARNINGS: 1
INFO - ERRORS: 1

and for an entry:

@misc{how are you,
howpublished = {{www.baidu.com}},
title = {how are you},
}

the biber output is:

INFO - This is Biber 2.12
INFO - Logfile is 'egtest4.blg'
INFO - Reading 'egtest4.bcf'
INFO - Using all citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'egtest4.bib' for section 0
INFO - LaTeX decoding ...
INFO - Found BibTeX data source 'egtest4.bib'
ERROR - BibTeX subsystem: C:\Users\ADMINI~1\AppData\Local\Temp\Y796C4jmpi\egtest
4.bib_6436.utf8, line 11, syntax error: found "are", expected ","
INFO - ERRORS: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions