Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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).

share|improve this question
    
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

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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