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
  • 4
    @Owen Maresh I think a minimal working example (MWE) would be useful here. – Joseph Wright Jul 17 '11 at 11:23
  • the answer works for me - I used it on my own .bib file though. – Dima Pasechnik Jul 28 '17 at 11:45

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",
    address = "Oxford, England"
}

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

output:

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

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

Only a subset of .bib fields are supported and, of course, the output cannot be better than the input and will not initially have much of the added structure that amsrefs can support but should be a useful start.

  • I have encountered the same issue when importing a Mendeley library to be used with elsevier's harvard template. could you suggest a solution? the template file (elsarticle-harv.bst) suggests: ENTRY { address author booktitle chapter edition editor howpublished institution journal key month note number organization pages publisher school series title type url volume year } – Andreuccio Jun 21 at 10:28

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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