Bibtex output missing } when sub/superscripts are used
Posted: Fri May 17, 2024 8:05 am
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?
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?