Similar to this question: this, and this, but it did not help me.

UPDATE: I am specifically looking for the res class. However, I do not care if bibentry is used or something else.

I cannot compile references, the problem seems to be with bibentry, hyperref, and the bibliography files. The code results either in an error or compiles but the references are not printed out, depending on whether hyperref is loaded before or after bibentry.

Here is a MWE where I removed all other details. This produces the relevant errors.







\section{\sc Publications}


\item \bibentry{singh2019popov}




And this is the bibtex file called thebib.bib

  author  = {Singh, Bismark},
  title   = {{Popov, Berg, Sokolov}: A Street with Three Plaques},
  journal = {The Mathematical Intelligencer},
  year    = {2019},
  volume  = {41},
  number  = {4},
  pages   = {13--15},
  month   = {Dec},
  issn    = {1866-7414},
  day     = {01},
  doi     = {10.1007/s00283-019-09936-1},
  url     = {https://doi.org/10.1007/s00283-019-09936-1},
  • hi! i ran your code on my computer. i am able to compile it if the commands \nobibliography{thebib} \bibliographystyle{ieeetr} are inside the document environment. I also had to change \nobibliography{thebib} to \bibliography{thebib}, but that's probably due to some package i'm missing. Can you try running it again with those two commands inside the document environment and tell us the result? – Arak Tog Feb 12 '20 at 17:06
  • @ArakTog If those two lines are inside, then I get Bibtex finished with error code 1 and a warning label singh2019popov is multiply defined, even though its defined only once... – bissi Feb 12 '20 at 17:09
  • 2
    the res.cls is from 2000 (and it isn't in a current texlive as it is not free). It issues a \nofiles which means that it doesn't work with any package which needs to write to the aux. I wouldn't spent time to try to sort this out. Such old code should be dropped. Switch to a newer system. – Ulrike Fischer Feb 17 '20 at 16:22
  • 2
    well you will have to revamp something as it doesn't work. res.cls is old, bibentry is old and both not or not fully compatible to hyperref. I would say it is much easier to start with biblatex + hyperref and to use a newer, compatible class. – Ulrike Fischer Feb 19 '20 at 11:39
  • 1
    I didn't answer, I only commented that I think that you should look for a different solution. There is no need "to close a discussion"; you are quite free to ignore my comments. – Ulrike Fischer Feb 20 '20 at 14:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.