Mathml to Latex for bibtex entries

Mike Marchywka marchywka at hotmail.com
Fri Jun 3 03:36:12 CEST 2022


I got a bibtex entry for this url,

https://scholar.uwindsor.ca/cgi/viewcontent.cgi?article=1097&context=physicspub

 with Toobib and with
Zotero (  using
http://api.crossref.org/works/10.1103/PhysRevA.24.183 since AFAICT
its webform does not work with pdf ),

@article{goldman_relativistic_1981,
        title = {Relativistic two-photon decay rates of 2 s 1 2 hydrogenic ions},
        volume = {24},
        issn = {0556-2791},
        url = {https://link.aps.org/doi/10.1103/PhysRevA.24.183},
        doi = {10.1103/PhysRevA.24.183},
        language = {en},
        number = {1},
        urldate = {2022-06-03},
        journal = {Physical Review A},
        author = {Goldman, S. P. and Drake, G. W. F.},
        month = jul,
        year = {1981},
        pages = {183--191},
}

and if you look at the PDF the title on their cover sheet has "2s12"
but then the paper has the likely accurate "2S_{1/2}" in
the title.
TooBib returns this with the mml in the title field from download from crossref,

% mjmhandler: toobib handlediss<-handledoi
% date 2022-06-02:20:56:33 Thu Jun 2 20:56:33 EDT 2022
% srcurl: https://scholar.uwindsor.ca/physicspub/98 https://scholar.uwindsor.ca/
cgi/viewcontent.cgi?article=1097&context=physicspub
% citeurl: http://api.crossref.org/works/10.1103/PhysRevA.24.183
@article{Goldman_Drake_Relativistic_photon_decay_1981,
X_TooBib = {date: 07/01/1981},
X_TooBib = {year: 1981,  infield_fix_dates },
X_TooBib = {urldate: FixBeKvp s= cmd=date "+%Y-%m-%d" d=2022-06-02 dn=urldate},
X_TooBib = {author: Goldman , S. P. and Drake , G. W. F.},
abbrvjrnl = {Phys. Rev. A},
affiliation = {},
author = {Goldman , S. P. and Drake , G. W. F.},
author_orig = {S. P. Goldman and G. W. F. Drake},
bib-source = {Crossref},
content-domain = {false},
date = {07/01/1981},
date-created = {2002-07-27T02:59:18Z},
date-deposited = {2017-12-102017-12-10T05:57:05Z},
date-indexed = {2022-04-05T08:46:54Z},
date-issued = {1981-07-01},
date-journal-issue = {1981-07},
date-license = {1981-07-011981-07-01T00:00:00Z},
date-published-online = {1981-07-01},
date_orig = {1981-07-01},
deposited = {1512885425000},
doi = {10.1103/physreva.24.183},
is-referenced-by-count = {153},
issn = {0556-2791},
issn-type = {0556-2791, print},
issue = {1},
journal = {Physical Review A},
journal-issue = {1},
language = {en},
license = {362793600000, vor, 0, http://link.aps.org/licenses/aps-default-licens
e},
link = {http://link.aps.org/article/10.1103/PhysRevA.24.183, unspecified, vor, s
yndication, http://harvest.aps.org/v2/journals/articles/10.1103/PhysRevA.24.183/
fulltext, unspecified, vor, similarity-checking},
member = {16},
page = {183-191},
prefix = {10.1103},
publisher = {American Physical Society (APS)},
reference = {deleted for space},
reference-count = {28},
references-count = {28},
resource = {https://link.aps.org/doi/10.1103/PhysRevA.24.183},
score = {1},
title = {Relativistic two-photon decay rates of<mml:math xmlns:mml=http://www.w3
.org/1998/Math/MathML display=inline><mml:mn>2</mml:mn><mml:mrow><mml:msub><mml:
mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mfrac><mml:mrow><mml:mn>1</mml:
mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac></mml:mrow></mm
l:msub></mml:mrow></mml:math>hydrogenic ions},
type = {journal-article},
url = {http://dx.doi.org/10.1103/physreva.24.183},
urldate = {2022-06-02},
volume = {24},
year = {1981},
final_assembly ={ TooBib handler handledoi(crossref)},
srcurl={https://scholar.uwindsor.ca/cgi/viewcontent.cgi?article=1097&context=phy
sicspub},
xsrcurl={https://scholar.uwindsor.ca/physicspub/98},
citeurl={http://api.crossref.org/works/10.1103/PhysRevA.24.183}

}

Note first it used  TooBib's  "handlediss" method to try to sort out the
awful way university libaries handle dissertations. But the title
entry looks messed up. This mml stuff in the title  is in the result from
crossref and apparently Zotero just drops it at least
on their webform. Is there some easy utility or c++
code to convert this stuff to latex? In the past, for unicode
and html I have just written brute force handlers for
common expressions or idioms and this looks a lot like
html and of course dropping it is an option too.

Thanks.


--

mike marchywka
306 charles cox
canton GA 30115
USA, Earth
marchywka at hotmail.com
404-788-1216
ORCID: 0000-0001-9237-455X



More information about the texhax mailing list.