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 am having trouble trying to use amsrefs together with the memoir class. Here is a minimal example:

\documentclass{memoir}
\usepackage{amsrefs}

\begin{document}

Some text.

\end{document}

LaTeX gives me the error LaTeX Error: Command \bibsection already defined.

Googling around, I found only this question from 2005, which appears identically on several different forums. I don't really understand the solution proposed there.

If it matters, I am using TeXLive 2012 and I just downloaded the amsrefs package from CTAN, so everything is pretty up to date.

Has anybody run into this before? Is there any way to get around it?


Resolution: the suggestion in the comments worked. Adding \let\bibsection\relax immediately before loading amsrefs allows amsrefs to redefine the \bibsection command.

share|improve this question
    
a hack to get round it is to use \let\bibsection\relax just before you load amsrefs... not sure if it's the way to go or not... –  cmhughes Mar 13 '13 at 21:19
    
I don't know how much compatible amsrefs is with memoir. However, since the latter uses \bibsection in the thebibliography environment, which amsrefs redefines, the path suggested by @cmhughes might be sufficient. –  egreg Mar 13 '13 at 21:23
    
amsrefs has, to the best of my knowledge, not been tested with memoir; certainly it hasn't been so tested here at ams, and i think isn't likely to be. but the cited suggestion (from 2005) looks plausible, and worth a try. –  barbara beeton Mar 13 '13 at 21:27
1  
@barbarabeeton It was a very interesting project; but probably switching to biblatex is the best choice, nowadays. –  egreg Mar 13 '13 at 21:28
    
@egreg -- the only problem with that is that ams is not likely to support biblatex any time soon. (there's too great an investment in bibtex and amsrefs.) if any biblatex code is submitted to ams publications, it will be rekeyed -- in amsrefs, which i understand will not be returned to the author. –  barbara beeton Mar 13 '13 at 21:32
show 1 more comment

1 Answer

up vote 5 down vote accepted

(CW from comments)

It seems that removing the definition of \bibsection made by memoir before loading amsrefs can solve the issue:

\documentclass{memoir}

\let\bibsection\relax
\usepackage{amsrefs}

\begin{document}

Some text.

\end{document}
share|improve this answer
add comment

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.