Bibtex output missing } when sub/superscripts are used

A place for users to ask each other questions, make suggestions, and discuss Bookends.
Post Reply
Avenue6510
Posts: 6
Joined: Tue Aug 15, 2023 6:33 am

Bibtex output missing } when sub/superscripts are used

Post 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?
Jon
Site Admin
Posts: 10291
Joined: Tue Jul 13, 2004 6:27 pm
Location: Bethesda, MD
Contact:

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

Post 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
Avenue6510
Posts: 6
Joined: Tue Aug 15, 2023 6:33 am

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

Post 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]
Jon
Site Admin
Posts: 10291
Joined: Tue Jul 13, 2004 6:27 pm
Location: Bethesda, MD
Contact:

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

Post 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
Avenue6510
Posts: 6
Joined: Tue Aug 15, 2023 6:33 am

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

Post by Avenue6510 »

My mistake. Thanks. Once I changed the sub- and superscript characters to None, the generated BibTeX was without error.
Post Reply