# How to convert .bib generated by Mendeley for use with amsrefs

I'm using TeX live 2010. I have a .bib file generated from Mendeley, and I want to use that with amsrefs, but it's confusing and the amsrefs documentation is somewhat hard to follow: how do I massage the .bib file into something that amsrefs can stomach. (I'm using amsart as the document class).

-
Did you sort this out in the end? –  Simon Jul 6 '11 at 15:10
Haven't so far. –  Owen Maresh Jul 12 '11 at 7:10
Does it not compile? Or is it just that the output is no good? –  Simon Jul 12 '11 at 8:14
@Owen Maresh I think a minimal working example (MWE) would be useful here. –  Joseph Wright Jul 17 '11 at 11:23

As the Mendeley-generated file should be a valid .bib file then using the amsxport package (documentation on CTAN or via texdoc amsxport) should be helpful. The process is also outlined in a TUGboat article from 2000.

For example the following simple document, processed by pdflatex and then bibtex,

\documentclass{article}
\usepackage{amsrefs}
\begin{document}
\nocite{*}
\bibliographystyle{amsxport}
\bibliography{TeX_biblio}
\end{document}


will produce a .bbl file with the best-effort conversion of the specified bibliography file into amsrefs format (by default it will use the amsrn style).

Looking at the first couple of entries of the input .bib and output .bbl files:

@book{clark92,
author = "Malcolm Clark",
title = "A {\texttt{plain}} {\TeX} primer",
year = "1992",
edition = "1st",
publisher = "Oxford",
}

@book{dalheimer08,
author = {Matthias Kalle Dalheimer and Karsten G{\"u}nther},
title = {{\LaTeX}---kurz \& gut},
year = {2008},
edition = {3},
publisher = {O'Reilly},
}


output:

\bib{clark92}{book}{
author={Clark, Malcolm},
title={A {\texttt{plain}} {\TeX} primer},
edition={1},
publisher={Oxford},
date={1992},
}

\bib{dalheimer08}{book}{
author={Dalheimer, Matthias~Kalle},
author={G{\"u}nther, Karsten},
title={{\LaTeX}---kurz \& gut},
edition={3},
publisher={O'Reilly},