2017-01-12 9:28 GMT+01:00 Anders Ekberg <a...@me.com>: > I discovered a very strange bug: > Using Lyx on Mac and inserting a reference file created by BibDesk using > the IEEEtran format. The reference file has two entries that have the same > authors. One author has a name containing And that I suspect can be related > to the problem. In the output the first reference is fine, but in the > second the author is missing. If I change the bibliography format to plain > everything works. I can also get it to work by tweaking with the authors’ > names (e.g. removing the second author). LyX, bib and pdf-files for a > minimum example are enclosed. > > Don’t know if it is a bug in LyX, TeX, BibDesk, BibTeX or something else, > but it is definitely the strangest bug I have seen for a long time… > Any ideas of the cause? >
It's not a bug but a feature of IEEEtran.bst: % This function detects entries with names that are identical to that of % the previous entry and replaces the repeated names with dashes (if the % "is.dash.repeated.names" user control is nonzero). FUNCTION {name.or.dash} { 's := oldname empty$ { s 'oldname := s } { s oldname = { is.dash.repeated.names { repeated.name.dashes } { s 'oldname := s } if$ } { s 'oldname := s } if$ } if$ } You can switch it off by 1. adding the following entry to your bib file: @IEEEtranBSTCTL{IEEEexample:BSTcontrol, CTLdash_repeated_names = "no", } 2. then adding the following to your preamble \usepackage{IEEEtrantools} 3. and finally, this somewhere in your document: \bstctlcite{IEEEexample:BSTcontrol} HTH Jürgen > > All the best! > Anders > > > > > >