Theses, Books, Title pagesProblem with bibliography

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Asma_F
Posts: 20
Joined: Sat Mar 04, 2017 12:12 pm

Problem with bibliography

Post by Asma_F »

Hi there,

I am using Masters/Doctoral Thesis template and I found it a great one. But I'm facing a problem with the bibliography which does not show up. I have a .bib file and I follow the procedure to run it (PdfLaTeX + BibTeX + (2) PdfLaTeX) but nothing appear and there is no error message.

I had cited in Chapter1.tex and then I include it in main.tex, when I clicked run the citation appeared as the key reference in bib file and no bibliography showed up at the end of the file.

I want my bibliography to include all the reference from all the chapters at the end of the document.

*Note: I tried using BibTeX with an ordinary document( not a template) and It worked.

I really appreciate any help.

Thanks

Recommended reading 2024:

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

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Problem with biblography

Post by Johannes_B »

Please show us the log and blg files of the unchanged template.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Asma_F
Posts: 20
Joined: Sat Mar 04, 2017 12:12 pm

Problem with biblography

Post by Asma_F »

Thanks for your speedy reply. I didn't understand what do you mean by "unchanged template", before I edited?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Problem with biblography

Post by Johannes_B »

You said without the template, you get a bibliography. So it might be an error with the template or some system setup.
Or you changed something while writing your text and introduced some mistakes.
I wanted to know if something with your setup is dodgy, before sending you off to find the mistake in your code, which will takes some time.

In short: Download the template once more, do a compile chain as normal and post the final resulting log and blg files.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Asma_F
Posts: 20
Joined: Sat Mar 04, 2017 12:12 pm

Problem with bibliography

Post by Asma_F »

When I downloaded the template again as you said the bibliography appeared in the PDF file before I compile, after I compile it disappear. I didn't find blg file.

main.log
(85.46 KiB) Downloaded 331 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Problem with biblography

Post by Johannes_B »

Did you run BibTeX and then LaTeX (two times)? The blg file will only be created after BibTeX was run.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Asma_F
Posts: 20
Joined: Sat Mar 04, 2017 12:12 pm

Problem with biblography

Post by Asma_F »

yes, from configuration I choose the Quick build to be (PdfLaTeX + Bib(la)TeX+ PdfLaTeX (2x) + view Pdf ) and I compiled

but when I chose (PdfLaTeX +view pdf) and compile ( LaTeX > BibTeX >LaTeX (2)) I got an error ( couldn't open file name `buildmain.aux')
User avatar
Stefan Kottwitz
Site Admin
Posts: 10340
Joined: Mon Mar 10, 2008 9:44 pm

Problem with bibliography

Post by Stefan Kottwitz »

Asma_F wrote:I got an error ( couldn't open file name `buildmain.aux')
This looks like an editor error message. Did you get a LaTeX error message? Can you please post the .log file of that run here, as attachment? (See the "Attachments" tab below the edit field when writing.)
Asma_F wrote:but when I chose (PdfLaTeX +view pdf) and compile ( LaTeX > BibTeX >LaTeX (2)) I got an error ( couldn't open file name `buildmain.aux')
This looks like LaTeX in DVI mode, that is different. You used LaTeX instead of pdfLaTeX, the other run was correct.

Stefan
LaTeX.org admin
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Problem with biblography

Post by Johannes_B »

Check your editor settings. Are you trying to use a build directory? Don't. They don't have merits. All they do is bring confusion to users.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Asma_F
Posts: 20
Joined: Sat Mar 04, 2017 12:12 pm

Problem with bibliography

Post by Asma_F »

Stefan Kottwitz wrote:Did you get a LaTeX error message?
yes and it says '' LaTeX Error: File `Figures/Electron' not found.''
Stefan Kottwitz wrote:You used LaTeX instead of pdfLaTeX, the other run was correct.
yes, and I tried to use pdfLaTeX, it worked but BibTeX not I got the same error mentioned before

main.log
(84.73 KiB) Downloaded 325 times
Post Reply