## LaTeX forum ⇒ General ⇒ Referencing not working - probably very easy but I'm lost Topic is solved

LaTeX specific issues not fitting into one of the other forums of this category.
timbob04
Posts: 12
Joined: Mon Jan 14, 2019 7:45 pm

### Referencing not working - probably very easy but I'm lost

Hi Stefan,

Thank you very much for the reply.

Regarding the .aux file, I've now managed to attach this (see below). Not sure why I couldn't do this before.

Regarding the .bib file, I have no idea why this is not being created. Even when I compile the code with the BibTex instead of the pdfLaTeX command, I still get no .bib file in my directory. Do you know why this may be happening, or how I may be able to create a bib file? I never had this issue before. When I copied all my thesis (where this problem was originally discovered) over to a new computer, I have no recollection of not copying a .bib file. But, now I notice that this is missing from these copied files as well.

I have also added a screen capture of my directory, for extra clarity.

Thanks once again.

Tim
Attachments
directory capture.JPG (75.04 KiB) Viewed 340 times
test1.aux

timbob04
Posts: 12
Joined: Mon Jan 14, 2019 7:45 pm
further to my message just sent

Hi Stefan,

Thank you very much for the reply.

Regarding the .aux file, I've now managed to attach this (see below). Not sure why I couldn't do this before.

Regarding the .bib file, I have no idea why this is not being created. Even when I compile the code with the BibTex instead of the pdfLaTeX command, I still get no .bib file in my directory. Do you know why this may be happening, or how I may be able to create a bib file? I never had this issue before. When I copied all my thesis (where this problem was originally discovered) over to a new computer, I have no recollection of not copying a .bib file. But, now I notice that this is missing from these copied files as well.

I have also added a screen capture of my directory, for extra clarity.

Thanks once again.

Tim

I also have this problem with my thesis. I attach a screen capture where my .bib file should be stored for my thesis. Again I have a .tex file instead of a .bib file. Do you know of a way I could potentially use the .bib.bak file to sort this issue?
Attachments
test1.aux
Thesis_references_capture.JPG (56.2 KiB) Viewed 340 times

Stefan Kottwitz
Posts: 9367
Joined: Mon Mar 10, 2008 9:44 pm
Change your Microsoft Explorer (file manager) general options or folder options, so it shows the full file name. Currently, it hides the file name extension and displays just the kind of file in another column. That doesn't make it easier to see or to change.

So change general or folder options in the explorer so it displays the extension. Then check that it's references.bib or and not references.bib.bak or references.tex. You can right click on the file and rename it in the explorer.

Stefan

timbob04
Posts: 12
Joined: Mon Jan 14, 2019 7:45 pm
Okay, the plot thickens, again.

The test1 directory contains a references.tex file, whereas the similar file for my thesis is a .bib file. Now I'm very confused.

Neither want to print references and neither can get through the compiling procedure without having an issue with references (i.e. errors appear).

I also tried changed the extension of the references.tex file in the test1 folder (not thesis folder) to references.bib, but this did not solve the issue.

See images below.

Thanks

Tim
Attachments
Thesis_references_capture.JPG (38.94 KiB) Viewed 338 times
directory capture.JPG (75.3 KiB) Viewed 338 times

Stefan Kottwitz
Posts: 9367
Joined: Mon Mar 10, 2008 9:44 pm
Hi Tim,

for troubleshooting, we need to see the files or, better, a test document that brings the error together with its .bib and .aux and .blg and .bbl and .log files. Basically all files of the document since the cause is still very unclear. If you fixed the name of the test references.bib file, does the error still occur? What's the set of files in this case, again?

Btw. if your file system is case sensitive, References.bib would not work if you call it with \bibliography{references} with a small r.

And by the way, when testing, run pdfLaTeX and BibTeX again, both each time.

And, be sure to make or have a backup copy of your thesis folder.

Stefan

timbob04
Posts: 12
Joined: Mon Jan 14, 2019 7:45 pm
Hi Stefan,

For clarification, my two main files are test1.tex (the main document) and references.tex (my list of references - only 1). I am using MikTex with the Texmaker GUI. I have configured Texmaker to perform these steps: PdfLaTex > Bib(la)tex > PdfLaTex > View Pdf (please see image named 'Quick Build Command').

The files I get from this after compiling are attached (and also shown in the image named 'files created'). These files will be included in this message and the following one, due to limited upload space.

I have checked to see if any errors arise because of case sensitivity. Everything looks good.

I have tried running pdfLaTeX and BibTex a lot, and in many different orders.

Regarding the backup, I am first trying to get this issue just sorted on test1 document. The thesis is definitely backed up all over the place.

Thanks once again for the persistent help.

Tim
Attachments
test1.aux
references.tex
Quick Build Command.JPG (332.67 KiB) Viewed 328 times
Files created.JPG (68.16 KiB) Viewed 328 times

timbob04
Posts: 12
Joined: Mon Jan 14, 2019 7:45 pm
Extra files attached (mentioned in previous message)
Attachments
test1.synctex.gz
test1.pdf
test1.log
test1.bbl

timbob04
Posts: 12
Joined: Mon Jan 14, 2019 7:45 pm
Extra files attached (mentioned in previous message).

All the attached files (in this and the previous two messages) are all the files that are created on compiling the document in Texmaker.
Attachments
test1.blg
test1.tex

Stefan Kottwitz
Posts: 9367
Joined: Mon Mar 10, 2008 9:44 pm
Hi Tim,

this test1 still cannot work since the reference file is still called references.tex and not references.bib. Please rename it, as LaTeX searches for references.bib.

Stefan

Johannes_B
Site Moderator
Posts: 3977
Joined: Thu Nov 01, 2012 4:08 pm
Can you please copy the following block and save it to a file called timbobBibliography.tex? Run the full compile chain and attach the log and blg file.

\begin{filecontents}{\jobname.bib}@article{wombat,author={Wombat},}\end{filecontents}\documentclass{article}\usepackage{natbib}\bibliographystyle{unsrtnat}\begin{document}Reference here: \cite{wombat}.\bibliography{\jobname}\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.