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 using the amsplain style for the bibliography, but I do not want the dash instead of the names of duplicated authors.

I found this post Is it normal for BibTeX to replace similar author names with "------"? for IEEEtran style.

The amsref documentation says

Change the definition of \sameauthors if you don’t want to get a bysame dash.

How can I change the definition of \sameauthors command or do something similar to the post for amsrefs?

Edit: I am not using the amsrefs package. I only have a bib database and the lines:

\bibliographystyle{amsplain}

\bibliography{mybibfile}

If I add \usepackage{amsrefs} (thinking about using the nobysame option), I get lots of errors and the bibliography is not generated.

share|improve this question

1 Answer 1

up vote 10 down vote accepted

If you are using the amsrefs package, then you can turn off the dash with a package option. From the documentation:

6.4 Miscellaneous Options

nobysame: If two or more consecutive bibliography items have the same authors, amsrefs will normally replace the author names in the second and succeeding entries by a horizontal rule (_ _ _ _ _). This option disables this feature, causing the full author names to always be printed.

If you are just using the amsplain.bst as a bibliography style, you will need to make a new version of the .bst file that doesn't print the dash. Here are instructions for editing the .bst file. (I'll assume a TeXLive installation).

Open /usr/local/texlive/2011/texmf-dist/bibtex/bst/amscls/amsplain.bst

Inside you will find the following function around line 367.

FUNCTION {format.authors}
{ author empty$
    { "" }
    { bysame "\bysame" =
         {"\bysame"}
         { author format.names }
     if$
    }
  if$
}

Change this to:

FUNCTION {format.authors}
    { author format.names }

Then save the file as amsplain-nodash.bst in a place where TeX can find it. If this is for a single document, you could save it in the same folder as the document. If you want to use this more generally, save it in <path-to-local-texmf>/texmf/bibtex/bst/ and then you can use it with any document.

Then in your document, use:

\bibliographystyle{amsplain-nodash}
share|improve this answer
    
I think I maybe asked the wrong question (because I am confused). I am not actually using the amsrefs package. I edited the question. –  Rafael Apr 8 '12 at 17:55

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.