GeneralReferencing not working - probably very easy but I'm lost

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

Post by timbob04 »

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 7382 times
test1.aux
(88 Bytes) Downloaded 303 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

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

Post by timbob04 »

further to my message just sent

[quote]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[/quote]


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 292 times
Thesis_references_capture.JPG
Thesis_references_capture.JPG (56.2 KiB) Viewed 7382 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10344
Joined: Mon Mar 10, 2008 9:44 pm

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

Post by Stefan Kottwitz »

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
LaTeX.org admin
timbob04
Posts: 12
Joined: Mon Jan 14, 2019 7:45 pm

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

Post by timbob04 »

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 7380 times
directory capture.JPG
directory capture.JPG (75.3 KiB) Viewed 7380 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10344
Joined: Mon Mar 10, 2008 9:44 pm

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

Post by Stefan Kottwitz »

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
LaTeX.org admin
timbob04
Posts: 12
Joined: Mon Jan 14, 2019 7:45 pm

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

Post by timbob04 »

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 315 times
references.tex
(343 Bytes) Downloaded 321 times
Quick Build Command.JPG
Quick Build Command.JPG (332.67 KiB) Viewed 7370 times
Files created.JPG
Files created.JPG (68.16 KiB) Viewed 7370 times
timbob04
Posts: 12
Joined: Mon Jan 14, 2019 7:45 pm

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

Post by timbob04 »

Extra files attached (mentioned in previous message)
Attachments
test1.synctex.gz
(573 Bytes) Downloaded 383 times
test1.pdf
(29.89 KiB) Downloaded 418 times
test1.log
(2.84 KiB) Downloaded 357 times
test1.bbl
(283 Bytes) Downloaded 343 times
timbob04
Posts: 12
Joined: Mon Jan 14, 2019 7:45 pm

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

Post by timbob04 »

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 334 times
test1.tex
(189 Bytes) Downloaded 283 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10344
Joined: Mon Mar 10, 2008 9:44 pm

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

Post by Stefan Kottwitz »

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
LaTeX.org admin
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

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

Post by Johannes_B »

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.

Code: Select all

\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.
Post Reply