llorracc / as.180.369-2023-Fall

Johns Hopkins AS.180.369—“Tools for Writing a Research Paper in Economics” (Fall 2023)
1 stars 15 forks source link

[Solved by galibest2] Bibtex reference doesn't show up #23

Open Sunsett5 opened 1 year ago

Sunsett5 commented 1 year ago

The terminal says it cannot find my Bibtex key. It seems to locate the Bibtex file successfully but not the key inside. Appreciate any help! Thank you in advance.

Screen Shot 2566-10-27 at 19 58 18 Screen Shot 2566-10-27 at 19 56 46
galibest2 commented 1 year ago

Just trying to help troubleshoot, but did you change line 9 in the _config file within the folder?

image
galibest2 commented 1 year ago

That is the only thing I can think would be wrong based on the common issues presented by Chat-GPT

Sunsett5 commented 1 year ago

@galibest2 Thanks a lot. I also asked ChatGPT lol. Unfortunately, I have already changed both _config.yml and conf.py . The issue might be the website that I used to generate Bibtex, so I will have to look into that.

Thanks again. Have a great weekend!

galibest2 commented 1 year ago

I used both Paperpile and LitMaps and I am running into the same error :( I will keep trying to figure it out and if I get it I will let you know:)

galibest2 commented 1 year ago

Update:

I no longer get error messages but my citations are still not being populated. I also now get this error message and no longer have to use ^C to do a new command. I don't know if this is an improvement or more of a setback

image image

I wonder if one of the issues is highlighted in the error: OSError: [Errno 98] Address already in use

But both Chat GPT and I are stumped. I even tried deleting the conf.py and restarting my kernels but nothing has helped.

Maybe between both of our errors we can find a solution :(

galibest2 commented 1 year ago

@Sunsett5 Tears of joy were shed for I was finally able to get my citations to work.

My code required me to add a markdown cell at the bottom of all of my cells and include a bibliography so it could complete the citation. Here is a photo of that code:

image

I then eventually got an error raised from my bibliography since it turns out the following was happening:

"BibTeX -- actually, the plain bibliography style -- is throwing a warning message (not an error message) because entries of type @article require a non-empty journal field. For the plain bibliography style, the four required fields for entries of type @article are author, title, journal, and year; the four optional fields are volume, number, pages, and note. Note that for the @article entry type, the publisher field is neither required nor optional; therefore, it is ignored entirely." (Stack Exchange)

I manually revised my bib file and as long as you type a comma at the end no error should be raised.

I hope this works for you as well :)

Here are some helpful sources if you want to do any further reading or troubleshooting:

Citation Help MyST Sytnax Sheet Understanding what the bibliography requires

Sunsett5 commented 1 year ago

@galibest2 OMG Bless you! It works! I went back and look at the "test.ipynb" file, and guess what. The bibliography is actually hiding there lol.

Thanks for all those resources as well; I'm sure they will be very helpful to all of us. :)