Importing bibtex with italics, superscript and subscript
I'm trying to switch to Zotero from Papers. I've exported my Papers library as bibtex.
Many of my papers have italics, superscript and/or subscript in the title. I can get the italics to render correctly by replacing all \emph{blah} instances in the bibtex with blah (although this is not valid bibtex AFAIK).
However, I can't do the same for superscript or subscript.
For example, the following bibtex entry (taken from the stackexchange tex site, http://tex.stackexchange.com/a/187030):
@article{goldbeter1990,
author = "A and B",
title = "Model for signal-induced {Ca$^{2+}$} and {IP$_3$} oscillations",
journal = "ABC",
volume = "87",
pages = "1-11",
year = "1990",
}
Is printed with a superscript '2+' and a trailing '$' when I generate a bibliography from Zotero. If I remove the trailing '$' from the bibtex, it is not rendered as superscript at all (Ca$^2+).
What is required for Zotero to parse subscript and superscript from bibtex during import?
I'm on Zotero 5.0 beta if that's relevant.
Thanks,
Tom
Many of my papers have italics, superscript and/or subscript in the title. I can get the italics to render correctly by replacing all \emph{blah} instances in the bibtex with blah (although this is not valid bibtex AFAIK).
However, I can't do the same for superscript or subscript.
For example, the following bibtex entry (taken from the stackexchange tex site, http://tex.stackexchange.com/a/187030):
@article{goldbeter1990,
author = "A and B",
title = "Model for signal-induced {Ca$^{2+}$} and {IP$_3$} oscillations",
journal = "ABC",
volume = "87",
pages = "1-11",
year = "1990",
}
Is printed with a superscript '2+' and a trailing '$' when I generate a bibliography from Zotero. If I remove the trailing '$' from the bibtex, it is not rendered as superscript at all (Ca$^2+).
What is required for Zotero to parse subscript and superscript from bibtex during import?
I'm on Zotero 5.0 beta if that's relevant.
Thanks,
Tom
@article{goldbeter1990,
author = "A and B",
title = "Model for signal-induced {Ca^{2+}} and {IP_3} oscillations",
journal = "ABC",
volume = "87",
pages = "1-11",
year = "1990",
}
Is math mode even legal in bibtex? We could probably work around it if need be.
I believe math mode is supported in bibtex, see http://www.bibtex.org/SpecialSymbols/
I've realised I can do it using the html "sub" tags like for italics, so I can replace those $^{blah}$ tags in the bibtex before importing.
I'll give it a try with my full library using the html tags. I can live with it if it works, I just didn't expect to need html tags in the bibtex to get it to import correctly, and I can't find if that's documented anywhere.
It also suprised me that Zotero handles some of the bibtex fine (e.g. $\alpha$, {\texttimes}) but not \emph{}. Is that expected?
Thanks again for the help.
@article{goldbeter1990,
author = "A and B",
title = "Model for signal-induced {Ca$^{2+}$} and {IP_3} oscillations",
journal = "ABC",
volume = "87",
pages = "1-11",
year = "1990",
}
Go to Zotero, choose Actions -> Import, and select the test.bibtex file.
After that item appears in the "test" subcollection in "My Library", I right-click and choose "Create Bibliography from Item". Then I select Citation Style: (doesn't matter, e.g. Cell) Output Mode: Bibliography and Output Method: Copy to Clipboard, and paste the result into e.g. LibreOffice Writer.
In the meantime, could you check if you get a different result when you select and copy the bibtex above (either, btw. -- the version with math mode imports fine for me, too) and then select "import from clipboard" in Zotero?
Can't get it to import the \emph correctly from the clipboard though.
No add-ins, it's a new installation. I can trash the Zotero folder and start again if you think it's worth trying.