Page 1 of 1

Bibtex output missing } when sub/superscripts are used

Posted: Fri May 17, 2024 8:05 am
by Avenue6510
When exporting references to Bibtex that contain a sub or superscript in one of the export fields, then the generated Bibtex entry contains curly braces that are not closed. This happens across a larger number of references that I have in my library.

An example is the title "L^1-minimization methods for Hamilton-Jacobi equations: the one-dimensional case", which generates the Bibtex line:

title = {L\textsuperscript{1-minimization methods for Hamilton-Jacobi equations: the one-dimensional case},

Alternatively, using dollar signs in line with Latex/Markdown conventions, having "$L^1$-minimization methods for Hamilton-Jacobi equations: the one-dimensional case" in Bookends' title field yields

title = {$L\textsuperscript{1$-minimization methods for Hamilton-Jacobi equations: the one-dimensional case},

In the settings ^ is selected as the superscript character.

How can it be ensured that Bibtex fields have closed braces or that the substitution of ^ by \textsuperscript is avoided?

Re: Bibtex output missing } when sub/superscripts are used

Posted: Fri May 17, 2024 10:37 am
by Jon
What version of Bookends?

The first line doesn't contain a "close superscript" character. It should be

"L^1^-minimization methods for Hamilton-Jacobi equations: the one-dimensional case

Jon
Sonny Software

Re: Bibtex output missing } when sub/superscripts are used

Posted: Fri May 17, 2024 10:40 am
by Avenue6510
The version is 15.0.2. [In fact, I produced the same error with 14.2.1 and was hoping that updating would resolve the problem]

Re: Bibtex output missing } when sub/superscripts are used

Posted: Fri May 17, 2024 10:43 am
by Jon
I think we cross-posted, please see the comment about closing the superscript.

Also, you can change the superscript character to something other than ^

Jon
Sonny Software

Re: Bibtex output missing } when sub/superscripts are used

Posted: Fri May 17, 2024 11:11 am
by Avenue6510
My mistake. Thanks. Once I changed the sub- and superscript characters to None, the generated BibTeX was without error.