LaTeX forum ⇒ LyXLyx error message: Repeated Entry Topic is solved

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
christo_91
Posts: 4
Joined: Wed May 29, 2019 11:27 am

Lyx error message: Repeated Entry

Postby christo_91 » Wed May 29, 2019 11:32 am

Hi,

I've just updated the bibliography list for my Lyx document (same file location and file name), but when I click to preview the PDF the following error comes up (XXXX is the file extension):

Repeated entry---line 4310 of file 23C_XXXX_library.bib


If I click Show Output Anyway it works fine, but I'd rather get rid of the error message if I can.

Any ideas?

Thanks!

User avatar
Ijon Tichy
Posts: 91
Joined: Mon Dec 24, 2018 10:12 am

Postby Ijon Tichy » Wed May 29, 2019 11:51 am

This happens if you have a bib-file (or more than one bib-files) with entries with the same key, e.g. with
  1. \begin{filecontents*}{\jobname.bib}
  2. @article{test,
  3. title={Test},
  4. }
  5. @article{test,
  6. title={Test repeated},
  7. }
  8. }
  9. \end{filecontents*}
  10. \documentclass{article}
  11. \bibliographystyle{unsrt}
  12. \begin{document}
  13. \nocite{*}
  14. \bibliography{\jobname}
  15. \end{document}
the bibtex run results in:
  1. This is BibTeX, Version 0.99d (TeX Live 2019)
  2. The top-level auxiliary file: test.aux
  3. The style file: unsrt.bst
  4. Database file #1: test.bib
  5. Repeated entry---line 4 of file test.bib
  6. : @article{test
  7. : ,
  8. I'm skipping whatever remains of this entry
  9. Warning--empty author in test
  10. Warning--empty journal in test
  11. Warning--empty year in test
  12. (There was 1 error message)

Changing the key of the second entry from test to testB fixes the issue.

So you have to look into your bib-file and see where there is an identical key like the one of the entry in line 4310 and change one of the keys or remove the duplicate.

christo_91
Posts: 4
Joined: Wed May 29, 2019 11:27 am

Postby christo_91 » Wed May 29, 2019 12:05 pm

Brilliant - sorted. Thanks very much!!


Return to “LyX”

Who is online

Users browsing this forum: No registered users and 1 guest