getbibtex icon indicating copy to clipboard operation
getbibtex copied to clipboard

URLs with anchors get flagged by the LaTeX compiler.

Open aferre88 opened this issue 5 months ago • 0 comments

I'm using this awesome service to create references in my Overleaf project, but if the URL contains an anchor (#) I get some error while compiling the document.

Multiple errors such as this one appear:

Illegal parameter number in definition of \abx@field@howpublished.

 
‪./output.bbl, 583‬
<to be read again> 
                   l
l.583     \endentry
                   
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.

Workaround: escaping the anchor (#) with an inverted slash () works for me. So https://blabla.example/test#anchor must become https://blabla.example/test#anchor.

It would be nice that the software were in charge of doing this to avoid manual changes.

Thank you!

aferre88 avatar Sep 05 '24 22:09 aferre88