2

I'm trying to use a collection from Zotero in a LyX file as a reference database.

I export the Zotero collection as a BibLaTeX format database with unicode encoding. I've also tried using unicode without BOM and Western. All of them cause issues when compiling the document in LyX.

These are the options I use when exporting the collection:

enter image description here

This is the error I see when compiling:

enter image description here

I can remove the from {Test—with a dash} to remove the error, but I'd have to find and replace unsupported characters each time I export.

Opening the exported BibLaTeX file in http://findencoding.com I see that the dash is replaced with a under the utf-8 section. So it seems that Zotero isn't actually exporting using the correct format. The windows-* sections have the dash correctly displayed.

@article{test_2018,
    title = {Test�with a dash},
    volume = {62},
    issn = {1231-1231},
    url = {http://ww.google.com},
    doi = {11.1111/1111-1111(11)11111-P},
    abstract = {Test},
    pages = {11-111},
    number = {111},
    journaltitle = {Test},
    shortjournal = {Test},
    author = {Test},
    urldate = {2018-01-01},
    date = {2018-01-01},
    keywords = {Test}
}

Example files

  • LyX version: 2.3.0
  • Zotero version: 5.0.52
  • OS: macOS 10.13
  • 1
    You could try installing BBT into Zotero and then exporting in BBT biblatex with the "Export unicode as plain-text latex commands" preference on. – retorquere Jul 5 '18 at 6:58
  • @retorquere thanks that worked. If you want to answer the question I'll accept it. – waspinator Jul 6 '18 at 1:42
3

You could try installing the Better BibTeX for Zotero (aka BBT) plugin into Zotero and then exporting in BBT biblatex with the "Export unicode as plain-text latex commands" preference on in the settings.

Full disclosure: I am the author of the BBT plugin.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.