Page 1 of 1

Problems due to malformed abstract with LaTeX export

Posted: Sun Feb 19, 2023 7:45 am
by iandol
Hi, importing this DOI: 10.1016/j.cub.2022.07.050 there are some malformed ranges in the abstract (markdown superscripts):
...magnetic stimulation (TMS).^4^^,^^5^ We found that enhancing the ...
This causes errors when syncing to my BibTeX file:
... magnetic stimulation (TMS).}4\textsuperscript{},\textsuperscript{}5\textsuperscript{ We found that enhancing ...
and requires manual editing of the abstract. I realise this is an import data issue but possibly there is a better way to guard against this malformed input?

Re: Problems due to malformed abstract with LaTeX export

Posted: Sun Feb 19, 2023 4:48 pm
by Jon
It's not malformed, it's Bookends converting PubMed superscripts to its own .

This is what PubMed is returning:

...(TMS).<sup>4</sup><sup>,</sup><sup>5</sup>...

Meaning that

4,5

are superscripted.

Bookends converts the <sup>characters</sup to it's own superscript nomenclature, which is

^4^^,^^5^

If you scan a document with this reference (and the abstract is included in the format) the superscripted

4,5

will be output.

Having said that, I did find that when this was output as BibTeX Markup it was mangled. I've fixed that bug for the next update. In the fixed version it will be formatted as

(TMS).\textsuperscript{4}\textsuperscript{,}\textsuperscript{5}


Jon
Sonny Software

Re: Problems due to malformed abstract with LaTeX export

Posted: Sun Feb 19, 2023 8:11 pm
by iandol
Ah, yes indeed, I seem to have missed the comma (must get my eyes tested)! and thanks for the upcoming fix!