joss icon indicating copy to clipboard operation
joss copied to clipboard

Special characters in names of authors and Bibtex export

Open pjanck opened this issue 3 years ago • 2 comments

Steps to reproduce

Clicking copy bibtex from https://joss.theoj.org/papers/10.21105/joss.03061# provides:

@article{Jaud2022,
  doi = {10.21105/joss.03061},
  url = {https://doi.org/10.21105/joss.03061},
  year = {2022},
  publisher = {The Open Journal},
  volume = {7},
  number = {72},
  pages = {3061},
  author = {Jaud, Štefan and Hecht, Helge and Schlenger, Jonas and Amann, Julian},
  % author = {Štefan Jaud and Helge Hecht and Jonas Schlenger and Julian Amann}, <-- originally copied
  title = {TUM Open Infra Platform: an open source package for simultaneous viewing and analysis of digital models in the civil engineering domain},
  journal = {Journal of Open Source Software}
}

(I've changed the order of first and last names from the original, so that BibTeX correctly shortens first names.)

When compiling, this produces an error

LaTeX Error: Invalid UTF-8 byte sequence (.). [.]

with

Å.~Jaud, H.~Hecht, J.~Schlenger, and J.~Amann.

being the corresponding line in the .bbl file.

Problem

Notice the Š in the authors list, first author. A LaTeX style syntax that works, is \v{S}.

I have no idea how to approach such scenarios:

  • is there a simple setting I'm missing in my LaTeX projects? (preferable)
  • does JOSS need a different approach with this?

Related: https://github.com/openjournals/openjournals-draft-action/issues/12

Workaround

My current solution is to simply exchange the character with the correct syntax, However, no manual work would be preferable.

pjanck avatar Apr 27 '22 21:04 pjanck

I think we need to encode special characters in the BibTeX string to escape them as LaTeX entities. https://github.com/inukshuk/bibtex-ruby may be able to handle this.

arfon avatar Apr 28 '22 10:04 arfon