Open boronian opened 10 years ago
I guess the following is somehow related (missing implementation of escape characters):
reading the entry
@Article{Blas, Title = {\textit{Glomus tetrastratosum}, a new species of arbuscular mycorrhizal fungi (Glomeromycota)}, Author = {Janusz B{l}aszkowski and Gerard Chwat and Anna G\'oralska and Aleksandra Bobrowska-Chwat}, Journal = {Mycoscience}, Year = {2014}, Eyear = {2014}, Comment = {p}, Doi = {10.1016/j.myc.2014.08.003} }
gives the error
Warning message: In read.bib(file = "~/test.bib") : ~/test.bib:187:12 syntax error, unexpected TOKEN_ABBREV, expecting TOKEN_COMMA or TOKEN_RBRACE Dropping the entry
Blas
(starting at line 185)
which seems to be because of the {l} which produces the character ł
It would be really great if you could provide proper handling of escape characters!
@boronian can you prepare a reproducible example using the reprex
package please ?
Excellent work good work very good work MashAllah
Dear Romain,
I came across your nice package to handle bibtex entries in R, which I played around with over the past few days. I came across some things I want to share with you: 1) Sometimes curly brackets seem to confuse the parser:
To display what I mean I give some examples:
S. Lavou\'{e} or S. Lavou\'e
in the bibfile wouldn't make a difference for LaTeX, but reading a bibentry
will give after calling
,
and
This all is not a problem for the character é, as one can also write \'e, and LaTeX will know what to do. But for other characters this indeed is a problem. E.g. in the following bibtex entry
One couldn't substitute the \c{s}, by \cs, because LaTeX can't handle this, but bibtex.R gives the following results for the bibentry above:
,
and
The same applies to J. Fjelds\r{a} In a bibentry.
2) Further, especially in Biology it is often necessary to include \textit{}. From the example above (@ARTICLE{Bart,), I get the following:
(note the \n\t in the title)
Do you see a chance, that these limitations (or do they have a reason?) will disappear in a future release of the bibtex package?
Best whishes
Ingo