LaTeX forum ⇒ GeneralReferencing 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

Postby timbob04 » Thu Jan 17, 2019 6:43 pm

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
directory capture.JPG (75.04 KiB) Viewed 340 times
test1.aux
(88 Bytes) Downloaded 7 times

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

Postby timbob04 » Thu Jan 17, 2019 6:52 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
(88 Bytes) Downloaded 10 times
Thesis_references_capture.JPG
Thesis_references_capture.JPG (56.2 KiB) Viewed 340 times

User avatar
Stefan Kottwitz
Site Admin
Posts: 9367
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Thu Jan 17, 2019 7:01 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
Site admin

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

Postby timbob04 » Thu Jan 17, 2019 7:14 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
Thesis_references_capture.JPG (38.94 KiB) Viewed 338 times
directory capture.JPG
directory capture.JPG (75.3 KiB) Viewed 338 times

User avatar
Stefan Kottwitz
Site Admin
Posts: 9367
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Thu Jan 17, 2019 8:08 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
Site admin

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

Postby timbob04 » Fri Jan 18, 2019 1:59 am

Hi Stefan,

Thank you for the reply.

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.

Pleae let me know if you need anymore information.

Thanks once again for the persistent help.

Tim
Attachments
test1.aux
(88 Bytes) Downloaded 6 times
references.tex
(343 Bytes) Downloaded 12 times
Quick Build Command.JPG
Quick Build Command.JPG (332.67 KiB) Viewed 328 times
Files created.JPG
Files created.JPG (68.16 KiB) Viewed 328 times

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

Postby timbob04 » Fri Jan 18, 2019 2:00 am

Extra files attached (mentioned in previous message)
Attachments
test1.synctex.gz
(573 Bytes) Downloaded 11 times
test1.pdf
(29.89 KiB) Downloaded 6 times
test1.log
(2.84 KiB) Downloaded 11 times
test1.bbl
(283 Bytes) Downloaded 9 times

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

Postby timbob04 » Fri Jan 18, 2019 2:01 am

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
(228 Bytes) Downloaded 11 times
test1.tex
(189 Bytes) Downloaded 15 times

User avatar
Stefan Kottwitz
Site Admin
Posts: 9367
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Fri Jan 18, 2019 11:36 am

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
Site admin

User avatar
Johannes_B
Site Moderator
Posts: 3977
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat Jan 19, 2019 11:07 am

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.

  1. \begin{filecontents}{\jobname.bib}
  2. @article{wombat,
  3. author={Wombat},
  4. }
  5. \end{filecontents}
  6. \documentclass{article}
  7. \usepackage{natbib}
  8. \bibliographystyle{unsrtnat}
  9. \begin{document}
  10. Reference here: \cite{wombat}.
  11. \bibliography{\jobname}
  12. \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.


Return to “General”

Who is online

Users browsing this forum: No registered users and 2 guests